1/**************************************************************************************
2This file is distributed under the GNU General Public License version 2 (a.k.a. GPL-v2)
3ClassicLooks Gtk2 theme is based on Ambiance Gtk2 theme
4(c) 2019-2021 Virgil Mager - vvmager@gmail.com
5(c) 2019-2021 Information Technology Group - http://itgroup.ro
6**************************************************************************************/
7
8/******************************************/
9/* DO NOT CHANGE THESE COLOR DEFINITIONS! */
10gtk-color-scheme = "fg_color:#222123"
11gtk-color-scheme = "bg_color:#e8e7ea"
12gtk-color-scheme = "dark_fg_color:#f8f8f8"
13gtk-color-scheme = "dark_bg_color:#383838"
14gtk-color-scheme = "text_color:#000000"
15gtk-color-scheme = "link_color:#2a76c6"
16gtk-color-scheme = "shift_bg_color:#114411"
17/******************************************/
18
19#   lighter
20#   shade
21
22gtk-menu-drop-shadow = 1  # 1/0, but no effect
23#gtk-menu-shadow-delay = 0
24
25gtk-icon-sizes = "panel-applications-menu=22,22:panel-menu=22,22:panel=16,16:gtk-button=16,16"
26#gtk-icon-theme-name = "elementary Xfce" # no effect
27#gtk-outline-color = "#ff0000"
28
29gtk-enable-mnemonics = 0
30gtk-auto-mnemonics = 1
31
32style "default" {
33/*	font_name = "Noto Sans 9" # if font face not foud it will still set the size*/
34
35	xthickness = 1
36	ythickness = 1
37
38	#######################
39	# Style Properties
40	#######################
41	GtkWidget::new-tooltip-style = 1
42	GtkButton::child-displacement-x = 0
43	GtkButton::child-displacement-y = 0
44	GtkButton::default-border         = {0, 0, 0, 0}
45	GtkButton::default-outside-border = {0, 0, 0, 0}
46	GtkButton::inner-border           = {0, 0, 0, 0}
47
48	GtkCheckButton::indicator-size = 16
49	GtkCheckButton::indicator-spacing = 2
50	GtkPaned::handle-size = 6
51   XfceTasklist::max-button-length = 200
52
53	GtkRange::trough-border = 0
54	GtkRange::slider-width = 14
55	GtkRange::stepper-size = 14
56	GtkRange::trough-under-steppers = 1
57
58	GtkScale::trough-border = 0
59	GtkScale::slider-width = 21
60	GtkScale::slider-length = 21
61	GtkScale::trough-side-details = 1
62
63	GtkScrollbar::activate-slider = 1
64	GtkScrollbar::trough-border = 0
65	GtkScrollbar::slider-width = 14
66	GtkScrollbar::min-slider-length = 30
67
68	GtkMenuBar::internal-padding = 0
69	GtkMenuBar::window-dragging = 0 # have to disable because Qt doesn't honor it
70
71	GtkMenu::horizontal-padding = 0
72	GtkMenu::vertical-padding = 0
73
74#	GtkEntry::inner-border = {5, 5, 5, 5}
75#	GtkEntry::default-outside-border = {10, 10, 10, 10}
76	GtkExpander::expander-size = 7
77	GtkToolbar::internal-padding = 1
78	GtkToolbar::shadow-type = GTK_SHADOW_NONE
79	GtkNotebook::tab-overlap = 1 # must use 1 because qt doesn't read this and always uses 1
80	GtkImage::x-ayatana-indicator-dynamic = 1
81#	gtk-tooltip::inner-border = {5, 5, 5, 5}
82
83	GtkTreeView::expander-size = 7
84	GtkTreeView::horizontal-separator = 8
85	GtkTreeView::vertical-separator = 0
86	GtkTreeView::allow-rules = 0
87#	GtkTreeView::rules-hint = 0 # must comment because otherwise it causes strage some effects (e.g. in GtkCombo entry when base/bg are different)
88	GtkTreeView::odd-row-color = @entry_bg_color
89	GtkTreeView::even-row-color = @entry_bg_color
90
91	WnckTasklist::fade-overlay-rect = 0
92	# The following line hints to gecko (and possibly other appliations)
93	# that the entry should be drawn transparently on the canvas.
94	# Without this, gecko will fill in the background of the entry.
95	GtkEntry::honors-transparent-bg-hint = 1
96	GtkEntry::state-hint = 0
97
98	GtkEntry::progress-border = { 2, 2, 2, 2 }
99
100	GtkProgressBar::min-horizontal-bar-height = 14
101	GtkProgressBar::min-vertical-bar-width = 14
102
103	GtkWidget::link-color = @link_color
104	GtkWidget::visited-link-color = @text_color
105
106#	Uncomment one or both of the following for flat/unified menus or toolbars:
107#	GtkToolbar     ::shadow-type		= GTK_SHADOW_NONE  # Makes toolbars flat and unified.
108#	GtkMenuBar     ::shadow-type		= GTK_SHADOW_NONE  # Makes menus flat and unified.
109#	GtkMenu        ::shadow-type		= GTK_SHADOW_NONE
110
111	####################
112	# Color Definitions
113	####################
114	bg[NORMAL]        = mix(00.10, @shift_bg_color, @bg_color)
115#	bg[PRELIGHT]		= shade(0.97, mix(00.10, mix(0.299, @bg_color, @shift_bg_color), @bg_color)) # OLD FORMULA: this compensation formula does not take into account the weight of shift_bg_color, which is different among themes
116	bg[PRELIGHT]		= shade(1.01, mix(0.07, @bg_color, mix(00.10, @shift_bg_color, @bg_color)))
117	bg[SELECTED]      = @selected_bg_color
118	bg[INSENSITIVE]   = shade(0.95, mix(00.10, @shift_bg_color, @bg_color))
119	bg[ACTIVE]        = shade(0.9, mix(00.10, @shift_bg_color, @bg_color))
120
121	fg[NORMAL]        = mix(00.10, mix(0.398, @fg_color, @shift_bg_color), @fg_color)
122	fg[PRELIGHT]      = mix(00.10, mix(0.398, @fg_color, @shift_bg_color), @fg_color)
123	fg[SELECTED]      = @selected_focused_fg_color
124	fg[INSENSITIVE]   = shade(0.55, mix(00.10, @shift_bg_color, @bg_color))
125	fg[ACTIVE]        = mix(00.10, mix(0.398, @fg_color, @shift_bg_color), @fg_color)
126
127	text[NORMAL]      = @text_color
128	text[PRELIGHT]    = @text_color
129	text[SELECTED]    = @selected_focused_fg_color
130	text[INSENSITIVE] = shade(0.6, mix(00.10, @shift_bg_color, @bg_color))
131	text[ACTIVE]      = @selected_nofocus_fg_color
132
133	base[NORMAL]      = @canvas_bg_color # can't use a different color (nor shade) cause this produces some unintended effects (e.g. in treeview it does not color an empty area)
134	base[PRELIGHT]    = shade(0.98, mix(00.10, @shift_bg_color, @bg_color))
135	base[SELECTED]    = @selected_bg_color
136	base[INSENSITIVE] = shade(0.96, mix(00.10, @shift_bg_color, @bg_color))
137	base[ACTIVE]      = @selected_bg_color
138
139	engine "murrine" {
140		contrast = 0.7 # lines/borders contrast
141		default_button_color = shade(0.96, mix(00.10, @shift_bg_color, @bg_color))
142		comboboxstyle = 0 # 1 = colorize the arrows area
143		arrowstyle = 2
144		toolbarstyle = 0
145		reliefstyle = 3
146		highlight_shade = 1.0
147		prelight_shade = 1.0
148		glazestyle = 0
149#		glow_shade = 0.1
150		gradient_shades = {1.1, 1.0, 1.0, 0.9}
151		shadow_shades = {2.0, 1.7}
152		roundness = 2
153		lightborder_shade = 1.1
154		lightborderstyle = 0
155		listviewstyle       = 0                 # 0 = nothing, 1 = dotted, 2 = solid
156#		listviewheaderstyle = 1                 # 0 = flat, 1 = glassy, 2 = raised
157		progressbarstyle = 0
158		colorize_scrollbar = FALSE
159		menubaritemstyle = 1
160		menubarstyle = 0
161		menustyle = 0
162		handlestyle = 1
163		sliderstyle = 0
164		scrollbarstyle = 0
165		stepperstyle = 0
166		textstyle = 0
167		text_shade = 1.1
168		focusstyle = 0
169#		focus_color = "#ff0000"
170#		rgba = TRUE
171#		focus_color = @selected_bg_color
172	}
173}
174
175style "wide" {
176	xthickness = 2
177	ythickness = 2
178}
179
180style "wider" {
181	xthickness = 3
182	ythickness = 3
183}
184
185style "entry" {
186# these are not doing anything
187#	GtkWidget::interior-focus = 0
188#	GtkWidget::focus-line-width = 0
189	base[NORMAL] = @entry_bg_color
190#	text[ACTIVE] = @selected_focused_fg_color
191
192	xthickness = 4
193	ythickness = 4
194
195	engine "murrine" {
196		focusstyle = 3
197		reliefstyle = 0
198		contrast = 0.5
199#		border_colors = {@selected_bg_color, @selected_bg_color}
200		border_shades = {1.0, 1.0}
201	}
202}
203
204style "button" = "default" {
205	xthickness = 3
206	ythickness = 4
207
208	bg[NORMAL] = shade(0.96, mix(00.10, @shift_bg_color, @bg_color))
209	bg[ACTIVE] = shade(0.88, mix(00.10, @shift_bg_color, @bg_color))
210#	fg[ACTIVE] = "#ffffff"
211#	bg[ACTIVE] = shade(1.09, mix(00.10, @shift_bg_color, @bg_color))
212	fg[INSENSITIVE] = shade(0.55, mix(00.10, @shift_bg_color, @bg_color))
213	bg[INSENSITIVE] = shade(0.96, mix(00.10, @shift_bg_color, @bg_color))
214	bg[PRELIGHT] = mix(0.15, "#fffefe", mix(00.10, @shift_bg_color, @bg_color))
215#	bg[PRELIGHT] = shade(1.0, mix(0.25, @bg_color, mix(00.10, @shift_bg_color, @bg_color)))
216#	bg[PRELIGHT] = shade(1.02, mix(00.10, @shift_bg_color, @bg_color))
217#	bg[PRELIGHT] = shade(1.0, mix(0.1, "#ffffff", mix(00.10, @shift_bg_color, @bg_color)))
218#	bg[PRELIGHT] = shade(1.9, mix(0.06, "#ffffff", shade(0.5, mix(00.10, @shift_bg_color, @bg_color))))
219
220	engine "murrine" {
221#		contrast = 1.0
222		border_shades = {1.05, 0.93}
223		gradient_shades = {1.1, 1.05, 1.05, 0.95}
224		textstyle = 1
225		text_shade = 1.1
226		glowstyle = 0
227#		glow_shade = 1.1
228#		focusstyle = 1
229	}
230}
231
232style "panel" {}
233style "panel_button" {}
234style "panel_applet" {}
235
236style "spinbutton" = "button" {
237	xthickness = 4
238	ythickness = 3
239
240	bg[ACTIVE] = shade(0.96, mix(00.10, @shift_bg_color, @bg_color))
241	base[NORMAL] = @entry_bg_color
242#	text[ACTIVE] = @selected_focused_fg_color
243
244	engine "murrine" {
245		border_shades = {1.0, 0.95}
246		focusstyle = 3
247		spinbuttonstyle = 1 # 0/1
248	}
249}
250
251style "spinbutton_entry" = "entry" {
252	xthickness = 10
253	ythickness = 10
254}
255
256style "scrollbar" = "button" {
257
258	bg[NORMAL] = mix(00.10, @shift_bg_color, @bg_color)
259	bg[INSENSITIVE] = shade(0.96, mix(00.10, @shift_bg_color, @bg_color))
260	bg[PRELIGHT] = shade(1.05, mix(0.1, @bg_color, mix(00.10, @shift_bg_color, @bg_color)))
261	bg[ACTIVE] = shade(1.05, mix(0.1, @bg_color, mix(00.10, @shift_bg_color, @bg_color)))
262
263	engine "murrine"
264	{
265		border_shades = {0.95, 0.95}
266		roundness = 0
267		contrast = 0.7
268		trough_shades = {0.9, 0.9}
269		lightborder_shade = 1.0
270		glowstyle = 5
271		glow_shade = 1.02
272		gradient_shades = {1.07, 1.0, 1.0, 0.92}
273		trough_border_shades = {0.95, 0.95}
274	}
275}
276
277style "scale" = "button" {
278	bg[NORMAL] = mix(00.10, @shift_bg_color, @bg_color)
279	bg[INSENSITIVE] = shade(0.97, mix(00.10, @shift_bg_color, @bg_color))
280	bg[PRELIGHT] = shade(1.07, mix(0.07, @bg_color, mix(00.10, @shift_bg_color, @bg_color)))
281	bg[ACTIVE] = shade(1.2, mix(00.10, @shift_bg_color, @bg_color))
282
283	engine "murrine" {
284		contrast = 0.5
285		border_shades = {0.75, 0.75}
286		roundness = 10
287		lightborder_shade = 1.0
288		gradient_shades = {1.05, 1.0, 1.0, 0.85}
289#.		handlestyle = 1
290		trough_shades = {0.78, 0.78}
291		trough_border_shades = {0.95, 0.95}
292		glow_shade = 1.0
293		reliefstyle = 0
294#		shadow_shades = { 2.0, 2.0 } # does nothing
295	}
296}
297
298style "notebook" = "default" {
299	xthickness = 4
300	ythickness = 2
301
302#	bg[NORMAL] = @canvas_bg_color
303	bg[NORMAL] = shade(1.00, mix(00.10, @shift_bg_color, @bg_color)) # wxWidgets doesn't use this for the bg color _inside_ the tab (at least up to wxw-3.0.2), so have to use exactly the bg color
304#	bg[NORMAL] = shade(2.1, shade(0.5, mix(00.10, @shift_bg_color, @bg_color)))
305#	bg[INSENSITIVE] = "#ff0000"   # just an ugly text shadow in the insensitive tab title
306#	base[INSENSITIVE] = "#00ff00" # no effect
307#	base[NORMAL] = "#0000ff"      # no effect
308	bg[ACTIVE] = shade(0.98, mix(00.10, @shift_bg_color, @bg_color))
309	fg[ACTIVE] = lighter(mix(00.10, mix(0.398, @fg_color, @shift_bg_color), @fg_color))
310#	fg[ACTIVE] = "#ff0000"
311#	fg[NORMAL] = "#0000ff"
312
313	engine "murrine" {
314		contrast = 0.9
315		gradient_shades = {1.25, 1.0, 1.0, 0.66}
316#		trough_border_shades = {0.1, 0.1}
317#		trough_shades = {0.1, 0.1}
318#		border_shades = {0.1, 0.1}
319#		focusstyle = 1
320	}
321}
322
323style "statusbar" {
324	engine "murrine" {
325		contrast = 1.2
326	}
327}
328
329style "toolbar" {
330
331	engine "murrine" {
332		textstyle = 1
333		text_shade = 1.15
334		glowstyle = 0
335		gradient_shades = {1.1, 0.97, 0.97, 0.92}
336		lightborderstyle = 0
337		lightborder_shade = 1.1
338#		highlight_shade = 1.1
339	}
340}
341
342style "toolbar_button" = "button" {
343	xthickness = 5
344	ythickness = 5
345	bg[PRELIGHT] = shade(0.97, mix(0.25, @bg_color, mix(00.10, @shift_bg_color, @bg_color)))
346	engine "murrine" {
347		border_shades = {1.05, 0.95}
348		gradient_shades = {1.09, 1.06, 1.06, 0.94}
349	}
350}
351
352style "menu" = "default" {
353	xthickness = 0
354	ythickness = 0
355
356	bg[NORMAL] = @menu_bg_color
357	bg[PRELIGHT] = @selected_bg_color
358	fg[NORMAL] = @fg_color
359	fg[PRELIGHT] = @selected_focused_fg_color
360	fg[INSENSITIVE] = mix(00.10, @shift_bg_color, "#767978")
361	text[NORMAL] = "#282828"
362	text[PRELIGHT] = shade(0.95, @selected_focused_fg_color)
363	text[INSENSITIVE] = mix(00.10, @shift_bg_color, "#767978")
364
365	engine "murrine"
366	{
367		menuitemstyle = 0
368		contrast = 0.6
369		menubaritemstyle = 0
370		glazestyle = 0
371		roundness = 0
372		glowstyle = 0
373#		border_shades = { 0.1, 0.1 }
374#		trough_shades = { 0.1, 0.1 }
375	}
376}
377
378style "menu_item" = "menu" {
379	xthickness = 2
380	ythickness = 3
381
382	engine "murrine"
383	{
384		gradient_shades = {1.0, 1.0, 1.0, 1.0}
385		border_shades = {1.3, 1.3}
386		lightborderstyle = 3
387		lightborder_shade = 1.0
388		contrast = 0.7
389	}
390}
391
392style "combo_menu_item" = "menu_item" {
393	text[NORMAL]        = @fg_color
394	text[PRELIGHT]      = @selected_focused_fg_color
395	text[SELECTED]      = @selected_focused_fg_color
396	text[ACTIVE]        = @fg_color
397	text[INSENSITIVE]   = mix(00.10, @shift_bg_color, "#767978")
398}
399
400style "menubar" {
401	ythickness = 1
402	xthickness = 1
403
404	engine "murrine" {
405		roundness = 0
406		gradient_shades = {1.0, 1.0, 1.0, 1.0}
407		lightborder_shade = 1.23
408	}
409}
410
411style "menubar_item" = "menu" {
412	xthickness = 3
413	ythickness = 3
414
415	engine "murrine" {
416		gradient_shades = {1.0, 1.0, 1.0, 1.0}
417		border_shades = {1.3, 1.3}
418		lightborderstyle = 3
419		lightborder_shade = 1.0
420		contrast = 0.7
421	}
422}
423
424style "combo_button" = "button" {
425	xthickness = 3
426	ythickness = 3
427	bg[NORMAL] = shade(0.95, mix(00.10, @shift_bg_color, @bg_color))
428	bg[PRELIGHT] = shade(1.03, mix(00.10, @shift_bg_color, @bg_color))
429#	base[NORMAL] = "#0000ff"
430	engine "murrine" {
431		gradient_shades = {1.11, 1.05, 1.05, 0.93}
432		contrast = 0.45
433		lightborderstyle = 1
434		lightborder_shade = 1.3
435	}
436}
437
438style "combo" = "button" {
439	xthickness = 0
440#	ythickness = 0
441#	bg[NORMAL] = "#222222"
442	base[NORMAL] = shade(1.1, mix(00.10, @shift_bg_color, @bg_color)) # shade(0.95, @canvas_bg_color)
443#	base[PRELIGHT] = "#000000"
444#	GtkCombo::default-outside-border = {3, 3, 3, 3} # no effect
445	engine "murrine" {
446		contrast = 0.4
447		roundness = 0
448		gradient_shades = {1.2, 1.0, 1.0, 0.75}
449#		trough_border_shades = {0.1, 0.1} # no effect
450#		trough_shades = {0.1, 0.1}        # no effect
451#		border_shades = {0.1, 0.1}        # no effect
452	}
453}
454
455style "combobox" = "button" {
456	ythickness = 1
457#	bg[NORMAL] = "#ff0000"
458#	base[NORMAL] = "#00ff00"
459	bg[PRELIGHT] = mix(0.15, "#fffefe", mix(00.10, @shift_bg_color, @bg_color))
460	engine "murrine" {
461		reliefstyle=0
462		border_shades = {1.0, 0.95}
463	}
464}
465
466style "combobox_entry" = "button" {
467	ythickness = 3
468#	bg[NORMAL] = "#0000ff"
469#	base[NORMAL] = "#ffff00"
470	base[NORMAL] = @entry_bg_color
471#	text[ACTIVE] = @selected_focused_fg_color
472}
473
474style "combobox_entry_button" = "combobox_entry" {
475}
476
477style "scale_menu_item" = "scale" {
478	GtkScale::slider-width = 21
479	GtkScale::slider-length = 13
480
481	bg[ACTIVE] = shade(0.98, "#4D4C48")
482	bg[INSENSITIVE] = shade(0.9, @bg_color)
483
484	engine "murrine" {
485		roundness = 20
486		border_shades = {1.4, 1.4}
487		reliefstyle = 0
488		lightborder_shade = 1.36
489	}
490}
491
492style "separator" {
493	xthickness = 1
494	ythickness = 0
495
496#	bg[NORMAL] = @menu_bg_color
497
498	GtkSeparatorMenuItem::horizontal-padding = 0
499	GtkWidget::wide-separators = 1
500	GtkWidget::separator-width = 1
501	GtkWidget::separator-height = 1
502
503	engine "murrine" {
504		contrast = 1.0
505		separatorstyle = 0
506	}
507}
508
509# This style is there to modify the separator menu items. The goals are:
510# 1. Get a specific height.
511# 2. The line should go to the edges (ie. no border at the left/right)
512style "separator_menu_item" {
513	xthickness = 1
514	ythickness = 0
515
516	bg[NORMAL] = @menu_bg_color
517
518	GtkSeparatorMenuItem::horizontal-padding = 0
519	GtkWidget::wide-separators = 1
520	GtkWidget::separator-width = 1
521	GtkWidget::separator-height = 1
522
523	engine "murrine" {
524		contrast = 0.75
525		separatorstyle = 0
526	}
527}
528
529style "separator_tool_item" {
530	xthickness = 0
531	ythickness = 1
532
533	GtkVSeparator::vertical-padding = 0
534	GtkWidget::wide-separators = 1
535	GtkWidget::separator-width = 7
536	GtkWidget::separator-height = 1
537
538	engine "murrine" {
539		contrast = 0.6
540		separatorstyle = 0
541	}
542}
543
544style "frame_title" {
545	fg[NORMAL] = lighter(mix(00.10, @shift_bg_color, @fg_color))
546	engine "murrine"
547	{
548#		gradient_shades = {1.0, 1.0, 1.0, 1.0}
549	}
550}
551
552style "treeview" {
553#	ythickness = 10
554
555	engine "murrine"
556	{
557		cellstyle = 0
558		focusstyle = 1
559		roundness = 2
560		lightborder_shade = 1.1
561		gradient_shades = {1.0, 1.0, 1.0, 1.0}
562	}
563}
564
565style "progressbar" {
566	xthickness = 1
567	ythickness = 1
568
569	bg[ACTIVE] = shade(0.94, mix(00.10, @shift_bg_color, @bg_color))
570	fg[PRELIGHT] = @selected_focused_fg_color
571#  bg[SELECTED] = shade(0.92, mix(00.10, @shift_bg_color, @bg_color))
572
573	engine "murrine" {
574#		trough_shades = {0.1, 1.02}
575		roundness = 3
576		lightborderstyle = 0
577		lightborder_shade = 1.0
578		border_shades = {1.0, 1.0}
579		gradient_shades = {1.0, 1.0, 1.0, 1.0}
580#		trough_border_shades = {0.9, 1.4}
581	}
582}
583
584style "progressbar_menu_item" = "progressbar" {
585	bg[ACTIVE] = shade(0.94, @menu_bg_color)
586
587	engine "murrine" {
588		roundness = 0
589	}
590}
591
592# This style is based on the default style, so that the colors from the button
593# style are overriden again.
594style "treeview_header" = "button" {
595	xthickness = 4
596	ythickness = 3
597
598	bg[PRELIGHT] = shade(1.0, mix(0.12, @bg_color, mix(00.10, @shift_bg_color, @bg_color)))
599
600	engine "murrine" {
601		glazestyle = 1
602		contrast = 0.8
603		lightborder_shade = 1.16
604		glow_shade = 1.0
605		gradient_shades = {1.1, 1.04, 0.98, 0.96}
606	}
607}
608
609style "treeview_header_scrolled" = "treeview_header" {
610}
611
612style "scrolledwindow" {
613#	ythickness = 10
614	engine "murrine" {
615		focusstyle = 1
616		contrast = 0.6
617	}
618}
619
620style "radiocheck"  = "default" {
621	# thickness is used by button-like checkboxes (e.g. the buttons in the tool panel in GIMP)
622	xthickness = 3
623	ythickness = 4
624
625	text[NORMAL] = shade(0.3, mix(00.10, @shift_bg_color, @bg_color)) #foreground of enabled checked
626	text[PRELIGHT] = shade(0.2, mix(00.10, @shift_bg_color, @bg_color))
627   text[ACTIVE] = shade(0.2, mix(00.10, @shift_bg_color, @bg_color))
628	bg[NORMAL]   = shade(1.06, @bg_color) #background of all disabled, also influences border of enabled unchecked
629	bg[PRELIGHT] = shade(1.06, mix(0.12, @bg_color, mix(00.10, @shift_bg_color, @bg_color)))
630	bg[SELECTED] = shade(1.06, @bg_color) #background of enabled checked
631	fg[ACTIVE] = mix(00.10, mix(0.398, @fg_color, @shift_bg_color), @fg_color) # for some reason this is not inherited
632	base[NORMAL] = shade(1.06, @bg_color) #@canvas_bg_color
633
634	engine "murrine" {
635		reliefstyle = 0
636		textstyle = 0 # for some reason it's not inherited
637		contrast = 1.1
638		gradient_shades = {1.0, 1.0, 1.0, 1.0}
639#		border_shades = {0.5, 0.5}
640	}
641}
642
643style "tooltips" {
644	xthickness = 6
645	ythickness = 5
646
647	bg[NORMAL] = shade(1.05, mix(0.07, @bg_color, mix(00.10, @shift_bg_color, @bg_color)))
648
649	engine "murrine" {
650		roundness = 0
651		gradient_shades = {1.1, 1.0, 1.0, 0.9}
652#		rgba = TRUE
653	}
654}
655
656style "infobar" {
657	engine "murrine" {
658	}
659}
660
661style "nautilus_location" {
662	bg[NORMAL]  = mix(0.60, shade(1.05, mix(00.10, @shift_bg_color, @bg_color)), @selected_bg_color)
663}
664
665style "calendar" {
666	xthickness = 0
667	ythickness = 0
668
669	engine "murrine" {
670		roundness = 0
671	}
672}
673
674style "calendar_menu_item" = "calendar" {
675	base[NORMAL] = "#605E58"
676	base[ACTIVE] = "#4b4944"
677}
678
679style "iconview" {
680#	bg[SELECTED] = "#ff0000"
681#	bg[ACTIVE] = "#ff0000"
682#	fg[SELECTED] = "#ff0000"
683#	fg[ACTIVE] = "#ff0000"
684#	base[SELECTED] = "#ff0000"
685#	base[ACTIVE] = "#ff0000"
686
687#	xthickness = 5
688#	ythickness = 5
689
690	engine "murrine" {
691		focusstyle = 1
692		roundness = 6
693		border_shades = {1.16, 1.0}
694		glow_shade = 1.1
695		glowstyle = 5
696	}
697}
698
699style "xfwm4_window" = "default" {
700	bg[NORMAL] = mix(00.10, @shift_bg_color, @bg_color) /* active_color_2: window frame color, change with 'active_color_2=...' */
701	bg[SELECTED] = mix(0.5, "#555555", mix(00.10, @shift_bg_color, @bg_color)) /* active_color_1 */
702	bg[INSENSITIVE] = shade(1.15, mix(00.10, @shift_bg_color, @bg_color)) /* inactive_color_1 */
703	fg[NORMAL] = mix(0.75, "#0a0a0a", mix(00.10, @shift_bg_color, @bg_color)) /* active_text_color_2 */
704	fg[SELECTED] = mix(00.10, mix(0.198, @fg_color, @shift_bg_color), @fg_color) /* active title color, change with 'active_text_color=...')*/
705	fg[INSENSITIVE] = mix(00.10, mix(0.198, "#777777", @shift_bg_color), "#777777") /* inactive_text_color_2: inactive title color, change with 'inactive_text_color=...' */
706}
707
708style "xfwm4_tabwin_button" = "button" {
709#	Xfwm4TabwinWidget::preview-size = 512
710#	Xfwm4TabwinWidget::icon-size = (24-128)
711#	Xfwm4TabwinWidget::listview-icon-size = (16-48)
712#	Xfwm4TabwinWidget::border-width = (0-8)
713#	Xfwm4TabwinWidget::border-radius = (0-20)
714#	Xfwm4TabwinWidget::border-alpha = (0.0 - 1.0)
715#	Xfwm4TabwinWidget::alpha = (0.0 - 1.0)
716
717	engine "murrine" {
718		textstyle = 0
719	}
720}
721
722style "xfdesktop_icon_view" {
723	XfdesktopIconView::label-alpha = 0
724	XfdesktopIconView::shadow-x-offset = 1
725	XfdesktopIconView::shadow-y-offset = 1
726	XfdesktopIconView::selected-label-alpha =200
727	XfdesktopIconView::shadow-color = "#000000"
728	fg[NORMAL] = "#f8f8f8"
729	fg[SELECTED] = @selected_focused_fg_color
730	fg[ACTIVE] = @selected_nofocus_fg_color
731}
732
733style "soundfix" {
734}
735
736# Wrokaround style for places where the text color is used instead of the fg color.
737style "set_text_color_to_fg_color_workaround" {
738	text[NORMAL]      = mix(00.10, mix(0.398, @fg_color, @shift_bg_color), @fg_color)
739	text[PRELIGHT]    = mix(00.10, mix(0.398, @fg_color, @shift_bg_color), @fg_color)
740	text[SELECTED]    = @selected_focused_fg_color
741	text[ACTIVE]      = mix(00.10, mix(0.398, @fg_color, @shift_bg_color), @fg_color)
742	text[INSENSITIVE] = shade(0.55, mix(00.10, @shift_bg_color, @bg_color))
743}
744
745# Workaround style for places where the fg color is used instead of the text color.
746style "set_fg_color_to_text_color_workaround" {
747	fg[NORMAL]        = @text_color
748	fg[PRELIGHT]      = @text_color
749	fg[SELECTED]      = @selected_focused_fg_color
750	fg[ACTIVE]        = @text_color
751	fg[INSENSITIVE]   = shade(0.55, mix(00.10, @shift_bg_color, @bg_color))
752}
753
754# Style to set the toolbar to use a flat style. This is because the "New" button in
755# Evolution is not drawn transparent. So if there is a gradient in the background it will
756# look really wrong.
757# See http://bugzilla.gnome.org/show_bug.cgi?id=446953.
758style "evo_new_button_workaround" {
759}
760
761style "test" = "default" {
762   bg[NORMAL] = "#ff0000"
763   fg[NORMAL] = "#0000ff"
764   base[NORMAL] = "#00ff00"
765   bg[ACTIVE] = "#ffff00"
766   fg[ACTIVE] = "#00ffff"
767   base[ACTIVE] = "#ff00ff"
768
769	engine "murrine" {
770		textstyle = 1
771		text_shade = 1.9
772	}
773}
774
775###############################################################################
776# The following part of the gtkrc applies the different styles to the widgets.
777###############################################################################
778
779# The default style is applied to every widget
780class "GtkWidget" style "default"
781
782class "GtkSeparator" style "separator"
783class "GtkFrame" style "wide"
784class "GtkCalendar" style "wide"
785class "GtkEntry" style "entry"
786
787class "GtkSpinButton" style "spinbutton"
788class "GtkScale" style "scale"
789class "GtkVScale" style "scale"
790class "GtkHScale" style "scale"
791class "GtkScrollbar" style "scrollbar"
792class "GtkHScrollbar" style "scrollbar"
793class "GtkVScrollbar" style "scrollbar"
794class "GtkCalendar" style "calendar"
795class "GtkInfoBar" style "infobar"
796class "GtkIconView" style "iconview"
797
798# General matching follows. The order is choosen so that the right styles override
799# each other. EG. progressbar needs to be more important than the menu match.
800widget_class "*<GtkNotebook>" style "notebook"
801widget_class "*<GtkToolbar>*" style "toolbar"
802widget_class "*<GtkScrolledWindow>*" style "scrolledwindow"
803widget_class "*<GtkIconView>*" style "iconview"
804
805widget_class "*<GtkButton>" style "button"
806widget_class "*<GtkButton>*<GtkLabel>" style "button" # this puts text shadow in the xfwm task switcher, see xfwm4-tabwin-button below
807widget_class "*<GtkToolbar>*<GtkButton>*" style "toolbar_button"
808widget_class "*<GtkStatusbar>" style "statusbar"
809widget_class "*<GtkSpinButton>*" style "spinbutton"
810widget_class "*<GtkRadioButton>*" style "radiocheck"
811widget_class "*<GtkCheckButton>*" style "radiocheck"
812#widget_class "*<GtkSpinButton>*<GtkEntry>" style "spinbutton_entry" # no effect
813
814widget_class "*<GtkCombo>*" style "combo"
815widget_class "*<GtkCombo>.<GtkButton>" style "combo_button"
816#widget_class "*<GtkCombo>*<GtkSeparator>" style "separator_menu_item" # no effect
817#widget_class "*<GtkCombo>*<GtkEntry>" style "entry" # no effect
818widget "*.gtk-combobox-popup-menu.*" style "combo_menu_item"
819widget_class "*<GtkComboBox>*" style "combobox"
820widget_class "*<GtkComboBoxEntry>*<GtkEntry>" style "combobox_entry"
821widget_class "*<GtkComboBoxEntry>*<GtkButton>" style "combobox_entry_button"
822
823widget_class "*<GtkMenuBar>*" style "menubar"
824widget_class "*<GtkMenu>*" style "menu"
825widget_class "*<GtkMenuItem>*" style "menu_item"
826widget_class "*<GtkSeparatorMenuItem>*" style "separator_menu_item"
827widget_class "*<GtkSeparatorToolItem>*" style "separator_tool_item"
828widget_class "*<GtkMenuBar>*<GtkMenuItem>*" style "menubar_item"
829
830widget_class "*.<GtkFrame>.<GtkLabel>" style "frame_title"
831widget_class "*.<GtkTreeView>*" style "treeview"
832widget_class "*.<GtkTreeView>" style "treeview"
833
834widget_class "*<GtkProgress>" style "progressbar"
835widget_class "*<GtkMenuItem>.*.<GtkProgressBar>" style "progressbar_menu_item"
836widget_class "*<GtkMenuItem>.*.<GtkScale>" style "scale_menu_item"
837widget_class "*<GtkMenuItem>.*.<GtkCalendar>" style "calendar_menu_item"
838
839# Treeview headers (and similar stock GTK+ widgets)
840widget_class "*.<GtkScrolledWindow>*<GtkTreeView>*" style "treeview_header_scrolled"
841widget_class "*.<GtkTreeView>.<GtkButton>" style "treeview_header"
842widget_class "*.<GtkCTree>.<GtkButton>" style "treeview_header"
843widget_class "*.<GtkList>.<GtkButton>" style "treeview_header"
844widget_class "*.<GtkCList>.<GtkButton>" style "treeview_header"
845widget_class "*.<GtkTreeView>.<GtkButton>.*<GtkLabel>" style "treeview_header"
846widget_class "*.<GtkCTree>.<GtkButton>.*<GtkLabel>" style "treeview_header"
847widget_class "*.<GtkList>.<GtkButton>.*<GtkLabel>" style "treeview_header"
848widget_class "*.<GtkCList>.<GtkButton>.*<GtkLabel>" style "treeview_header"
849
850widget "*Xfce*Panel*" style "panel"
851widget "*Xfce*Panel*XfceTasklist*" style "panel_button"
852widget "xfwm4-tabwin*GtkButton*" style "xfwm4_tabwin_button"
853widget_class "*Xfce*Panel*<GtkButton>" style "panel_button"
854widget_class "*XfdesktopIconView*" style "xfdesktop_icon_view"
855widget_class "*Tray*" style "panel"
856widget_class "*tray*" style "panel"
857widget_class "*computertemp*" style "panel"
858widget_class "*Applet*Netstatus*" style "panel"
859
860widget "xfwm" style "xfwm4_window" #xfwm4
861class "MetaFrames" style "xfwm4_window" #metacity
862widget_class "MetaFrames" style "xfwm4_window" #metacity
863
864#widget_class "*<GtkNotebook>*<GtkFrame>*" style "test"
865
866# The window of the tooltip is called "gtk-tooltip"
867# FIXME:
868# This will not work if one embeds eg. a button into the tooltip.
869# As far as I can tell right now we will need to rework the theme
870# quite a bit to get this working correctly.
871# (It will involve setting different priorities, etc.)
872widget "gtk-tooltip*" style "tooltips"
873
874##########################################################################
875# Following are special cases and workarounds for issues in applications.
876##########################################################################
877
878# Workaround for the evolution ETable (bug #527532)
879widget_class "*.ETable.ECanvas" style "treeview_header"
880# Workaround for the evolution ETree
881widget_class "*.ETree.ECanvas" style "treeview_header"
882
883# Special case the nautilus-extra-view-widget
884# ToDo: A more generic approach for all applications that have a widget like this.
885widget "*.nautilus-extra-view-widget" style : highest "nautilus_location"
886
887# Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
888# Note that this work around assumes that the combobox is _not_ in appears-as-list mode.
889widget_class "*.<GtkComboBox>.<GtkCellView>" style "set_text_color_to_fg_color_workaround"
890
891# Work around the usage of GtkLabel inside GtkListItems to display text.
892# This breaks because the label is shown on a background that is based on the base color.
893widget_class "*<GtkListItem>*" style "set_fg_color_to_text_color_workaround"
894# GtkCList also uses the fg color to draw text on top of the base colors.
895widget_class "*<GtkCList>" style "set_fg_color_to_text_color_workaround"
896# Nautilus when renaming files, and maybe other places.
897widget_class "*<EelEditableLabel>" style "set_fg_color_to_text_color_workaround"
898# Work around for ubuntu's lucid sound indicator
899widget "ido-offscreen-scale" style "soundfix"
900# Thickness for indicator menu items
901widget "*IdoEntryMenuItem*" style "wide"
902
903# See the documentation of the style.
904widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "evo_new_button_workaround"
905
906##########################################################################
907# Panel
908##########################################################################
909
910style "theme-panel"
911{
912	xthickness	= 1
913	ythickness	= 0
914
915	bg_pixmap[NORMAL] = "assets/panel.png"
916	bg[NORMAL]	= "#4b4a46"
917	bg[ACTIVE]	= "#EE8430"
918	bg[PRELIGHT]	= "#4b4a46"
919
920	fg[NORMAL]	= @selected_focused_fg_color
921	fg[PRELIGHT]	= "#ffffff"
922	fg[ACTIVE]	= @selected_focused_fg_color
923
924	text[NORMAL]   = @selected_focused_fg_color
925	text[PRELIGHT] = "#ffffff"
926	text[ACTIVE]   = @selected_focused_fg_color
927
928	engine "murrine" {
929		border_shades	= { 1.3, 0.9 }
930		contrast	= 0.0
931		roundness	= 0
932		glowstyle	= 0
933		glow_shade	= 1.4
934		glazestyle	= 2
935		trough_border_shades	= { 3.0, 2.5 } # improve visibility in panel-plugins using the progressbar (xfce4-timer-plugin)
936	}
937}
938
939style "theme-panel-text"
940{
941	fg[NORMAL]	= @selected_focused_fg_color
942	fg[PRELIGHT]	= "#ffffff"
943	fg[ACTIVE]	= @selected_focused_fg_color
944
945	text[NORMAL]   = @selected_focused_fg_color
946	text[PRELIGHT] = "#ffffff"
947	text[ACTIVE]   = @selected_focused_fg_color
948}
949
950style "theme-main-menu-text" = "theme-panel-text"
951{
952	fg[PRELIGHT]   = "#ffffff"
953	text[PRELIGHT] = "#ffffff"
954}
955
956/*
957widget "*PanelWidget*"              style "theme-panel"
958widget "*PanelApplet*"              style "theme-panel"
959widget "*fast-user-switch*"         style "theme-panel"
960widget "*CPUFreq*Applet*"           style "theme-panel"
961widget "*indicator-applet*"         style "theme-panel"
962class "PanelApp*"                   style "theme-panel"
963class "PanelToplevel*"              style "theme-panel"
964widget_class "*PanelToplevel*"      style "theme-panel"
965widget_class "*notif*"              style "theme-panel"
966widget_class "*Notif*"              style "theme-panel"
967widget_class "*Tray*"               style "theme-panel"
968widget_class "*tray*"               style "theme-panel"
969widget_class "*computertemp*"       style "theme-panel"
970widget_class "*Applet*Tomboy*"      style "theme-panel"
971widget_class "*Applet*Netstatus*"   style "theme-panel"
972
973# XFCE panel theming.
974widget "*Xfce*Panel*"               style "theme-panel"
975class "*Xfce*Panel*"                style "theme-panel"
976
977# Make sure panel text color doesn't change
978widget_class "*Panel*MenuBar*"      style "theme-main-menu-text"
979widget_class "*Panel*<GtkMenuBar>*" style "theme-main-menu-text"
980widget "*.clock-applet-button.*"    style "theme-panel-text"
981widget "*PanelApplet*"              style "theme-panel-text"
982
983# Fixes for tooltip text in some apps.
984# widget_class "*Notif*Beagle*"       style "theme-panel"
985# widget_class "*Notif*Brasero*"      style "theme-panel"
986*/
987
988# Old
989#include "apps/banshee.rc"
990#include "apps/chromium.rc"
991#include "apps/ff.rc"
992#include "apps/gnome-terminal.rc"
993#include "apps/nautilus.rc"
994