How to set Single GtkLebel Color to while using gtkrc?
- by PP
How to set Single GtkLebel Color to while using gtkrc?
I tried to set as follows:
In rc file:
style "tc-theme-label-white"
{
xthickness = 1
ythickness = 1
font_name = "Sans Bold 8"
text[NORMAL] = "#FFFFFF"
text[INSENSITIVE] = "#434346"
text[PRELIGHT] = "#FFFFFF"
text[SELECTED] = "#FFFFFF"
text[ACTIVE] = "#FFFFFF"
}
widget "*.my-theme-label" style:highest "my-theme-label"
//And in code i have written.
Gtk *label = gtk_new_label(null);
gtk_widget_set_name(label_ptr, "my-theme-label");
Is this the write way of doing it?
as usual it is not working. :p
Thanks,
PP.