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
34 GtkArrow::arrow-scaling = 1.0
36 class "GtkWidget" style "global-style-properties"
44 # GtkScrollbar::spacing = 33
45 # GtkButton::color = { 3, 2,45, 6, 6, 4, 23 }
50 stock["gtk-dialog-warning"] =
52 { "3DRings.xpm", *, *, *}
56 class "GtkImage" style "myicons"
59 class "GtkWidget" style "defaultfont"
63 # bg_pixmap[NORMAL] = "marble.xpm"
68 fg[NORMAL] = { 1.0, 0, 0 }
69 bg_pixmap[NORMAL] = "<parent>"
72 style "button" = "default"
74 # fg[PRELIGHT] = { 1.0, 1.0, 1.0 }
75 # bg[PRELIGHT] = { 0, 0, 0.75 }
76 # bg[PRELIGHT] = { 0.75, 0, 0x00 }
79 style "toggle_button" = "button"
81 fg[NORMAL] = { 1.0, 0, 0 }
82 fg[ACTIVE] = { 1.0, 0, 0 }
83 # bg_pixmap[ACTIVE] = "check-y.xpm"
84 # bg_pixmap[NORMAL] = "check-n.xpm"
89 bg_pixmap[NORMAL] = "marble.xpm"
90 text[NORMAL] = { 1.0, 1.0, 1.0 }
91 fg[NORMAL] = { 1.0, 1.0, 1.0 }
92 base[NORMAL] = { 0.0, 0.0, 0.0 }
97 fg[NORMAL] = { 1.0, 1.0, 1.0 }
98 bg[NORMAL] = { 0.0, 0.0, 1.0 }
99 bg[ACTIVE] = { 0.0 ,0.0, 0.5 }
100 bg[PRELIGHT] = { 0.75 ,0.75, 1.0 }
110 fg[NORMAL] = { 58000, 0, 0 } # red
113 style "red-bar-parent"
115 color["my-red"] = "red"
116 color["my-other-red"] = { 0.95, .55, 0.55 }
119 style "red-bar" = "red-bar-parent"
121 color["my-light-red"] = lighter (lighter (@my-red))
123 bg[PRELIGHT] = @my-light-red
126 # override testgtk2, introduce the green color in the button list
127 style 'button_list' = 'button'
129 font_name = "Monospace 10"
130 bg[PRELIGHT] = { 0, 0.75, 0x00 }
132 widget "main window.*GtkScrolledWindow.*GtkButton*" style "button_list"
134 style "checkbutton" {
135 # GtkCheckButton::indicator-size = 27
138 class "GtkCheckButton" style "checkbutton"
141 class "GtkScrollbar" style "red-bar"
143 widget_class "GtkWindow" style "window"
144 widget_class "GtkDialog" style "window"
145 widget_class "GtkFileSelection" style "window"
146 widget_class "*Gtk*Scale" style "scale"
147 widget_class "*GtkCheckButton*" style "toggle_button"
148 widget_class "*GtkRadioButton*" style "toggle_button"
149 widget_class "*GtkButton*" style "button"
150 widget_class "*Ruler" style "ruler"
151 widget_class "*GtkText" style "text"
152 widget "*GtkCurve" style "curve"
164 "debug-msg" ("hallo and")
169 # possible priorities are (in ascending order):
171 # gtk (used by gtk for internal class bindings)
172 # application (for hard coded bindings on application basis)
173 # rc (used implicitel by rc files)
175 class "GtkCList" binding "test1" # implicit : rc
176 #class "GtkWindow" binding : highest "test2" # override "rc" priority
181 "scroll-vertical" (step-backward, 0.0)
184 "scroll-vertical" (step-forward, 0.0)
188 class "GtkCList" binding "clist-test"
190 style "testthickness" {
195 #class "GtkFrame" style "testthickness"
197 # Test ordering of RC file priorities
199 style "testgtk-red-style" {
203 style "testgtk-green-style" {
207 style "testgtk-blue-style" {
212 widget_class "*.GtkAspectFrame.*.GtkLabel" style "testgtk-green-style"
213 widget_class "*.GtkAspectFrame.*.GtkLabel" style "testgtk-blue-style" # override because it's later
215 widget "*.testgtk-red-label" style "testgtk-red-style" # override because it's widget, not widget_class
217 widget "*.testgtk-green-label" style : highest "testgtk-green-style"
218 # overrides the following, because it is higher priority
219 widget "*.testgtk-green-label" style "testgtk-red-style"