Re: How do you set the complete CList's background color?



>I've tried several methods involving fiddling with styles and gc's but I can't
>seem to find anything to set the complete CList's background color (excluding
>the column titles).  gtk_clist_set_background() leaves little white lines
>between every row and a white area if your CList is shorter than the available
>space.  This is hard on the eyes.

this works for me (as you know, i try to never set colors in the
source code). it sets the background to black, and the unselected
foreground to orange, and the selected foreground to cyan.

--p

code:
       gtk_widget_set_name (clist, "MyCList");

RC file:

style "region_list_display" = "small_bold_text"
{
	fg[NORMAL] = { 0.98, 0.76, 0.14 }
	fg[ACTIVE] = { 0.98, 0.76, 0.14 }
	fg[SELECTED] = { 0, 1.0, 1.0 }
	bg[NORMAL] = { 0, 0, 0 }
	bg[ACTIVE] = { 0, 0, 0 }
	bg[SELECTED] = { 0, 0, 0 }
	base[NORMAL] = { 1, 0, 0 }
 	base[ACTIVE] = { 0, 1, 0 }
 	base[INSENSITIVE] = { 0, 1, 0 }
 	base[SELECTED] = { 0, 1, 1 }
}

widget "*MyCList" style "region_list_display"



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