GNOME Bugzilla – Bug 485754
Add a way to specifiy a minimum menu item height
Last modified: 2016-06-08 04:21:12 UTC
In the sugar theme there are a lot of fixed sizes. One example are menu items, that should always be 45 pixel high. It is impossible to achieve this, as all the different menu items will get different sizes. (Menu item with and without image, cell rendere menu item, and what not.) To make it possible to get a consistent menu item height in menus a style property for the minimum height could be added to either the menu, or the menu item. I think that a style property on GtkMenu (or maybe GtkMenuShell) would make most sense, as the sizing can be handled easily in the menu class then. Does this sound good?
I just realized that it may be desirable to make the separator and tear off menu items smaller than the rest. To achieve this the style property has to be part of the menu item, and not the menu. Though the logic to use it should probably still go into the menu.
I'm not convinced that a style property is right here. You really want something that depends on the font size. In most cases, a size group should be able to fix this problem.
Hm, true, a size group would fix the problem in most cases. But I am not convinced that depending on the font size makes sense here. As the icons are usually larger than the font, a minimum height would depend on the icon size. And the icon size (as many other things) is fixed ... About size groups. A similar effect could be done in the menu by forcing an homogeneous height over all menu items.
This is possible in gtk3 nowadays, with css min-height