Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Changing OpenOffice.org User Interface Color?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Meru
n00b
n00b


Joined: 17 Nov 2002
Posts: 5

PostPosted: Thu Dec 12, 2002 9:45 pm    Post subject: Changing OpenOffice.org User Interface Color? Reply with quote

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
View user's profile Send private message
max_colby
Tux's lil' helper
Tux's lil' helper


Joined: 30 Nov 2002
Posts: 149
Location: Ottawa, Canada

PostPosted: Thu Dec 12, 2002 10:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
semiSfear
Guru
Guru


Joined: 08 Jul 2003
Posts: 302
Location: Adelaide, SA

PostPosted: Tue Aug 12, 2003 1:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
timmfin
Guru
Guru


Joined: 04 Sep 2002
Posts: 336
Location: Maryland, USA

PostPosted: Tue Aug 12, 2003 1:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
homar
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jun 2002
Posts: 94

PostPosted: Tue Aug 12, 2003 7:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
semiSfear
Guru
Guru


Joined: 08 Jul 2003
Posts: 302
Location: Adelaide, SA

PostPosted: Tue Aug 12, 2003 11:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
timmfin
Guru
Guru


Joined: 04 Sep 2002
Posts: 336
Location: Maryland, USA

PostPosted: Wed Aug 13, 2003 2:15 am    Post subject: Reply with quote

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
View user's profile Send private message
homar
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jun 2002
Posts: 94

PostPosted: Wed Aug 13, 2003 9:52 am    Post subject: Reply with quote

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
View user's profile Send private message
timmfin
Guru
Guru


Joined: 04 Sep 2002
Posts: 336
Location: Maryland, USA

PostPosted: Thu Aug 14, 2003 12:46 am    Post subject: Reply with quote

Thank you much, works for me in fluxbox .9.4.
Back to top
View user's profile Send private message
drakos7
Apprentice
Apprentice


Joined: 21 Feb 2003
Posts: 294
Location: Rockville, MD, USA, Earth, Sol

PostPosted: Wed Aug 20, 2003 4:41 pm    Post subject: Reply with quote

great work
Back to top
View user's profile Send private message
DJ_Grijander
n00b
n00b


Joined: 15 Aug 2003
Posts: 58

PostPosted: Fri Sep 12, 2003 3:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
adriang
n00b
n00b


Joined: 29 Sep 2002
Posts: 49
Location: Vienna/Austria

PostPosted: Fri Sep 12, 2003 4:14 pm    Post subject: Reply with quote

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
Code:
# ./oo_gtk_theme

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
View user's profile Send private message
DJ_Grijander
n00b
n00b


Joined: 15 Aug 2003
Posts: 58

PostPosted: Sat Sep 13, 2003 1:12 am    Post subject: Reply with quote

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
View user's profile Send private message
xlyz
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1470
Location: Italy

PostPosted: Thu Oct 02, 2003 8:37 am    Post subject: Reply with quote

wow, it works!

thanks homar :D
_________________
wanna change how bootsplash or qingy look like? try here
Back to top
View user's profile Send private message
hook
Veteran
Veteran


Joined: 23 Oct 2002
Posts: 1398
Location: Ljubljana, Slovenia

PostPosted: Thu Oct 02, 2003 4:06 pm    Post subject: Reply with quote

you guys might also appreciate this
_________________
tea+free software+law=hook

(deep inside i'm still a tux's little helper)
Back to top
View user's profile Send private message
xlyz
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1470
Location: Italy

PostPosted: Thu Oct 02, 2003 6:33 pm    Post subject: Reply with quote

hook wrote:
you guys might also appreciate this


not needed with ximian-oo :wink:
_________________
wanna change how bootsplash or qingy look like? try here
Back to top
View user's profile Send private message
hook
Veteran
Veteran


Joined: 23 Oct 2002
Posts: 1398
Location: Ljubljana, Slovenia

PostPosted: Fri Oct 03, 2003 1:29 am    Post subject: Reply with quote

xlyz wrote:
hook wrote:
you guys might also appreciate this


not needed with ximian-oo :wink:

true, but not everyone wants ximian-oo :wink: ...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
View user's profile Send private message
shm
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2380
Location: Atlanta, Universe

PostPosted: Fri Oct 03, 2003 2:09 am    Post subject: Reply with quote

xlyz wrote:
hook wrote:
you guys might also appreciate this


not needed with ximian-oo :wink:


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
View user's profile Send private message
hook
Veteran
Veteran


Joined: 23 Oct 2002
Posts: 1398
Location: Ljubljana, Slovenia

PostPosted: Fri Oct 03, 2003 12:33 pm    Post subject: Reply with quote

shm wrote:
xlyz wrote:
hook wrote:
you guys might also appreciate this


not needed with ximian-oo :wink:


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 :D

...well, enought flaming
_________________
tea+free software+law=hook

(deep inside i'm still a tux's little helper)
Back to top
View user's profile Send private message
zenlunatic
Guru
Guru


Joined: 09 Apr 2003
Posts: 312

PostPosted: Fri Oct 03, 2003 3:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
maxcow
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2003
Posts: 126

PostPosted: Fri Oct 03, 2003 6:05 pm    Post subject: Reply with quote

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 :roll:
Anyway, homar: thanks for this awesome tip!
Back to top
View user's profile Send private message
LGW
n00b
n00b


Joined: 02 Oct 2002
Posts: 60

PostPosted: Mon Oct 06, 2003 11:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Skotlex
Apprentice
Apprentice


Joined: 13 Mar 2004
Posts: 293

PostPosted: Wed Jul 07, 2004 2:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Bushmann
Tux's lil' helper
Tux's lil' helper


Joined: 30 Aug 2002
Posts: 137
Location: Germany

PostPosted: Sun Oct 10, 2004 10:10 am    Post subject: Reply with quote

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
View user's profile Send private message
xanderhsia
n00b
n00b


Joined: 08 Jul 2004
Posts: 34

PostPosted: Sat Dec 11, 2004 3:17 am    Post subject: Excellent! This worked Reply with quote

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. :x The hint about creating an openoffice.conf file in it was right on. :P This should be added to default openoffice[-ximian] ebuilds.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum