gtkrc file
- From: "Lourdes Maldonado" <maldonado ibiquity com>
- To: "Gtk-List" <gtk-list gnome org>
- Subject: gtkrc file
- Date: Wed, 24 Apr 2002 13:18:12 -0400
Hi,
Sorry to send this message again but I received a notice warning me that
the original message was in html format so I am trying again (this time
in Plain Text).
I want to draw a selected radio button image with a colored center (it
is currently black when selected). I thought I could do it by changing
the gtkrc file but haven't had any luck. Following is a portion of my
gtkrc file and what I changed (that didn't work).
Thanks for any help,
Lourdes Maldonado
# Default style for all widgets to build from
style "default"
{
font = "-adobe-helvetica-medium-r-normal-*-*-120-*-*-p-*-iso8859-1"
fg[NORMAL] = "#000000"
fg[ACTIVE] = "#000000"
fg[PRELIGHT] = "#000000"
fg[INSENSITIVE] = "#000000"
fg[SELECTED] = "#ffffff"
bg[NORMAL] = "#dcdcdc"
bg[ACTIVE] = "#ababab"
bg[PRELIGHT] = "#f2f2f2"
bg[INSENSITIVE] = "#ffffff"
bg[SELECTED] = "#0A5F89"
text[NORMAL] = "#000000"
text[ACTIVE] = "#000000"
text[PRELIGHT] = "#000000"
text[SELECTED] = "#000000"
text[INSENSITIVE] = "#000000"
base[NORMAL] = "#ffffff"
base[PRELIGHT] = "#ffffff"
base[INSENSITIVE] = "#ffffff"
engine "eazel-engine" {
# The focus/selection color
palette[0] = { "#dcdcdc" }
# The gradient used for recoloring images
palette[1] = { "#000000", <0>, "#ffffff" } <---------------
ORIGINAL
palette[1] = { "#ff00ff", <1>, "#ffffff" } <--------------- MY
CHANGES
# Used for recolouring inactive images
palette[2] = { "#000000", "#888888", "#ffffff" }
# Create the default (only) stock image table. This maps from
# identifiers used in the engine to reference image parts to
# the actual images, and sets attributes of the images
stock
{
"OPTION" {
image = "radio-default.png"
}
"OPTION_FOCUS" {
image = "radio-default-focus.png"
recolor = <1>
}
"OPTION_HI" {
image = "radio-hilight.png"
}
"OPTION_HI_FOCUS" {
image = "radio-hilight-focus.png"
recolor = <1>
}
"OPTION_PRESSED" {
image = "radio-pressed.png"
}
"OPTION_PRESSED_FOCUS" {
image = "radio-pressed-focus.png"
recolor = <1>
}
"OPTION_DISABLED" {
image = "radio-insensitive.png"
}
"OPTION_ACTIVE" {
image = "radio-active-default.png"
}
"OPTION_ACTIVE_FOCUS" {
image = "radio-active-default-focus.png"
recolor = <1>
}
"OPTION_ACTIVE_HI" {
image = "radio-active-hilight.png"
}
"OPTION_ACTIVE_HI_FOCUS" {
image = "radio-active-hilight-focus.png"
recolor = <1>
}
"OPTION_ACTIVE_PRESSED" {
image = "radio-active-pressed.png"
}
"OPTION_ACTIVE_PRESSED_FOCUS" {
image = "radio-active-pressed-focus.png"
recolor = <1>
}
"OPTION_ACTIVE_DISABLED" {
image = "radio-active-insensitive.png"
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]