]> Pileus Git - ~andy/gtk/blob - gtk/testgtkrc
Remove all references to offscreen flag which was no longer used.
[~andy/gtk] / gtk / testgtkrc
1 # pixmap_path "<dir 1>:<dir 2>:<dir 3>:..."
2 #
3 # include "rc-file"
4 #
5 # style <name> [= <name>]
6 # {
7 #   <option>
8 # }
9 #
10 # widget <widget_set> style <style_name>
11 # widget_class <widget_class_set> style <style_name>
12
13 # testgtkrc2 sets all the buttons in the main window to blue by default
14 include "testgtkrc2"
15
16 #include "/usr/local/share/themes/Pixmap/gtk/gtkrc"
17 #include "/usr/local/share/themes/Redmond95/gtk/gtkrc"
18 #include "/usr/local/share/themes/Metal/gtk/gtkrc"
19 #include "/usr/local/share/themes/Notif/gtk/gtkrc"
20 #include "/usr/local/share/themes/Default/gtk/gtkrc"
21
22 # On Windows, if you have installed gtk-engines, try this for instance:
23 #include "\\windows\\gtk\\themes\\Pixmap\\gtk\\gtkrc"
24
25 pixmap_path "."
26
27 style "defaultfont"
28 {
29   font_name = "Sans 12"
30 }
31
32 # common default
33 class "GtkWidget" style "defaultfont"
34
35 style "window"
36 {
37 # bg_pixmap[NORMAL] = "marble.xpm"
38 }
39
40 style "scale"
41 {
42   fg[NORMAL] = { 1.0, 0, 0 }
43   bg_pixmap[NORMAL] = "<parent>"
44 }
45
46 style "button" = "default"
47 {
48 #  fg[PRELIGHT] = { 1.0, 1.0, 1.0 }
49 #  bg[PRELIGHT] = { 0, 0, 0.75 }
50 #  bg[PRELIGHT] = { 0.75, 0, 0x00 }
51 }
52
53 style "toggle_button" = "button"
54 {
55   fg[NORMAL] = { 1.0, 0, 0 }
56   fg[ACTIVE] = { 1.0, 0, 0 }
57 #  bg_pixmap[ACTIVE] = "check-y.xpm"
58 #  bg_pixmap[NORMAL] = "check-n.xpm"
59 }
60
61 style "text"
62 {
63   bg_pixmap[NORMAL] = "marble.xpm"
64   text[NORMAL] = { 1.0, 1.0, 1.0 }
65   fg[NORMAL] = { 1.0, 1.0, 1.0 }
66   base[NORMAL] = { 0.0, 0.0, 0.0 }
67 }
68
69 style "slider"
70 {
71   fg[NORMAL] = { 1.0, 1.0, 1.0 }
72   bg[NORMAL] = { 0.0, 0.0, 1.0 }
73   bg[ACTIVE] = { 0.0 ,0.0, 0.5 }
74   bg[PRELIGHT] = { 0.75 ,0.75, 1.0 }
75 }
76
77 style "ruler"
78 {
79   font_name = 'Sans 8'
80 }
81
82 style "curve"
83 {
84   fg[NORMAL] = { 58000, 0, 0 }                  # red
85 }
86
87 style "red-bar"
88 {
89   bg[PRELIGHT] = { 0.95, .55, 0.55 }
90 }
91
92 # override testgtk2, introduce the green color in the button list
93 style 'button_list' = 'button'
94 {
95   font_name = "Monospace 10"
96   bg[PRELIGHT] = { 0, 0.75, 0x00 }
97 }
98 widget "main window.*GtkScrolledWindow.*GtkButton*" style "button_list"
99
100
101 class "GtkScrollbar" style "red-bar"
102
103 widget_class "GtkWindow" style "window"
104 widget_class "GtkDialog" style "window"
105 widget_class "GtkFileSelection" style "window"
106 widget_class "*Gtk*Scale" style "scale"
107 widget_class "*GtkCheckButton*" style "toggle_button"
108 widget_class "*GtkRadioButton*" style "toggle_button"
109 widget_class "*GtkButton*" style "button"
110 widget_class "*Ruler" style "ruler"
111 widget_class "*GtkText" style "text"
112 widget "*GtkCurve" style "curve"
113
114 binding "test1"
115 {
116   bind "<ctrl>1" {
117     "debug-msg" ("jup!")
118   }
119 }
120
121 binding "test2"
122 {
123   bind "<ctrl>1" {
124     "debug-msg" ("hallo and")
125     "debug-msg" ("huhu")
126   }
127 }
128
129 # possible priorities are (in ascending order):
130 # lowest
131 # gtk         (used by gtk for internal class bindings)
132 # application (for hard coded bindings on application basis)
133 # rc          (used implicitel by rc files)
134 # highest
135 class "GtkCList" binding  "test1"           # implicit : rc
136 #class "GtkWindow" binding : highest "test2" # override "rc" priority
137
138 binding "clist-test"
139 {
140   bind "j" {
141     "scroll-vertical" (step-backward, 0.0)
142   }
143   bind "k" {
144     "scroll-vertical" (step-forward, 0.0)
145   }
146 }
147
148 class "GtkCList" binding "clist-test"