Re: Changing background colors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Larry,

lrcgtk@xxxxxxxxxxx wrote:
I'm working on a project at work, and writing the user interface in gtk.

The specifications for the program include that it look like the previous
generation program. Therefore, the software has to have black background.

Gtk seems to REALLY want grey backgrounds. I've tried playing around with my .gtkrc file, but can only get some of the fields to turn black. A lot of times I can get the foreground color to change, but not the background color.

You should be able to change the whole application with just your gtkrc. Try this in your ~/.gtkrc-2.0 file and (almost) everything should go a very ugly pink:


style "pink"
{
 bg[NORMAL]      = { 1.000, 0.80, 0.80 }
 fg[NORMAL]      = { 1.000, 0.40, 0.60 }
 bg[PRELIGHT]    = { 1.000, 0.80, 1.00 }
 fg[PRELIGHT]    = { 1.000, 0.40, 0.60 }
 bg[ACTIVE]      = { 1.000, 0.80, 0.80 }
 fg[ACTIVE]      = { 1.000, 0.40, 0.60 }
 bg[SELECTED]    = { 1.000, 0.60, 0.80 }
 fg[SELECTED]    = { 1.000, 0.00, 0.00 }
 base[SELECTED]  = { 1.000, 0.60, 0.80 }
 text[SELECTED]  = { 1.000, 0.00, 0.00 }
 base[ACTIVE]    = { 1.000, 0.80, 0.80 }
 text[ACTIVE]    = { 1.000, 0.00, 0.00 }
}

class "GtkWidget" style "pink"

I stole this from one of the gtk2 themes, they are good place to look for tips on gtkrc hacking.

John
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux