How to color the gtk window?
I want to color the whole window ..
especially .. background color to list
with the code that I have ..
Code: Select all
#!/bin/bash
export LISTADO="UNO
DOS
TRES
CUATRO
CINCO
"
echo 'style "blackbg" {
font_name="DejaVu Sans 8"
bg[NORMAL] = "cyan"
fg[NORMAL] = "green"
base[NORMAL] = "blue"
bg[ACTIVE] ="red"
fg[ACTIVE]="cyan"
fg[INSENSITIVE] = "magenta"
fg[PRELIGHT] = "black"
text[ACTIVE] ="red"
text[PRELIGHT] = "gold"
text[SELECTED] = "brown"
fg[PRELIGHT] = "black"
}
class "*" style "blackbg"
widget "*arboles" style "blackbg
' > /tmp/gtkrc
export GTK2_RC_FILES=/tmp/gtkrc:/root/.gtkrc-2.0
export auto='
<window>
<vbox>
<text name="texto"><label>elige</label></text>
<tree name="arboles" rules-hint="true" headers-visible="false" activates-default="true" hover-selection="true" file-monitor="true" reorderable="true">
<label>LISTAOPCIONES</label>
<variable>SELECCIONA</variable>
<input>echo -e "$LISTADO"</input>
</tree>
</vbox>
</window>'
gtkdialog -p auto -G 110x200+20+20
the list is not colored
and
I want to put blue background and bold yellow letter (to list UNO DOS TRES CUATRO CINCO)
Thanks!