>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
_______________________________________________
gnomemm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnomemm-list

Reply via email to