1
2# Please keep this gtkrc in sync with the other ones from Clearlooks based themes.
3
4gtk-color-scheme = "base_color:#ffffff\nfg_color:#000000\ntooltip_fg_color:#000000\nselected_bg_color:#5598d7\nselected_fg_color:#ffffff\ntext_color:#000000\nbg_color:#ede9e3\ntooltip_bg_color:#FFFFBF"
5
6style "default" {
7	xthickness = 1
8	ythickness = 1
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
17	GtkCheckButton::indicator-size = 14
18
19	GtkPaned::handle-size = 6
20
21	GtkRange::trough-border = 0
22	GtkRange::slider-width = 15
23	GtkRange::stepper-size = 15
24
25	GtkScale::slider-length = 23
26	GtkScale::trough-side-details = 1
27
28	GtkScrollbar::min-slider-length = 30
29	GtkMenuBar::internal-padding = 0
30	GtkExpander::expander-size = 16
31	GtkToolbar::internal-padding = 1
32	GtkTreeView::expander-size = 14
33	GtkTreeView::vertical-separator = 0
34
35	GtkMenu::horizontal-padding = 0
36	GtkMenu::vertical-padding = 0
37
38	WnckTasklist::fade-overlay-rect = 0
39	# The following line hints to gecko (and possibly other appliations)
40	# that the entry should be drawn transparently on the canvas.
41	# Without this, gecko will fill in the background of the entry.
42	GtkEntry::honors-transparent-bg-hint = 1
43
44	GtkEntry::progress-border = { 2, 2, 2, 2 }
45
46	####################
47	# Color Definitions
48	####################
49	bg[NORMAL]        = @bg_color
50	bg[PRELIGHT]      = shade (1.02, @bg_color)
51	bg[SELECTED]      = @selected_bg_color
52	bg[INSENSITIVE]   = @bg_color
53	bg[ACTIVE]        = shade (0.9, @bg_color)
54
55	fg[NORMAL]        = @fg_color
56	fg[PRELIGHT]      = @fg_color
57	fg[SELECTED]      = @selected_fg_color
58	fg[INSENSITIVE]   = darker (@bg_color)
59	fg[ACTIVE]        = @fg_color
60
61	text[NORMAL]      = @text_color
62	text[PRELIGHT]    = @text_color
63	text[SELECTED]    = @selected_fg_color
64	text[INSENSITIVE] = darker (@bg_color)
65	text[ACTIVE]      = @selected_fg_color
66
67	base[NORMAL]      = @base_color
68	base[PRELIGHT]    = shade (0.95, @bg_color)
69	base[SELECTED]    = @selected_bg_color
70	base[INSENSITIVE] = @bg_color
71	base[ACTIVE]      = shade (0.9, @selected_bg_color)
72
73	engine "clearlooks" {
74		colorize_scrollbar = TRUE
75		reliefstyle = 1
76		menubarstyle = 2
77		toolbarstyle = 1
78		animation = FALSE
79		radius = 3.0
80		style = GLOSSY
81
82		# Set a hint to disable backward compatibility fallbacks.
83		hint = "use-hints"
84	}
85}
86
87style "wide" {
88	xthickness = 2
89	ythickness = 2
90}
91
92style "wider" {
93	xthickness = 3
94	ythickness = 3
95}
96
97style "entry" {
98	xthickness = 3
99	ythickness = 3
100
101	bg[SELECTED] = mix (0.4, @selected_bg_color, @base_color)
102	fg[SELECTED] = @text_color
103
104	engine "clearlooks" {
105		focus_color = shade (0.65, @selected_bg_color)
106	}
107}
108
109style "spinbutton" {
110
111	engine "clearlooks" {
112		hint = "spinbutton"
113	}
114}
115
116style "scale" = "button" {
117	xthickness = 2
118	ythickness = 2
119
120	engine "clearlooks" {
121		hint = "scale"
122	}
123}
124
125style "vscale" {
126
127	engine "clearlooks" {
128		hint = "vscale"
129	}
130}
131
132style "hscale" {
133
134	engine "clearlooks" {
135		hint = "hscale"
136	}
137}
138
139style "scrollbar" {
140	xthickness = 2
141	ythickness = 2
142
143	engine "clearlooks" {
144		hint = "scrollbar"
145	}
146}
147
148style "hscrollbar" {
149
150	engine "clearlooks" {
151		hint = "hscrollbar"
152	}
153}
154
155style "vscrollbar" {
156
157	engine "clearlooks" {
158		hint = "vscrollbar"
159	}
160}
161
162style "notebook_bg" {
163
164	bg[NORMAL]        = shade (1.04, @bg_color)
165}
166
167style "button" {
168	xthickness = 3
169	ythickness = 3
170
171	bg[NORMAL]        = shade (1.05, @bg_color)
172	bg[PRELIGHT]      = mix(0.60, shade (1.05,@bg_color), @selected_bg_color)
173}
174
175style "notebook" {
176	xthickness = 2
177	ythickness = 2
178}
179
180style "statusbar" {
181
182	engine "clearlooks" {
183		hint = "statusbar"
184	}
185}
186
187style "comboboxentry" {
188
189	engine "clearlooks" {
190		# Note:
191		# If you set the appears-as-list option on comboboxes in the theme,
192		# then you should set this hint on the combobox instead.
193		hint = "comboboxentry"
194	}
195}
196
197style "menubar" {
198
199	engine "clearlooks" {
200		hint = "menubar"
201	}
202}
203
204style "menu" {
205	xthickness = 2
206	ythickness = 2
207
208	bg[NORMAL]        = shade (1.08, @bg_color)
209}
210
211style "menu_item" {
212	xthickness = 2
213	ythickness = 3
214
215	fg[PRELIGHT]      = @selected_fg_color
216}
217
218style "frame_title" {
219
220	fg[NORMAL]        = lighter (@fg_color)
221}
222
223style "treeview" {
224	xthickness = 2
225	ythickness = 2
226
227	engine "clearlooks" {
228		hint = "treeview"
229	}
230}
231
232style "progressbar" {
233	xthickness = 1
234	ythickness = 1
235
236	fg[PRELIGHT]      = @selected_fg_color
237
238	engine "clearlooks" {
239		radius = 1.5
240
241		hint = "progressbar"
242	}
243}
244
245# This style is based on the default style, so that the colors from the button
246# style are overriden again.
247style "treeview_header" = "default" {
248	xthickness = 2
249	ythickness = 1
250
251	engine "clearlooks" {
252		hint = "treeview-header"
253	}
254}
255
256style "tooltips" {
257	xthickness = 4
258	ythickness = 4
259
260	bg[NORMAL]        = @tooltip_bg_color
261	fg[NORMAL]        = @tooltip_fg_color
262}
263
264style "nautilus_location" {
265
266	bg[NORMAL]        = mix (0.60, shade (1.05, @bg_color), @selected_bg_color)
267}
268
269# Wrokaroudn style for places where the text color is used instead of the fg color.
270style "text_is_fg_color_workaround" {
271
272	text[NORMAL]      = @fg_color
273	text[PRELIGHT]    = @fg_color
274	text[SELECTED]    = @selected_fg_color
275	text[ACTIVE]      = @fg_color
276	text[INSENSITIVE] = darker (@bg_color)
277}
278
279# Workaround style for menus where the text color is used instead of the fg color.
280style "menuitem_text_is_fg_color_workaround" {
281
282	text[NORMAL]      = @fg_color
283	text[PRELIGHT]    = @selected_fg_color
284	text[SELECTED]    = @selected_fg_color
285	text[ACTIVE]      = @fg_color
286	text[INSENSITIVE] = darker (@bg_color)
287}
288
289# Workaround style for places where the fg color is used instead of the text color.
290style "fg_is_text_color_workaround" {
291
292	fg[NORMAL]        = @text_color
293	fg[PRELIGHT]      = @text_color
294	fg[SELECTED]      = @selected_fg_color
295	fg[ACTIVE]        = @selected_fg_color
296	fg[INSENSITIVE]   = darker (@bg_color)
297}
298
299# Style to set the toolbar to use a flat style. This is because the "New" button in
300# Evolution is not drawn transparent. So if there is a gradient in the background it will
301# look really wrong.
302# See http://bugzilla.gnome.org/show_bug.cgi?id=446953.
303style "evo_new_button_workaround" {
304
305	engine "clearlooks" {
306		toolbarstyle = 0
307	}
308}
309
310
311###############################################################################
312# The following part of the gtkrc applies the different styles to the widgets.
313###############################################################################
314
315# The default style is applied to every widget
316class "GtkWidget" style "default"
317
318class "GtkSeparator" style "wide"
319class "GtkFrame" style "wide"
320class "GtkCalendar" style "wide"
321class "GtkEntry" style "entry"
322
323class "GtkSpinButton" style "spinbutton"
324class "GtkScale" style "scale"
325class "GtkVScale" style "vscale"
326class "GtkHScale" style "hscale"
327class "GtkScrollbar" style "scrollbar"
328class "GtkHScrollbar" style "hscrollbar"
329class "GtkVScrollbar" style "vscrollbar"
330
331# General matching follows. The order is choosen so that the right styles override
332# each other. EG. progressbar needs to be more important than the menu match.
333widget_class "*<GtkNotebook>" style "notebook_bg"
334# This is not perfect, it could be done better.
335# (That is modify *every* widget in the notebook, and change those back that
336# we really don't want changed)
337widget_class "*<GtkNotebook>*<GtkEventBox>" style "notebook_bg"
338widget_class "*<GtkNotebook>*<GtkDrawingArea>" style "notebook_bg"
339widget_class "*<GtkNotebook>*<GtkLayout>" style "notebook_bg"
340widget_class "*<GtkNotebook>*<GtkViewport>" style "notebook_bg"
341widget_class "*<GtkNotebook>*<GtkScrolledWindow>" style "notebook_bg"
342
343widget_class "*<GtkButton>" style "button"
344widget_class "*<GtkNotebook>" style "notebook"
345widget_class "*<GtkStatusbar>*" style "statusbar"
346
347widget_class "*<GtkComboBoxEntry>*" style "comboboxentry"
348widget_class "*<GtkCombo>*" style "comboboxentry"
349
350widget_class "*<GtkMenuBar>*" style "menubar"
351widget_class "*<GtkMenu>*" style "menu"
352widget_class "*<GtkMenuItem>*" style "menu_item"
353
354widget_class "*.<GtkFrame>.<GtkLabel>" style "frame_title"
355widget_class "*.<GtkTreeView>*" style "treeview"
356
357widget_class "*<GtkProgress>" style "progressbar"
358
359# Treeview headers (and similar stock GTK+ widgets)
360widget_class "*.<GtkTreeView>.<GtkButton>" style "treeview_header"
361widget_class "*.<GtkCTree>.<GtkButton>" style "treeview_header"
362widget_class "*.<GtkList>.<GtkButton>" style "treeview_header"
363widget_class "*.<GtkCList>.<GtkButton>" style "treeview_header"
364
365# The window of the tooltip is called "gtk-tooltip"
366##################################################################
367# FIXME:
368# This will not work if one embeds eg. a button into the tooltip.
369# As far as I can tell right now we will need to rework the theme
370# quite a bit to get this working correctly.
371# (It will involve setting different priorities, etc.)
372##################################################################
373widget "gtk-tooltip*" style "tooltips"
374
375##########################################################################
376# Following are special cases and workarounds for issues in applications.
377##########################################################################
378
379# Workaround for the evolution ETable (bug #527532)
380widget_class "*.<ETable>.<ECanvas>" style "treeview_header"
381# Workaround for the evolution ETree
382widget_class "*.<ETree>.<ECanvas>" style "treeview_header"
383
384# Special case the nautilus-extra-view-widget
385# ToDo: A more generic approach for all applications that have a widget like this.
386widget "*.nautilus-extra-view-widget" style : highest "nautilus_location"
387
388# Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
389# Note that this work around assumes that the combobox is _not_ in appears-as-list mode.
390widget_class "*.<GtkComboBox>.<GtkCellView>" style "text_is_fg_color_workaround"
391# This is the part of the workaround that fixes the menus
392widget "*.gtk-combobox-popup-menu.*" style "menuitem_text_is_fg_color_workaround"
393
394# Work around the usage of GtkLabel inside GtkListItems to display text.
395# This breaks because the label is shown on a background that is based on the base color.
396widget_class "*<GtkListItem>*" style "fg_is_text_color_workaround"
397# GtkCList also uses the fg color to draw text on top of the base colors.
398widget_class "*<GtkCList>" style "fg_is_text_color_workaround"
399# Nautilus when renaming files, and maybe other places.
400widget_class "*<EelEditableLabel>" style "fg_is_text_color_workaround"
401
402# See the documentation of the style.
403widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "evo_new_button_workaround"
404