Adjust default label padding on MacOS platform #1844
-
The padding on labels on MacOS is excess for my current use case in a custom control. I want it to closer match my GTK app's design if at all possible. Is anyone aware of a way to modify it? (Using 0 padding on both) MacOSGTKIf anyone's interested in the source code to see if they can see any obvious issue with my implementation: https://github.com/InfinityGhost/OpenTabletDriver/pull/531 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hm, I think the biggest issue you might be facing is the default padding for the GroupBox. That, and the width of the numeric entry boxes are relatively larger on macOS (~9 characters wide vs ~7 with Gtk). Unfortunately, Eto's GroupBox sizing calculations are fixed, so adjusting the padding isn't really possible with 2.5.8. That being said, I've just committed a fix in #1858 that allows you to add something like this to adjust the padding/content margins in a GroupBox on macOS:
Hope this helps! |
Beta Was this translation helpful? Give feedback.
Hm, I think the biggest issue you might be facing is the default padding for the GroupBox. That, and the width of the numeric entry boxes are relatively larger on macOS (~9 characters wide vs ~7 with Gtk). Unfortunately, Eto's GroupBox sizing calculations are fixed, so adjusting the padding isn't really possible with 2.5.8. That being said, I've just committed a fix in #1858 that allows you to add something like this to adjust the padding/content margins in a GroupBox on macOS:
Hope this helps!