1 # pixmap_path "<dir 1>:<dir 2>:<dir 3>:..."
5 # style <name> [= <name>]
10 # widget <widget_set> style <style_name>
11 # widget_class <widget_class_set> style <style_name>
13 # testgtkrc2 sets all the buttons in the main window to blue by default
16 double-click_timeout = 42
20 # gtk-cursor-blink-time = 200
21 # gtk-menu-bar-accel = F10
23 style "global-style-properties"
26 GtkButton::child_displacement_x = 1
27 GtkButton::child_displacement_y = 1
28 # GtkWidget::cursor_color = "#ff0000"
29 GtkToolbar::space_size = 10
30 GtkToolbar::space_style = line
31 GtkToolbar::button_relief = none
32 GtkButtonBox::child_min_width = 0
33 GtkButtonBox::child_min_height = 0
35 class "GtkWidget" style "global-style-properties"
43 # GtkScrollbar::spacing = 33
44 # GtkButton::color = { 3, 2,45, 6, 6, 4, 23 }
49 stock["gtk-dialog-warning"] =
51 { "3DRings.xpm", *, *, *}
55 class "GtkImage" style "myicons"
58 class "GtkWidget" style "defaultfont"
62 # bg_pixmap[NORMAL] = "marble.xpm"
67 fg[NORMAL] = { 1.0, 0, 0 }
68 bg_pixmap[NORMAL] = "<parent>"
71 style "button" = "default"
73 # fg[PRELIGHT] = { 1.0, 1.0, 1.0 }
74 # bg[PRELIGHT] = { 0, 0, 0.75 }
75 # bg[PRELIGHT] = { 0.75, 0, 0x00 }
78 style "toggle_button" = "button"
80 fg[NORMAL] = { 1.0, 0, 0 }
81 fg[ACTIVE] = { 1.0, 0, 0 }
82 # bg_pixmap[ACTIVE] = "check-y.xpm"
83 # bg_pixmap[NORMAL] = "check-n.xpm"
88 bg_pixmap[NORMAL] = "marble.xpm"
89 text[NORMAL] = { 1.0, 1.0, 1.0 }
90 fg[NORMAL] = { 1.0, 1.0, 1.0 }
91 base[NORMAL] = { 0.0, 0.0, 0.0 }
96 fg[NORMAL] = { 1.0, 1.0, 1.0 }
97 bg[NORMAL] = { 0.0, 0.0, 1.0 }
98 bg[ACTIVE] = { 0.0 ,0.0, 0.5 }
99 bg[PRELIGHT] = { 0.75 ,0.75, 1.0 }
109 fg[NORMAL] = { 58000, 0, 0 } # red
114 bg[PRELIGHT] = { 0.95, .55, 0.55 }
117 # override testgtk2, introduce the green color in the button list
118 style 'button_list' = 'button'
120 font_name = "Monospace 10"
121 bg[PRELIGHT] = { 0, 0.75, 0x00 }
123 widget "main window.*GtkScrolledWindow.*GtkButton*" style "button_list"
126 class "GtkScrollbar" style "red-bar"
128 widget_class "GtkWindow" style "window"
129 widget_class "GtkDialog" style "window"
130 widget_class "GtkFileSelection" style "window"
131 widget_class "*Gtk*Scale" style "scale"
132 widget_class "*GtkCheckButton*" style "toggle_button"
133 widget_class "*GtkRadioButton*" style "toggle_button"
134 widget_class "*GtkButton*" style "button"
135 widget_class "*Ruler" style "ruler"
136 widget_class "*GtkText" style "text"
137 widget "*GtkCurve" style "curve"
149 "debug-msg" ("hallo and")
154 # possible priorities are (in ascending order):
156 # gtk (used by gtk for internal class bindings)
157 # application (for hard coded bindings on application basis)
158 # rc (used implicitel by rc files)
160 class "GtkCList" binding "test1" # implicit : rc
161 #class "GtkWindow" binding : highest "test2" # override "rc" priority
166 "scroll-vertical" (step-backward, 0.0)
169 "scroll-vertical" (step-forward, 0.0)
173 class "GtkCList" binding "clist-test"
175 style "testthickness" {
180 #class "GtkFrame" style "testthickness"
182 # Test ordering of RC file priorities
184 style "testgtk-red-style" {
188 style "testgtk-green-style" {
192 style "testgtk-blue-style" {
197 widget_class "*.GtkAspectFrame.*.GtkLabel" style "testgtk-green-style"
198 widget_class "*.GtkAspectFrame.*.GtkLabel" style "testgtk-blue-style" # override because it's later
200 widget "*.testgtk-red-label" style "testgtk-red-style" # override because it's widget, not widget_class
202 widget "*.testgtk-green-label" style : highest "testgtk-green-style"
203 # overrides the following, because it is higher priority
204 widget "*.testgtk-green-label" style "testgtk-red-style"