Re: Default Background Color
Paul Davis <[email protected]> Thu, 17 Feb 2005 10:08:53 -0500
| Newsgroups | gmane.comp.gnome.gnomemm,gmane.comp.gnome.gtkmm |
|---|---|
| Message-ID | <[email protected]> |
>Hello,
>
>Does anybody know how to change the default background color of the
>Gnome Canvas?
>I'd like it to have a black background instead of the default grey color.
>I guess I can draw a black rectangle that covers the entire canvas but it'd
>be nice if there is a proper way to do it.
i do:
canvas->set_name ("MyNameForTheCanvas")
and then in the applications' RC file:
style "main_canvas_area"
{
bg[NORMAL] = { 0.89, 0.88, 0.91 }
bg[ACTIVE] = { 0.89, 0.88, 0.91 }
bg[INSENSITIVE] = { 0.89, 0.88, 0.91 }
bg[SELECTED] = { 0.89, 0.88, 0.91 }
bg[PRELIGHT] = { 0.89, 0.88, 0.91 }
}
widget "*MyNameForTheCanvas" style "main_canvas_area"
--p