View previous topic :: View next topic |
Author |
Message |
Meru n00b
Joined: 17 Nov 2002 Posts: 5
|
Posted: Thu Dec 12, 2002 9:45 pm Post subject: Changing OpenOffice.org User Interface Color? |
|
|
I'm the tiniest bit obsessive about having a consistent UI, so OpenOffice.org is driving me crazy. The default grey looks horrible with the rest of my LightHouseBlue color scheme.
What does it take to change its color (background, highlighting, etc) to match the rest of my applications?
Thanks for the help! |
|
Back to top |
|
|
max_colby Tux's lil' helper
Joined: 30 Nov 2002 Posts: 149 Location: Ottawa, Canada
|
Posted: Thu Dec 12, 2002 10:29 pm Post subject: |
|
|
I'm running the Openoffice 643C Developer Build which is on the Openoffice.org website, and instead of using grey for toolbars, it matches itself to LighthouseBlue and presumably any other gtk themes. I'm not sure how, or even if this can be done with Openoffice 1.0.1. It's a help, but still not perfect. |
|
Back to top |
|
|
semiSfear Guru
Joined: 08 Jul 2003 Posts: 302 Location: Adelaide, SA
|
Posted: Tue Aug 12, 2003 1:13 pm Post subject: |
|
|
Does that mean I have to compile OpenOffice.org ? Coz now I use the bins 1.0.3.1 and I also think think they grey theme is really ugly. Is there any way to make OpenOffice use GTK themes ? _________________ DnB is my religion, Jungle is my church. |
|
Back to top |
|
|
timmfin Guru
Joined: 04 Sep 2002 Posts: 336 Location: Maryland, USA
|
Posted: Tue Aug 12, 2003 1:50 pm Post subject: |
|
|
I don't think you necessarily need to compile it. I'm using the ooffice 1.1 ximian build (same problem has happened for the past few versions) and I don't pick up the background color, but this is only when I am in fluxbox. When I open it in gnome, the background color is picked up correctly. I don't know if this is a fluxbox or a oo problem. |
|
Back to top |
|
|
homar Tux's lil' helper
Joined: 28 Jun 2002 Posts: 94
|
Posted: Tue Aug 12, 2003 7:12 pm Post subject: |
|
|
Yeah, this problem annoyed for a long time, so I eventually downloaded the source to see how it's done.
It checks that the root window has an atom called "GNOME_SM_PROXY". Which is why running gnome (and metacity or sawfish) it'll match the gtk theme and running fluxbox (or pekwm or whatever) it won't.
I wrote a hack for pekwm to has this atom and now OpenOffice.org is themed correctly. But it'll be better to convince the OpenOffice.org developers that just because you aren't using gnome, doesn't mean you're not using gtk apps. |
|
Back to top |
|
|
semiSfear Guru
Joined: 08 Jul 2003 Posts: 302 Location: Adelaide, SA
|
Posted: Tue Aug 12, 2003 11:01 pm Post subject: |
|
|
Ok, so this means there is no way of telling OOo-bin to pick up a matching background color, or setting it manually? _________________ DnB is my religion, Jungle is my church. |
|
Back to top |
|
|
timmfin Guru
Joined: 04 Sep 2002 Posts: 336 Location: Maryland, USA
|
Posted: Wed Aug 13, 2003 2:15 am Post subject: |
|
|
Homar, maybe you could make that hack into a small stand-alone app. I could go and do it, but you already have the code written . I would just add it to my startup script (after fluxbox is loaded though). Thanks if you do it. |
|
Back to top |
|
|
homar Tux's lil' helper
Joined: 28 Jun 2002 Posts: 94
|
Posted: Wed Aug 13, 2003 9:52 am Post subject: |
|
|
Tested on twm and pekwm.
Code: |
/*
* gcc -L/usr/X11R6/lib -lX11 oo_gtk_theme.c -o oo_gtk_theme
*/
#include <stdio.h>
#include <X11/Xlib.h>
#include <X11/Xatom.h>
int
main(void)
{
Display *d;
Atom gnome;
d = XOpenDisplay(NULL);
if (!d) {
printf("X needs to be running\n");
return 1;
}
/* OpenOffice.org checks for a "GNOME_SM_PROXY" atom to determine whether
* to use the gtk theme colors, so we just pretend that we support that
* atom. This may break other apps.
*/
gnome = XInternAtom(d, "GNOME_SM_PROXY", False);
XChangeProperty(d, DefaultRootWindow(d), gnome, XA_STRING, 8, PropModeReplace,
"GNOME_SM_PROXY", 14);
XCloseDisplay(d);
return 0;
}
|
|
|
Back to top |
|
|
timmfin Guru
Joined: 04 Sep 2002 Posts: 336 Location: Maryland, USA
|
Posted: Thu Aug 14, 2003 12:46 am Post subject: |
|
|
Thank you much, works for me in fluxbox .9.4. |
|
Back to top |
|
|
drakos7 Apprentice
Joined: 21 Feb 2003 Posts: 294 Location: Rockville, MD, USA, Earth, Sol
|
Posted: Wed Aug 20, 2003 4:41 pm Post subject: |
|
|
great work |
|
Back to top |
|
|
DJ_Grijander n00b
Joined: 15 Aug 2003 Posts: 58
|
Posted: Fri Sep 12, 2003 3:27 pm Post subject: |
|
|
Probably just a nOOb stupid thing, but when I try and execute the hack I get some errors. I'm using kahakai as my WM, and I put the script in my ~/.kahakai directory, then I run:
Code: |
# ~/.kahakai/gnome_hack
|
And this is what I get:
Code: |
./gnome_hack: line 1: /bin: is a directory
./gnome_hack: line 2: autostart: command not found
./gnome_hack: line 3: backgrounds/: is a directory
: command not found5:
: command not found8:
./gnome_hack: line 9: int: command not found
./gnome_hack: line 10: syntax error near unexpected token `void'
'/gnome_hack: line 10: `main(void)
|
I know it will be some obvious mistake I'm making, but I just can't guess (too new in Linux, still). Thanks for your help. |
|
Back to top |
|
|
adriang n00b
Joined: 29 Sep 2002 Posts: 49 Location: Vienna/Austria
|
Posted: Fri Sep 12, 2003 4:14 pm Post subject: |
|
|
this is not a shell script, but a c program. thus you will have to
Code: | # gcc -L/usr/X11R6/lib -lX11 oo_gtk_theme.c -o oo_gtk_theme |
where oo_gtk_theme.c is the script posted in this thread.
then do
and it should work.
adrian
edit:
the correct command line is in the first comment of the source, i should look first next time |
|
Back to top |
|
|
DJ_Grijander n00b
Joined: 15 Aug 2003 Posts: 58
|
Posted: Sat Sep 13, 2003 1:12 am Post subject: |
|
|
Thanks for the help, adriang. I knew I was a n00b, but man it seems that I am a heavy one! OK, so I followed your indications, but OO still resists to use my gtk theme. I saved the source (without the first 3 lines) as "oo_gtk_theme.c" and then:
Code: |
# gcc -L/usr/X11R6/lib -lX11 oo_gtk_theme.c -o oo_gtk_theme
# ./oo_gtk_theme
|
I get no error message in the process. Then, before launching oowriter, I select a new theme with gtk_theme_switch (and I actually get the theme applied to, for example, Ximian Evolution), but nothing changes in OO. Same old grey colors. I'm using kahakai as my WM and OO_Ximian_1.1_rc3, if this gives any clue... Thanks again. Looks like I'll have to keep on fighting with OO. |
|
Back to top |
|
|
xlyz Veteran
Joined: 27 Oct 2002 Posts: 1470 Location: Italy
|
Posted: Thu Oct 02, 2003 8:37 am Post subject: |
|
|
wow, it works!
thanks homar |
|
Back to top |
|
|
hook Veteran
Joined: 23 Oct 2002 Posts: 1398 Location: Ljubljana, Slovenia
|
Posted: Thu Oct 02, 2003 4:06 pm Post subject: |
|
|
you guys might also appreciate this _________________ tea+free software+law=hook
(deep inside i'm still a tux's little helper) |
|
Back to top |
|
|
xlyz Veteran
Joined: 27 Oct 2002 Posts: 1470 Location: Italy
|
Posted: Thu Oct 02, 2003 6:33 pm Post subject: |
|
|
hook wrote: | you guys might also appreciate this |
not needed with ximian-oo |
|
Back to top |
|
|
hook Veteran
Joined: 23 Oct 2002 Posts: 1398 Location: Ljubljana, Slovenia
|
Posted: Fri Oct 03, 2003 1:29 am Post subject: |
|
|
xlyz wrote: | hook wrote: | you guys might also appreciate this |
not needed with ximian-oo |
true, but not everyone wants ximian-oo ...btw, there's also a project to port OOo to a Kpart widget - meaning it to be fully KDE themable ...please note, that the patch in my previous post (although it's found on kde-look) is KDE independant, you only need OOo. _________________ tea+free software+law=hook
(deep inside i'm still a tux's little helper) |
|
Back to top |
|
|
shm Advocate
Joined: 09 Dec 2002 Posts: 2380 Location: Atlanta, Universe
|
Posted: Fri Oct 03, 2003 2:09 am Post subject: |
|
|
xlyz wrote: | hook wrote: | you guys might also appreciate this |
not needed with ximian-oo |
Yeah, but then you replace OO.org's shoddy icons with Ximian's shoddy icons, great advance there =)
They really should include that script with a future version of OOo 1.1 _________________ what up |
|
Back to top |
|
|
hook Veteran
Joined: 23 Oct 2002 Posts: 1398 Location: Ljubljana, Slovenia
|
Posted: Fri Oct 03, 2003 12:33 pm Post subject: |
|
|
shm wrote: | xlyz wrote: | hook wrote: | you guys might also appreciate this |
not needed with ximian-oo |
Yeah, but then you replace OO.org's shoddy icons with Ximian's shoddy icons, great advance there =)
They really should include that script with a future version of OOo 1.1 |
but with this patch, you can change the icons to ANY icontype you want ...that's my point ...you're not limited to ximian's icons
...well, enought flaming _________________ tea+free software+law=hook
(deep inside i'm still a tux's little helper) |
|
Back to top |
|
|
zenlunatic Guru
Joined: 09 Apr 2003 Posts: 312
|
Posted: Fri Oct 03, 2003 3:56 pm Post subject: |
|
|
max_colby wrote: | I'm running the Openoffice 643C Developer Build which is on the Openoffice.org website, and instead of using grey for toolbars, it matches itself to LighthouseBlue and presumably any other gtk themes. I'm not sure how, or even if this can be done with Openoffice 1.0.1. It's a help, but still not perfect. |
Got a screenshot? |
|
Back to top |
|
|
maxcow Tux's lil' helper
Joined: 04 Jul 2003 Posts: 126
|
Posted: Fri Oct 03, 2003 6:05 pm Post subject: |
|
|
Just posting to say it works fine on XFCE4.
...And it's really stupid to have to pretend to be rrunning e so that it follows gtk themes
Anyway, homar: thanks for this awesome tip! |
|
Back to top |
|
|
LGW n00b
Joined: 02 Oct 2002 Posts: 60
|
Posted: Mon Oct 06, 2003 11:10 pm Post subject: |
|
|
guess what - this is even MORE stupid as one might think.
OpenOffice 1.1 seems to have this feature, too.
Well. OK, I AM running gnome, and I use an Aqua-Theme.
Now the great, great OpenOffice uses the background color (white), but of course it does not use the gtk2 buttons (which are blue), so I get a white-on-white GUI.
Headaches guaranteed. I'll try to find out if it's possible to use your program "the other way round"
edit: just wanted to note, OpenOffice IS great. Really. I think this is the only "big error" that's annoying me, but I think it is a stupid one. I would even state this is a M$-typical error. Doing something "behind the scenes" that's impossible for the user to change. Or I just don't find out how. Than it's possibly me who's stupid |
|
Back to top |
|
|
Skotlex Guru
Joined: 13 Mar 2004 Posts: 306
|
Posted: Wed Jul 07, 2004 2:17 pm Post subject: |
|
|
I just found this thread while searching for the very exact problem, and I must say it ended up being handy (the script, that is) because the default gray colors was driving me crazy as well.
OOo is now up to version 1.1.2, anyone knows if this "workaround" is still needed? Why don't they just add a parameter to the launcher to choose "which theme-set to match", or use an enviromental variable? Why something so complicated such as an X "atom".... I would think this issue has been brought up already to the OOo team? |
|
Back to top |
|
|
Bushmann Tux's lil' helper
Joined: 30 Aug 2002 Posts: 137 Location: Germany
|
Posted: Sun Oct 10, 2004 10:10 am Post subject: |
|
|
there's a solution!
create /etc/openoffice/openoffice.conf
and insert:
# force OOo to use theme settings from gnome or KDE or disable?
# set to 'gnome', 'kde' or 'none' to override the autodetection
export OOO_FORCE_DESKTOP=gnome |
|
Back to top |
|
|
xanderhsia n00b
Joined: 08 Jul 2004 Posts: 34
|
Posted: Sat Dec 11, 2004 3:17 am Post subject: Excellent! This worked |
|
|
The ugly gray default of openoffice had been bugging me too. I tried changing from the appearance menu inside openoffice, but that doesn't seem to be implemented right. Even after chaning the application background to a red color, it remained, you guessed it... drab gray. The hint about creating an openoffice.conf file in it was right on. This should be added to default openoffice[-ximian] ebuilds. |
|
Back to top |
|
|
|