Bug 136907 - [OOo] [KDE] Wrong colors in openoffice menubars
Summary: [OOo] [KDE] Wrong colors in openoffice menubars
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: openoffice.org
Version: 2
Hardware: athlon
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Dan Williams
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-10-23 00:08 UTC by Carlos Rodrigues
Modified: 2007-11-30 22:10 UTC (History)
1 user (show)

Fixed In Version: 1.1.2-11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-11-15 15:27:41 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
openoffice menubar with wrong colors (10.91 KB, image/png)
2004-10-23 00:11 UTC, Carlos Rodrigues
no flags Details
my theme's gtkrc (4.38 KB, text/plain)
2004-10-24 01:38 UTC, Carlos Rodrigues
no flags Details

Description Carlos Rodrigues 2004-10-23 00:08:55 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041001
Firefox/0.10.1

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):
openoffice.org-1.1.2-10.fc2

How reproducible:
Always

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.

Additional info:

Comment 1 Carlos Rodrigues 2004-10-23 00:11:16 UTC
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.

Comment 2 Dan Williams 2004-10-24 00:09:03 UTC
What theme are you using?  Can you attach that theme's .gtkrc file?

Comment 3 Carlos Rodrigues 2004-10-24 01:38:22 UTC
Created attachment 105700 [details]
my theme's gtkrc

Comment 4 Carlos Rodrigues 2004-10-24 02:01:47 UTC
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.

Comment 5 Dan Williams 2004-10-24 04:55:03 UTC
Ok, menu bar color confirmed.  We don't grab and use separate values
fro the menu and menu bar colors.

Comment 6 Dan Williams 2004-10-24 04:57:03 UTC
vcl/unx/gtk/window/gtkframe.cxx:

    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 );


Comment 7 Dan Williams 2004-10-24 05:34:46 UTC
the menu bar color will hopefully be fixed in 1.1.2-11

Comment 8 Carlos Rodrigues 2004-10-24 12:44:34 UTC
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).

Comment 9 Dan Williams 2004-11-11 14:21:20 UTC
GTK fix is in -11.

Comment 10 Caolan McNamara 2004-11-15 13:26:46 UTC
1.1.2-11 is out now, this confirmed to be working ?

Comment 11 Carlos Rodrigues 2004-11-15 15:24:19 UTC
Yes, it is working.


Note You need to log in before you can comment on or make changes to this bug.