Red Hat Bugzilla – Bug 136907
[OOo] [KDE] Wrong colors in openoffice menubars
Last modified: 2007-11-30 17:10:52 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041001
Description of problem:
My GTK2 theme has gray menubars and white menus, and openoffice (the
latest errata) picks white for both. Thus all openoffice components
end up with white menubars (but everything else gray, as it should).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.select a theme that has the menu background color different from the
menubar background color
2.lauch oowriter (for instance)
3.open a menu
Actual Results: The menu and menubar have the same background color.
Expected Results: The colors should be different, as the theme defines.
Created attachment 105681 [details]
openoffice menubar with wrong colors
This screenshot shows OpenOffice (in the foreground) with the wrong colors, and
Firefox (in the back) with the correct ones.
What theme are you using? Can you attach that theme's .gtkrc file?
Created attachment 105700 [details]
my theme's gtkrc
I don't know if its worthy of a separate bug report because it is
related to this but, since the background color of the highlighted
menu item is always blue, themes with a blue shade for the highlighted
item's text make the text almost impossible to read. This can be
easily seen by using the "Simple" theme that comes bundled with GNOME 2.6.
Ok, menu bar color confirmed. We don't grab and use separate values
fro the menu and menu bar colors.
gtk_widget_ensure_style( pMenu );
gtk_widget_ensure_style( pMenuItem );
GtkStyle* pMenuStyle = gtk_rc_get_style( pMenu );
GtkStyle* pMenuItemStyle = gtk_rc_get_style( pMenuItem );
GtkStyle* pMenuTextStyle = gtk_rc_get_style( gtk_bin_get_child(
GTK_BIN( pMenuItem )));
aBackColor = getColor( pMenuStyle->bg[GTK_STATE_NORMAL] );
-> aStyleSet.SetMenuColor( aBackColor );
-> aStyleSet.SetMenuBarColor( aBackColor );
the menu bar color will hopefully be fixed in 1.1.2-11
Another thing I just found. A similar problem (menubar colors) also
happens while running OO.org inside KDE. But in this case, both the
menu color and the menubar color are wrong, they are both picking up
the "Push Button" color definition (just change that to red or
something and restart OO.org, the menu and menubar get red).
GTK fix is in -11.
1.1.2-11 is out now, this confirmed to be working ?
Yes, it is working.