source: trunk/third/gtk/gtk/testgtkrc @ 14482

Revision 14482, 3.1 KB checked in by ghudson, 25 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r14481, which included commits to RCS files with non-trunk default branches.
Line 
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
14include "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
22pixmap_path "."
23
24style "defaultfont"
25{
26#  fontset = "-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-*-*,*"
27  font = "-adobe-helvetica-medium-r-normal--*-120-*-*-*-*-*-*,*"
28}
29
30# common default
31class "GtkWidget" style "defaultfont"
32
33style "window"
34{
35# bg_pixmap[NORMAL] = "marble.xpm"
36}
37
38style "scale"
39{
40  fg[NORMAL] = { 1.0, 0, 0 }
41  bg_pixmap[NORMAL] = "<parent>"
42}
43
44style "button" = "default"
45{
46#  fg[PRELIGHT] = { 1.0, 1.0, 1.0 }
47#  bg[PRELIGHT] = { 0, 0, 0.75 }
48#  bg[PRELIGHT] = { 0.75, 0, 0x00 }
49}
50
51style "toggle_button" = "button"
52{
53  fg[NORMAL] = { 1.0, 0, 0 }
54  fg[ACTIVE] = { 1.0, 0, 0 }
55#  bg_pixmap[ACTIVE] = "check-y.xpm"
56#  bg_pixmap[NORMAL] = "check-n.xpm"
57}
58
59style "text"
60{
61  bg_pixmap[NORMAL] = "marble.xpm"
62  text[NORMAL] = { 1.0, 1.0, 1.0 }
63  fg[NORMAL] = { 1.0, 1.0, 1.0 }
64  base[NORMAL] = { 0.0, 0.0, 0.0 }
65}
66
67style "slider"
68{
69  fg[NORMAL] = { 1.0, 1.0, 1.0 }
70  bg[NORMAL] = { 0.0, 0.0, 1.0 }
71  bg[ACTIVE] = { 0.0 ,0.0, 0.5 }
72  bg[PRELIGHT] = { 0.75 ,0.75, 1.0 }
73}
74
75style "ruler"
76{
77  font = '-adobe-helvetica-medium-r-normal--*-80-*-*-*-*-*-*'
78}
79
80style "curve"
81{
82  fg[NORMAL] = { 58000, 0, 0 }                  # red
83}
84
85style "red-bar"
86{
87  bg[PRELIGHT] = { 0.95, .55, 0.55 }
88}
89
90# override testgtk2, introduce the green color in the button list
91style 'button_list' = 'button'
92{
93  font = "-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-*-*"
94  bg[PRELIGHT] = { 0, 0.75, 0x00 }
95}
96widget "main window.*GtkScrolledWindow.*GtkButton*" style "button_list"
97
98
99class "GtkScrollbar" style "red-bar"
100
101widget_class "GtkWindow" style "window"
102widget_class "GtkDialog" style "window"
103widget_class "GtkFileSelection" style "window"
104widget_class "*Gtk*Scale" style "scale"
105widget_class "*GtkCheckButton*" style "toggle_button"
106widget_class "*GtkRadioButton*" style "toggle_button"
107widget_class "*GtkButton*" style "button"
108widget_class "*Ruler" style "ruler"
109widget_class "*GtkText" style "text"
110widget "*GtkCurve" style "curve"
111
112binding "test1"
113{
114  bind "<ctrl>1" {
115    "debug-msg" ("jup!")
116  }
117}
118
119binding "test2"
120{
121  bind "<ctrl>1" {
122    "debug-msg" ("hallo and")
123    "debug-msg" ("huhu")
124  }
125}
126
127# possible priorities are (in ascending order):
128# lowest
129# gtk         (used by gtk for internal class bindings)
130# application (for hard coded bindings on application basis)
131# rc          (used implicitel by rc files)
132# highest
133class "GtkCList" binding  "test1"           # implicit : rc
134#class "GtkWindow" binding : highest "test2" # override "rc" priority
135
136binding "clist-test"
137{
138  bind "j" {
139    "scroll-vertical" (step-backward, 0.0)
140  }
141  bind "k" {
142    "scroll-vertical" (step-forward, 0.0)
143  }
144}
145
146class "GtkCList" binding "clist-test"
Note: See TracBrowser for help on using the repository browser.