You are not logged in.

#1 2011-02-14 18:56:29

x5x_tim
Member
Registered: 2010-06-13
Posts: 86

GTK+ 2.x custom colors don't work

I've set custom colors to my ~/.gtkrc-2.0.mine file, but the colors won't load for any other application than lxappearance.
I've set the custom colors manually, because of a bug in lxappearance that causes it to not write custom colors to the output file.

This is what my ~/.gtcrc-2.0 and ~/.gtkrc-2.0.mine look like:

## ~/.gtkrc-2.0

# DO NOT EDIT! This file will be overwritten by LXAppearance.
# Any customization should be done in ~/.gtkrc-2.0.mine instead.

gtk-theme-name="Darklooks"
gtk-icon-theme-name="Tango"
gtk-font-name="Sans 10"
gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_BOTH
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=1
gtk-menu-images=1
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-color-scheme=""
include "/home/tim/.gtkrc-2.0.mine"

## ~/.gtkrc-2.0.mine 

gtk_color_scheme="
tooltip_fg_color:#000000
selected_bg_color:#2E2E2E
tooltip_bg_color:#EDDE5C
base_color:#4D4D4D
fg_color:#ffffff
text_color:#ffffff
selected_fg_color:#ffffff
bg_color:#676767
"

So to clarify: Any changed made to the files affect ALL GTK+ 2.x programs, except for the custom colors, which only seem to affect lxappearance (The changes are loaded into the color tab, but are not applied at startup of the program. I need to click one of the buttons and then click OK to apply the custom colors to the lxappearence window).

Any help would be appreciated.

Tim

Last edited by x5x_tim (2011-02-14 18:56:44)

Offline

#2 2011-02-15 00:03:45

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: GTK+ 2.x custom colors don't work

I suppose you could modify your theme's gtkrc directly... That's what I did. (But I use Xfce.)

Offline

#3 2011-02-15 10:44:56

x5x_tim
Member
Registered: 2010-06-13
Posts: 86

Re: GTK+ 2.x custom colors don't work

Thanks, that worked!

Offline

Board footer

Powered by FluxBB