]> git.draconx.ca Git - fvwmconf.git/blob - gtk2rc
Use mpdexec for key bindings.
[fvwmconf.git] / gtk2rc
1 gtk-font-name = "DejaVu Sans 10"
2 gtk-icon-theme-name = "Tango"
3
4 # Set GtkSettings color scheme property.
5 # This can be overriden (via an xsetting) with eg. the gnome-appearance-properties.
6 gtk_color_scheme = "fg_color:#101010\nbg_color:#EDE9E3\nbase_color:#fff\ntext_color:#000\nselected_bg_color:#5598d7\nselected_fg_color:#fff\ntooltip_bg_color:#F5F5B5\ntooltip_fg_color:#000"
7
8 style "clearlooks-default"
9 {
10         ########
11         # Style Properties
12         ########
13         GtkButton      ::child-displacement-x = 1
14         GtkButton      ::child-displacement-y = 1
15         GtkButton      ::default-border       = { 0, 0, 0, 0 }
16         GtkCheckButton ::indicator-size       = 14
17
18         GtkPaned       ::handle-size          = 6
19
20         GtkRange       ::trough-border        = 0
21         GtkRange       ::slider-width         = 15
22         GtkRange       ::stepper-size         = 15
23
24         GtkScale       ::slider-length        = 23
25         GtkScale       ::trough-side-details  = 1
26         GtkScrollbar   ::min-slider-length    = 30
27
28         GtkMenuBar     ::internal-padding     = 0
29         GtkExpander    ::expander-size        = 16
30         GtkToolbar     ::internal-padding     = 1
31         GtkTreeView    ::expander-size        = 14
32         GtkTreeView    ::vertical-separator   = 1
33
34         GtkMenu        ::horizontal-padding   = 0
35         GtkMenu        ::vertical-padding     = 0
36
37         # Glow the tasklist by changing the color instead of overlaying it
38         # with a rectangle
39         WnckTasklist   ::fade-overlay-rect    = 0
40
41         xthickness = 1
42         ythickness = 1
43
44         fg[NORMAL]        = "#101010" # black
45         fg[PRELIGHT]      = "#101010" # black
46         fg[SELECTED]      = "#ffffff" # white 
47         fg[ACTIVE]        = "#000000" # black
48         fg[INSENSITIVE]   = "#b5b3ac" # dark beige
49
50         bg[NORMAL]        = "#efebe7"
51         bg[PRELIGHT]      = "#f5f3f0" # very light beige
52         bg[SELECTED]        = "#628cb2" # deepsky
53         bg[INSENSITIVE]   = "#efebe7" # beige
54         bg[ACTIVE]        = "#d4cfca" #"#d7d3ca" # dark beige
55
56         base[NORMAL]      = "#ffffff" # white 
57         base[PRELIGHT]    = "#628cb2" # dark beige
58         base[ACTIVE]      = "#a28e7e" # darker deepsky
59         base[SELECTED]    = "#628cb2" # deepsky
60         base[INSENSITIVE] = "#efebe7" # beige
61
62         text[NORMAL]      = "#000000" # black
63         text[PRELIGHT]    = "#000000" # black
64         text[ACTIVE]      = "#ffffff" # white
65         text[SELECTED]    = "#ffffff" # white
66         text[INSENSITIVE] = "#b5b3ac" # dark beige
67
68         engine "clearlooks" 
69         {
70                 colorize_scrollbar = FALSE
71                 menubarstyle      = 2      # 0 = flat, 1 = sunken, 2 = flat gradient
72                 toolbarstyle      = 1      # 0 = flat, 1 = enable effects
73                 animation         = FALSE
74                 style             = CLASSIC
75         }
76 }
77
78 style "clearlooks-wide"
79 {
80         xthickness = 2
81         ythickness = 2
82 }
83
84 style "clearlooks-wider"
85 {
86         xthickness = 3
87         ythickness = 3
88 }
89
90 style "clearlooks-button"
91 {
92         xthickness   = 3
93         ythickness   = 3
94
95         bg[NORMAL]        = "#f6f4f1"
96         bg[INSENSITIVE]   = "#f2efeb"
97         bg[PRELIGHT]      = "#faf9f8"
98 }
99
100 style "clearlooks-notebook"
101 {
102         xthickness = 2
103         ythickness = 2
104
105         bg[NORMAL]      = "#eae4df"
106         bg[INSENSITIVE] = "#eae4df"
107 }
108
109 style "clearlooks-tasklist"
110 {
111         xthickness = 5
112         ythickness = 3
113 }
114
115 style "clearlooks-menu"
116 {
117         xthickness = 0
118         ythickness = 0
119
120         bg[NORMAL] = "#f8f5f2"
121
122         # Radius of the menu items (inside menus)
123         engine "clearlooks" {
124                 radius = 0.0
125         }
126 }
127
128 style "clearlooks-menu-item"
129 {
130         xthickness = 2
131         ythickness = 3
132
133         fg[PRELIGHT]   = "#ffffff"
134         text[PRELIGHT] = "#ffffff"
135
136         # Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
137         text[NORMAL]       = @fg_color
138         text[PRELIGHT]     = @selected_fg_color
139         text[SELECTED]     = @selected_fg_color
140         text[ACTIVE]       = @fg_color
141         text[INSENSITIVE]  = darker (@bg_color)
142 }
143
144 style "clearlooks-separator-menu-item"
145 {
146         GtkSeparatorMenuItem::horizontal-padding = 0
147         # We are setting the desired height by using wide-separators
148         # There is no other way to get the odd height ...
149         GtkWidget::wide-separators = 1
150         GtkWidget::separator-width = 1
151         GtkWidget::separator-height = 5
152         xthickness = 1
153         ythickness = 0
154 }
155
156 # Based on the default style so that the colors from the button
157 # style are overriden again.
158 style "clearlooks-treeview-header" = "clearlooks-default"
159 {
160         xthickness = 2
161         ythickness = 1
162 }
163
164 style "clearlooks-frame-title"
165 {
166         fg[NORMAL] = lighter (@fg_color)
167 }
168
169 style "clearlooks-tooltips"
170 {
171         xthickness = 4
172         ythickness = 4
173
174         bg[NORMAL] = @tooltip_bg_color
175         fg[NORMAL] = @tooltip_fg_color
176 }
177
178 style "clearlooks-progressbar"
179 {
180         xthickness = 1
181         ythickness = 1
182
183         fg[PRELIGHT] = @selected_fg_color
184
185         engine "clearlooks" {
186                 # Explicitly set the radius, for progress
187                 # bars inside menuitems
188                 radius = 3.0
189         }
190 }
191
192 style "clearlooks-nautilus-location" {
193         bg[NORMAL] = mix(0.60, shade (1.05,@bg_color), @selected_bg_color)
194 }
195
196
197 #########################################
198 # Matches
199 #########################################
200
201 # Clearlooks default style is applied to every widget
202 class "GtkWidget"    style "clearlooks-default"
203
204 # Increase the x/ythickness in some widgets
205 class "GtkToolbar"   style "clearlooks-default" 
206 class "GtkRange"     style "clearlooks-wide"
207 class "GtkFrame"     style "clearlooks-wide"
208 class "GtkSeparator" style "clearlooks-wide"
209 class "GtkEntry"     style "clearlooks-wider"
210
211 # General matching following, the order is choosen so that the right styles override each other
212 # eg. progressbar needs to be more important then the menu match.
213
214 widget_class "*<GtkMenu>*"              style "clearlooks-menu"
215 widget_class "*<GtkMenuItem>*"          style "clearlooks-menu-item"
216 widget_class "*<GtkSeparatorMenuItem>*" style "clearlooks-separator-menu-item"
217
218 widget_class "*<GtkButton>"      style "clearlooks-button"
219 widget_class "*<GtkNotebook>"    style "clearlooks-notebook"
220 widget_class "*<GtkProgressBar>" style "clearlooks-progressbar"
221
222 widget_class "*.<GtkFrame>.<GtkLabel>" style "clearlooks-frame-title"
223
224 # Treeview header
225 widget_class "*.<GtkTreeView>.<GtkButton>" style "clearlooks-treeview-header"
226 widget_class "*.<GtkCTree>.<GtkButton>"    style "clearlooks-treeview-header"
227 widget_class "*.<GtkList>.<GtkButton>"     style "clearlooks-treeview-header"
228 widget_class "*.<GtkCList>.<GtkButton>"    style "clearlooks-treeview-header"
229
230 # The window of the tooltip is called "gtk-tooltip"
231 ################################
232 # FIXME:
233 # This will not work if one embeds eg. a button into the tooltip.
234 # As far as I can tell right now we will need to rework the theme
235 # quite a bit to get this working correctly.
236 # (It will involve setting different priorities, etc.)
237 ################################
238 widget "gtk-tooltip*" style "clearlooks-tooltips"
239
240
241
242 ###################################################
243 # Special cases and work arounds
244 ###################################################
245
246 # Special case the nautilus-extra-view-widget
247 # ToDo: A more generic approach for all applications that have a widget like this.
248 widget "*.nautilus-extra-view-widget" style : highest "clearlooks-nautilus-location"
249
250 # Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
251 # Note that the work around assumes that the combobox is _not_ in
252 # appears-as-list mode.
253 # Similar hack also in the menuitem style.
254 # This style does not affect GtkComboBoxEntry, it does have an effect
255 # on comboboxes in appears-as-list mode though.
256 style "clearlooks-combobox-text-color-workaround"
257 {
258         text[NORMAL]      = @fg_color
259         text[PRELIGHT]    = @fg_color
260         text[SELECTED]    = @selected_fg_color
261         text[ACTIVE]      = @fg_color
262         text[INSENSITIVE] = darker (@bg_color)
263 }
264 widget_class "*.<GtkComboBox>.<GtkCellView>"   style "clearlooks-combobox-text-color-workaround"
265
266
267 # Work around the evolution "New" button bug by making the toolbar flat.
268 # http://bugzilla.gnome.org/show_bug.cgi?id=446953
269 # Maybe remove this workaround in unstable releases.
270 style "clearlooks-evo-new-button-workaround"
271 {
272         engine "clearlooks" {
273                 toolbarstyle = 0
274         }
275 }
276 widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "clearlooks-evo-new-button-workaround"