Re: Change the treeview's color



On Tue, 2006-11-28 at 01:19 +0000, Ricardo Cruz wrote:
> Tetim wrote (@ Segunda, 27 de Novembro de 2006 20:29):
> > How I can change line's color of the a treeview, but only one line...

you  may prefer to do this with an RC file. if so, here are some
annotated entries from one we use with ardour:

style "selected_io_selector_port_list" = "medium_bold_text"
{

	GtkTreeView::even-row-color = { 0.64, 0.68, 0.54 }
	GtkTreeView::odd-row-color = { 0.64, 0.68, 0.54 }

# fg is used to color the fg (text) of the column header button

	fg[NORMAL] = { 0.80, 0.80, 0.70 }
	fg[SELECTED] = { 0.80, 0.80, 0.70 }
	fg[ACTIVE] = { 0.80, 0.80, 0.70 }
	fg[PRELIGHT] = { 0.80, 0.80, 0.70 }
	fg[INSENSITIVE] = { 0.80, 0.80, 0.70 }

# bg is used used to color the background of the column header button

	bg[NORMAL] = { 0.30, 0.30, 0.35 }
	bg[ACTIVE] = { 0.30, 0.30, 0.35 }
	bg[PRELIGHT] = { 0.30, 0.30, 0.35 }
	bg[INSENSITIVE] = { 0.30, 0.30, 0.35 }
	bg[SELECTED] = { 0.30, 0.30, 0.35 }

# text is used to color the treeview row text

	text[NORMAL] = { 0.80, 0.80, 0.70 }
	text[SELECTED] = { 0.80, 0.80, 0.70 }

# base is used to color a treeview with no rows

	base[NORMAL] = { 0.64, 0.68, 0.54 }
	base[ACTIVE] = { 0.64, 0.68, 0.54 }
	base[PRELIGHT] = { 0.64, 0.68, 0.54 }
	base[INSENSITIVE] = { 0.64, 0.68, 0.54 }
	base[SELECTED] = { 0.64, 0.68, 0.54 }

}





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