Popup menus inconsistent with GTK theme
Categories
(Toolkit :: Themes, defect)
Tracking
()
People
(Reporter: heftig, Unassigned)
References
Details
Attachments
(1 file)
67.68 KB,
image/png
|
Details |
The popup menus attempt to emulate the style of native popup menus, but differ in several ways:
- Border is different
- Color is different
- Width is different
- Shadow is missing (hard to tell)
- Corners are square instead of rounded
- Overall menu padding is too small
- GTK popups seem to have 4 px more padding
- Menu item padding is too small
- Baseline-to-baseline distance is 26 px for Firefox and 27 px for GTK
It would be nice if the popup menus were consistent with the native GTK theme. That said, I would prefer for Firefox to be self-consistent and have popup menus matching the design of the hamburger menu.
Updated•3 years ago
|
Comment 1•3 years ago
|
||
It's because Gtk toolkit does not get/export styles form popup menu borders so we don't paint the round corners for popups. We also draw all menuitem text entries in active state - I don't think Firefox puts inactive entries to popup menus.
Reporter | ||
Comment 2•3 years ago
|
||
(In reply to Martin Stránský [:stransky] (ni? me) from comment #1)
It's because Gtk toolkit does not get/export styles form popup menu borders so we don't paint the round corners for popups. We also draw all menuitem text entries in active state - I don't think Firefox puts inactive entries to popup menus.
You mean disabled entries? It does. For example, the last tab will have disabled "Move to End" and "Close Tabs to Right" entries in the "Move Tab" resp. "Close Multiple Tabs" submenus. In an input field, Undo/Redo and the selection entries are contextually disabled.
Comment 4•1 year ago
|
||
Somewhat, bug 1828413 makes the menus look more like GTK4, and less weird in some themes. Jan, maybe we can close this? We have some WIP support for native menus (widget.gtk.native-context-menus
), but I don't think we want to pursue it necessarily.
Updated•1 year ago
|
Reporter | ||
Comment 5•1 year ago
|
||
I guess. Item padding still seems too low compared to menus in gtk3-demo
but there's no padding difference compared to the experimental widget.gtk.native-context-menus
so not sure what's going on.
Comment 6•11 months ago
|
||
This should work okay now based on the work in bug 1828413 and related bugs.
Comment 7•11 months ago
|
||
I did file bug 1833124 on potentially improving our platform integration here.
Description
•