[Gtk-sharp-list] Changing Background colors etc...

Leo Spalteholz leo@thewoodpecker.ca
Tue, 23 Dec 2003 12:30:53 -0800


On December 23, 2003 08:20 am, mike@godbrain.net wrote:
> I don't want to sound stupid but...  I have an app I'm
> writing and things are going well but how do I change
> background and foreground colors on windows/toolbars
> etc? I can't seem to find this anywhere.

Check the documentation for the Gtk.Widget class.  Especially members 
ModifyBg and ModifyFg.

ex: widget.ModifyBg(StateType.Active, new Gdk.Color(105, 155, 105));

You pass it the Gtk.StateType that you wish to change the color for and the 
Gdk.Color that you want to set it to.. (or null to revert to default, but 
I can't get this to work, see my earlier email)

~leo