[14481] | 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 | pixmap_path "." |
---|
| 23 | |
---|
| 24 | style "defaultfont" |
---|
| 25 | { |
---|
| 26 | # fontset = "-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-*-*,*" |
---|
| 27 | font = "-adobe-helvetica-medium-r-normal--*-120-*-*-*-*-*-*,*" |
---|
| 28 | } |
---|
| 29 | |
---|
| 30 | # common default |
---|
| 31 | class "GtkWidget" style "defaultfont" |
---|
| 32 | |
---|
| 33 | style "window" |
---|
| 34 | { |
---|
| 35 | # bg_pixmap[NORMAL] = "marble.xpm" |
---|
| 36 | } |
---|
| 37 | |
---|
| 38 | style "scale" |
---|
| 39 | { |
---|
| 40 | fg[NORMAL] = { 1.0, 0, 0 } |
---|
| 41 | bg_pixmap[NORMAL] = "<parent>" |
---|
| 42 | } |
---|
| 43 | |
---|
| 44 | style "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 | |
---|
| 51 | style "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 | |
---|
| 59 | style "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 | |
---|
| 67 | style "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 | |
---|
| 75 | style "ruler" |
---|
| 76 | { |
---|
| 77 | font = '-adobe-helvetica-medium-r-normal--*-80-*-*-*-*-*-*' |
---|
| 78 | } |
---|
| 79 | |
---|
| 80 | style "curve" |
---|
| 81 | { |
---|
| 82 | fg[NORMAL] = { 58000, 0, 0 } # red |
---|
| 83 | } |
---|
| 84 | |
---|
| 85 | style "red-bar" |
---|
| 86 | { |
---|
| 87 | bg[PRELIGHT] = { 0.95, .55, 0.55 } |
---|
| 88 | } |
---|
| 89 | |
---|
| 90 | # override testgtk2, introduce the green color in the button list |
---|
| 91 | style 'button_list' = 'button' |
---|
| 92 | { |
---|
| 93 | font = "-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-*-*" |
---|
| 94 | bg[PRELIGHT] = { 0, 0.75, 0x00 } |
---|
| 95 | } |
---|
| 96 | widget "main window.*GtkScrolledWindow.*GtkButton*" style "button_list" |
---|
| 97 | |
---|
| 98 | |
---|
| 99 | class "GtkScrollbar" style "red-bar" |
---|
| 100 | |
---|
| 101 | widget_class "GtkWindow" style "window" |
---|
| 102 | widget_class "GtkDialog" style "window" |
---|
| 103 | widget_class "GtkFileSelection" style "window" |
---|
| 104 | widget_class "*Gtk*Scale" style "scale" |
---|
| 105 | widget_class "*GtkCheckButton*" style "toggle_button" |
---|
| 106 | widget_class "*GtkRadioButton*" style "toggle_button" |
---|
| 107 | widget_class "*GtkButton*" style "button" |
---|
| 108 | widget_class "*Ruler" style "ruler" |
---|
| 109 | widget_class "*GtkText" style "text" |
---|
| 110 | widget "*GtkCurve" style "curve" |
---|
| 111 | |
---|
| 112 | binding "test1" |
---|
| 113 | { |
---|
| 114 | bind "<ctrl>1" { |
---|
| 115 | "debug-msg" ("jup!") |
---|
| 116 | } |
---|
| 117 | } |
---|
| 118 | |
---|
| 119 | binding "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 |
---|
| 133 | class "GtkCList" binding "test1" # implicit : rc |
---|
| 134 | #class "GtkWindow" binding : highest "test2" # override "rc" priority |
---|
| 135 | |
---|
| 136 | binding "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 | |
---|
| 146 | class "GtkCList" binding "clist-test" |
---|
[15780] | 147 | |
---|