You are not logged in.

#1 2010-08-09 13:39:46

Hide
Member
From: Castalia
Registered: 2007-02-02
Posts: 368

Gnome-color-chooser (gtkrc?) refuses to work [SOLVED]

I wanted to change my panel font color and after some hassle and a bit of googling, I ran into gnome-color-chooser. Made the desired changes, applied and nothing happened. I then copied the content of .gtkrc-2.0-gnome-color-chooser to .gtkrc-2.0 directly, to no avail. I even restarted my panel and still no change. Mind that every manual change in .gtkrc2.0 (icon theme, theme, etc) works flawlessly.
Any ideas?

I'm using gnome-color-chooser 0.2.5 and xfce4-panel 4.6.4.

Thanks in advance.

Last edited by Hide (2010-08-11 09:22:04)

Offline

#2 2010-08-09 15:11:28

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: Gnome-color-chooser (gtkrc?) refuses to work [SOLVED]

Doesn't sound like so much of an issue with gnome-color-chooser as it does with the panel itself.  You've probably already tried this, but in my case I have to logout/in again before any GTK theme changes are applied.  If I misunderstood the problem, you can always use gcolor2, another colour picker.


thayer williams ~ cinderwick.ca

Offline

#3 2010-08-09 16:35:49

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: Gnome-color-chooser (gtkrc?) refuses to work [SOLVED]

Can you post your .gtkrc-2.0 file?


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#4 2010-08-09 18:21:26

Hide
Member
From: Castalia
Registered: 2007-02-02
Posts: 368

Re: Gnome-color-chooser (gtkrc?) refuses to work [SOLVED]

@thayer
I use gtk-chtheme, so themes change on-click. Even when I messed with themess gtkrc files, I only had to "reload" a theme (e.g. select another one and then revert it back to the desired, edited one), for the changes to take effect. I will try logging out/in, definitely smile

@Stebalien
Sure smile

.gtkrc-2.0:

include "/usr/share/themes/MurrinaGraphiteGentle/gtk-2.0/gtkrc"
gtk-icon-theme-name="Meliae"

include ".gtkrc-2.0-gnome-color-chooser"

.gtkrc-2.0-gnome-color-chooser:

pixmap_path "/home/hide/.gnome-color-chooser/images/"

style "gnome-color-chooser-panel"
{
  fg[NORMAL] = "#FF0000" //red is merely for testing purposes, I love my eyes too much :D
}
class "PanelTopLevel.*" style "gnome-color-chooser-panel"
widget_class "*PanelApplet*" style "gnome-color-chooser-panel"
widget_class "*PanelWidget*" style "gnome-color-chooser-panel"
widget "*fast-user-switch-applet*" style "gnome-color-chooser-panel"

Last edited by Hide (2010-08-09 18:22:31)

Offline

#5 2010-08-09 19:28:06

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: Gnome-color-chooser (gtkrc?) refuses to work [SOLVED]

Try widget instead of widget_class. You may also need `text[NORMAL] = "#FF0000"`.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#6 2010-08-10 07:20:34

Hide
Member
From: Castalia
Registered: 2007-02-02
Posts: 368

Re: Gnome-color-chooser (gtkrc?) refuses to work [SOLVED]

@thayer
Login/logout didn't do the trick sad

@Stebalien
Nope, no results.

Offline

#7 2010-08-10 14:37:01

Hide
Member
From: Castalia
Registered: 2007-02-02
Posts: 368

Re: Gnome-color-chooser (gtkrc?) refuses to work [SOLVED]

@thayer
You were right about one thing. It seems that there's a problem with the xfce4-panel. I installed gnome-panel, changed the color, and everything went seamlessly smile

I've seen someone on the forum with the same panel and that person had no problems whatsoever.

Maybe something's wrong with my setup. A bug maybe?

edit:
I found this on the xfce4 forum and it works:

style "panel"
{
  fg[NORMAL] = "#ff0000"
}

widget_class "*Panel*"      style "panel"
widget "*Panel*"            style "panel"
class "*Panel*"             style "panel"

I'm going to label the topic as [SOLVED], no problem, I'd just like to know how the above code differs from the one generated by gnome-color-chooser.

edit2: typo

Last edited by Hide (2010-08-10 14:45:04)

Offline

#8 2010-08-11 03:39:10

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: Gnome-color-chooser (gtkrc?) refuses to work [SOLVED]

Gnome-color-chooser works with GNOME, not XFCE. The xfce4-panel probably doesn't use PanelApplet and PanelWidget widgets so you need to match Panel widgets.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#9 2010-08-11 09:21:48

Hide
Member
From: Castalia
Registered: 2007-02-02
Posts: 368

Re: Gnome-color-chooser (gtkrc?) refuses to work [SOLVED]

Heh, good to know. Thanks everyone for the input.

Solved smile

Offline

Board footer

Powered by FluxBB