Originally Posted by
fwwarr
Hi
Does anyone know how to set the font color of items in a ComboBox?
I need it different that the default text[NORMAL]
The theme is mostly white on black, except for regular text areas which are black on white. The only problem are the combobox items that are not selected or hovered: they appear black on black.
Here are the relevant parts of the gtkrc:
Code:
style "default"
{
#[...]
fg[NORMAL] = "#ffffff" #Normal Button Text
fg[PRELIGHT] = "#ffffff" #Mouseover button text
fg[ACTIVE] = "#ffffff" #Active button text
fg[SELECTED] = "#909090" # ??
fg[INSENSITIVE] = "#909090" # ??
bg[NORMAL] = "#080808" #Inactive Window Title Bar
bg[PRELIGHT] = "#000000" # ??
bg[ACTIVE] = "#000000" # ??
bg[SELECTED] = "#080808" #Active Window Title Bar
bg[INSENSITIVE] = "#3f3f3f" # ??
base[NORMAL] = "#ffffff" #"#000000" Text Area Background
base[PRELIGHT] = "#313131" # ??
base[ACTIVE] = "#071f46" #Inactive Selection Background
base[SELECTED] = "#0d377c" #Active Selection Background
base[INSENSITIVE] = "#ffffff" #"#000000" Disabled Text Area Background
text[NORMAL] = "#000000" #"#ffffff"
text[PRELIGHT] = "#ffffff"
text[ACTIVE] = "#ffffff" #Inactive Selection Text
text[SELECTED] = "#ffffff" #Active Selection Text
text[INSENSITIVE] = "#606060"
}
class "GtkWidget" style "default"
style "optionmenu" = "default"
{
text[NORMAL] = "#ffffff"
#[...]
}
widget_class "*Combo*" style "optionmenu"
style "menuitem" = "default"
{
xthickness = 1
fg[PRELIGHT] = "#ffffff"
text[PRELIGHT] = "#949494"
#[...]
}
widget_class "*List" style "list-header"
widget_class "*GtkTree*" style "list-header"
widget_class "*GtkCList*" style "list-header"
class "GtkButton" style "button"
class "GtkRadioButton" style "radiobutton"
class "GtkRadioMenuItem" style "radiobutton"
class "GtkCheckButton" style "checkbutton"
class "GtkCheckMenuItem" style "checkbutton"
class "GtkOptionMenu" style "optionmenu"
class "GtkCombo*" style "optionmenu"
class "GtkListItem" style "menuitem"
class "*Font*" style "optionmenu"
class "GtkEntry" style "entry"
class "GtkOldEditable" style "entry"
class "GtkSpinButton" style "spinbutton"
class "GtkRuler" style "ruler"
class "GtkScrollbar" style "scrollbar"
class "GtkProgressBar" style "progressbar"
class "GtkRange" style "range"
class "GtkMenu" style "menu"
class "GtkMenuBar*" style "menubar"
widget_class "*MenuBar.*" style "menubar"
class "GtkMenuItem" style "menuitem"
class "GtkTearoffMenuItem" style "menuitem"
class "GtkNotebook" style "notebook"
class "GtkToolbar" style "flat"
class "GtkHandleBox" style "handlebox"
class "GtkEventBox" style "flat"
class "GtkPaned" style "handlebox"
class "GtkLayout" style "layout"
class "SPButton" style "SPbutton"
widget "gtk-tooltips" style "tooltips"
Thanks for any help!
Code:
style "combobox" = "default"
{
text[NORMAL] = "#54A6BB"
Code:
class "GTKCombo" style "combobox"
widget_class "*Combo.*" style "combobox"
class "GTKComboBox" style "combobox"
widget_class "*ComboBox.*" style "combobox"
class "GTKComboBoxEntry" style "combobox"
widget_class "*ComboBoxEntry.*" style "combobox"
works for me in the pixmap engine. This was taken from Onux Blue
Bookmarks