Issue 106620 - A way to start OOo with a custom GTK+ theme
Summary: A way to start OOo with a custom GTK+ theme
Status: CONFIRMED
Alias: None
Product: ui
Classification: Code
Component: ui (show other issues)
Version: OOo 3.1
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: AOO PleaseHelp
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-05 01:56 UTC by tscheka
Modified: 2013-02-07 22:42 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
OOo renders is as dark text on a dark background (15.13 KB, text/plain)
2009-11-06 07:16 UTC, tscheka
no flags Details
OOo renders is as dark text on a dark background (15.13 KB, image/gif)
2009-11-06 07:16 UTC, tscheka
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description tscheka 2009-11-05 01:56:17 UTC
So far OpenOffice is able to take over behaviour of the Theme which is set
through the environment, no matter if you were in Gnome/XFCE/...

So far it does pick up what is set up globally, well no problem here.

But what, if I want to start it with a custom GTK+ theme, like I already can do
with plenty of apps? For Pidgin for example I modified the desktop entry (aka
shortcut) with this line:

Exec="env GTK2_RC_FILES=/usr/share/themes/Xfce-dusk/gtk-2.0/gtkrc pidgin"

and it works as suspected like in this screenshot:

http://img291.imageshack.us/img291/8523/68366264.png

Sadly, this ain't possible with OpenOffice. And people having a dark theme have
reasons using custom themes for thertain apps, as sometimes dark themes aren't
appropriate, like you might see here (barely readable,and this applies to menus,
too):

http://img36.imageshack.us/img36/2953/77144494.png

For things like Browsers and Office-Suites, much people using dark desktop
themes prefer "normal" themes, like this:

http://img11.imageshack.us/img11/4126/26669009.png

... this is obviously a better working environment but this isn't working
without an impact on all GTK+-Apps.

I would expect that OpenOffice takes the Environment Variables as near to all
GTK+-Apps would do.

 env GTK2_RC_FILES=/usr/share/themes/Xfce-dusk/gtk-2.0/gtkrc ooffice -calc

should work and for me this is clearly a bug with OpenOffice.org. Sadly, I found
no workaround or hack, nor I am able to find the lines of code which should be
changed. The only thing i found was this blog where it was discussed before
(firefox seems to have the same problem):

http://urukrama.wordpress.com/2008/07/13/setting-a-custom-gtk-theme-for-specific-applications/

Would love to see that fixed as I depend on OOo

thanks :-)
Comment 1 eric.savary 2009-11-05 10:08:01 UTC
Reassigned to Requirements
Comment 2 tml 2009-11-05 16:17:08 UTC
For now, you just have to decide which is more important, using a cool-looking
theme or using OOo effectively. Style or substance, that is the question.

Is this a duplicate of issue #103999?
Comment 3 tscheka 2009-11-06 07:16:44 UTC
Created attachment 65973 [details]
OOo renders is as dark text on a dark background
Comment 4 tscheka 2009-11-06 07:16:53 UTC
Created attachment 65974 [details]
OOo renders is as dark text on a dark background
Comment 5 tscheka 2009-11-06 07:26:01 UTC
> For now, you just have to decide which is more important, using a cool-looking
> theme or using OOo effectively. Style or substance, that is the question.

The point was that I >don't< want to use dark themes for OOo. As for Xubuntu
Karmic, Albatross as a dark theme is the default. Now it is to the user to make
exceptions and for now, the standard way to do so is due the mentioned
environment variable

> Is this a duplicate of issue #103999?

No, as I attached the pic, this is one problem related to it, but has nothing to
do with this. Fixing #103999 would help, indeed, as OOo is indeed not working
like the rest of GTK userland apps here.