Re: Default Background Color
- From: Michael J M Thomson <mjmt internode on net>
- To: Andy Ma <khma sfu ca>
- Cc: gtkmm-list gnome org, gnomemm-list gnome org, paul linuxaudiosystems com
- Subject: Re: Default Background Color
- Date: Wed, 09 Mar 2005 15:38:20 +1100
Andy Ma wrote:
> Besides using a RC file, can this set bg done in the code?
> is using a RC file the only way?
>
You could do what Paul Davis suggested,
> 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"
but put the RC definition in your code:
Gtk::RC::parse_string(
"style 'my_canvas' {"
" bg[NORMAL] = { ... }"
...
);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]