@Jürg O Xojo has recently posted a blog: GTK3 Can Be a Pain in the Themes
Has anyone tried to load a "built-in theme"? I tried, but... on Debian 9 (with both provided and some downloaded themes). The Controls (Buttons, TextFields, ...) are still way too high - always.
Today I've found a Theme that seems to work - it's "macOS like" styled:
And it seems that this Theme allows to have Controls reasonably sized in
MyControl.Height=26 - and it seems to work (Maybe even on RasPi?) ;)
But since I don't want our app to look "macOS like", I've tried to extract just the Styles to get the Text alignment right, and Borders shown with Controls that are
So far, this is the result:
It's working as expected for TextField and PushButtons. But what is going on with ComboBox and PopupMenu?
It has the same style applied such as TextField. So margins/insets/... are being applied. But it looks like ComboBox and PopupMenu are somehow "inside" it.
Does anyone know how to get the ComboBox and PopupMenu look the "same" as TextField and PushButton?
- PopupMenu is quite similar to PushButton -> the Borders and TextAlignment could/should be the same
- ComboBox is "like" a TextField (with something on the right) -> how to get it styled the same?
I'm sure the answer is in the (macOS like looking) "theme .css". Because with that, the PopupMenu and ComboBox get styled in a way that the Text looks OK with ControlHeight 26. I just can't find the right "enclosure", as it seems that there needs to be some kind of "style the inside box like this, and style the arrows like that".
I still hope to find a way to just style the very basics (that uses all the system default, except for .Height resulting vertical Text alignment) - and not having to provide a full-blown Theme... ;)
If you'd like to try: The ScreenShots above have been taking by running this example project on Debian 9.