GNOME Bugzilla – Bug 168897
different text colors in main menu bar selected items
Last modified: 2015-03-24 13:00:49 UTC
Selected items in the main menu bar applet have different text colors. For example, using the "default" gnome theme, the selected "applications" item has a white text on dark background (which is fine :), but the "Places" and "Desktop" items have black text on dark background (which is not so fine). This happens also with industrial, bluecurve, etc, so I don't think it's a theme issue. (by the way, there is no bugzilla component for the menu bar applet - should there be one ?)
Wow. This is a bit like the old bug #83620. I'll try to see if I can reproduce. Are you using cvs head for everything?
I can't reproduce here. Could you attach a screenshot? (Btw, what theme is "default"? is it simple or traditional?)
Created attachment 38111 [details] screenshot Here is a shot showing selected "Applications" and "Places" menu items. I am using the clearlooks theme in this shot (...) but it's the same with all the other themes. I have gnome-panel, libwnck, gtk+ freshly updated from cvs. When I said the default theme, I meant Simple.
Does this happen for other menus in GNOME? Or is it only like this for the menu bar? I'm updating gnome-themes right now to see if I can reproduce...
It's specific to the main menu bar applet. Every other menu works fine.
It's specific to the main menu bar applet. Every other menu works fine. Maybe there's another package I should upgrade ?
Maybe you should try to upgrade gtk-engines and gnome-themes. And log out... I don't see this, so I really don't know why this is happening to you. If you're on IRC, maybe you could try to ask people if they see the same thing...
*** Bug 169072 has been marked as a duplicate of this bug. ***
Well sorry for the dupe but I can confirm I have this, too, both in my custom build on my desktop computer as well as (as of yesterday, after ubuntu updated their hoary packages) on my laptop.
I have downgraded my gnome-panel to 2.9.91 (and the corresponding libwnck), with those versions it *works* so this shouldn't be too hard to figure out. Also, gnome-themes and/or gtk-engines isn't the cause for the problem. As stated in 169072, this affects all themes which don't use the same prelight color for menu items as for other widgets (as is the case with both Indubstrial and the new Clearlooks theme)
I've logged out, even rebooted, I still see it. It's not a big deal for me, but I guess it can be bad if you choose a dark theme (you won't be able to see the menuitem labels when selected).
Is this happening for the places/desktop item in the main menu too? I think this happens because we now build the label (instead of letting GTK doing this for us). But I don't get why the label is not prelighted. This is not a blocker, but it'd be nice to fix this for 2.10.1.
Yes ! It happens also for the places/desktop items in the main menu.
What's weird is that it works with Glider...
Works with Crux too and Simple. This /could/ be a theme bug...
Add this to the gtkrc of the Industrial theme: widget_class "*MenuItem*" style "industrial-menu" This works. Maybe we can do a workaround in the panel...
Created attachment 38224 [details] Simple GTK+ test Here's a more simple test, with only GTK+ things and a GtkMenuItem-derived widget. Extract from the GTK+ doc: ********* Matching against class is a little different. The pattern match is done against all class names in the widgets class hierarchy (not the layout hierarchy) in sequence, so the pattern: class "GtkButton" style "my-style" will match not just GtkButton widgets, but also GtkToggleButton and GtkCheckButton widgets, since those classes derive from GtkButton. ********* Correct me if I'm wrong, but this means that class "GtkMenuItem" style "menu-style" sets the style for the GtkMenuItem-derived widget in the above test. And it seems it doesn't work...
Created attachment 38240 [details] Better test This test has a GtkImageMenuItem too. What's interesting is that if you remove the line: widget_class "*.GtkImageMenuItem.*" style "industrial-menu" from the Industrial gtkrc, the GtkImageMenuItem label is black too. It really really looks like a GTK+ bug to me.
This is really bug #142417. *** This bug has been marked as a duplicate of 142417 ***
You might want to open bugs against the various themes showing this behaviour. They should do this: widget_class "*MenuItem.*" style "foo" instead of this: widget_class "*.GtkMenuItem.*" style "foo"