Closed
Bug 1303964
Opened 8 years ago
Closed 8 years ago
The separators in context menu are not colored correctly under gtk+ 3.20
Categories
(Core :: Widget: Gtk, defect, P4)
Tracking
()
RESOLVED
FIXED
mozilla53
Tracking | Status | |
---|---|---|
firefox53 | --- | fixed |
People
(Reporter: ht990332, Assigned: karlt)
References
(Blocks 1 open bug)
Details
(Whiteboard: tpi:+)
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0 Build ID: 20160920014205 Steps to reproduce: The separators in context menu are not colored correctly. They don't follow the current gtk+ color scheme. Note: You need gtk 3.20 or higher and the default Adwaita theme to see this.
Reporter | ||
Updated•8 years ago
|
Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Updated•8 years ago
|
Priority: -- → P4
Whiteboard: tpi:+
Assignee | ||
Comment 1•8 years ago
|
||
Reproduces with 46.0b11, so probably not a regression.
Comment 2•8 years ago
|
||
Any news on this? It's even visible on the outline of the back button, or is this a different issue?
Reporter | ||
Comment 3•8 years ago
|
||
This one is the widget used in context menus and the 'main toolbar' menus. But post a screenshot to check if yours if the same issue.
Comment 4•8 years ago
|
||
Someone posted a fix on reddit: https://www.reddit.com/r/gnome/comments/5c7x0u/how_to_fix_firefox_black_borders_in_gnome_320/ Can this help to fix this upstream?
Reporter | ||
Comment 5•8 years ago
|
||
It is kind of odd that a gtk+ css change would fix it. Is Firefox using some css attributes not available anymore in gtk+ 3.20? Would it be possible for someone to ask gtk+ developers?
Comment 6•8 years ago
|
||
Doen: https://bugzilla.gnome.org/show_bug.cgi?id=774263
Reporter | ||
Comment 7•8 years ago
|
||
https://bugzilla.gnome.org/show_bug.cgi?id=774263#c1 says: >> The selector for separators changed in 3.20 from 'GtkSeparator' to 'separator'.
Comment 8•8 years ago
|
||
Hi, as I wrote on the gtk bug, I think firefox is looking for the wrong properties, in 3.20 quite a bit of stuff changed (for the better from my css monkey pov), separators are just boxes, so the styling is done using the background properties, hence the color prop is inherited from the parent. For frames it's a similar issue I guess, since the frame is border, hence border related properties. As a partial fix you could looke for background-color for the separator and border-color on the frame border node for the frame color, clearly this may break in themes using background or border images to style those.
Assignee | ||
Comment 9•8 years ago
|
||
This is about GTK 3.20 no longer using gtk_render_line() for separator menuitems.
Comment hidden (mozreview-request) |
Comment 11•8 years ago
|
||
mozreview-review |
Comment on attachment 8811569 [details] bug 1303964 draw only background and frame of separator menuitems in GTK versions > 3.20 https://reviewboard.mozilla.org/r/93642/#review94158 Makes much sense.
Attachment #8811569 -
Flags: review?(stransky) → review+
Comment 12•8 years ago
|
||
Pushed by ktomlinson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/92bc4b8d4692 draw only background and frame of separator menuitems in GTK versions > 3.20 r=stransky+263117
Comment 13•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/92bc4b8d4692
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox53:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
You need to log in
before you can comment on or make changes to this bug.
Description
•