Re: Changing background colors
- From: John Cupitt <john cupitt ng-london org uk>
- To: lrcgtk red4est com
- Cc: gtk-list gnome org
- Subject: Re: Changing background colors
- Date: Tue, 11 May 2004 19:50:40 +0000
Hi Larry,
lrcgtk red4est com 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]