Re: Default Background Color



Besides using a RC file, can this set bg done in the code?
is using a RC file the only way?

On Thu, 17 Feb 2005 10:08:53 -0500 paul linuxaudiosystems com wrote:
> >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
> 






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