PageRenderTime 8ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/light-themes-0.1.11/Radiance/gtk-2.0/gtkrc

#
#! | 688 lines | 573 code | 115 blank | 0 comment | 0 complexity | c815a8824f2ae27369d0fe9ba20aa545 MD5 | raw file
  1gtk-color-scheme = "base_color:#ffffff\nfg_color:#4c4c4c\ntooltip_fg_color:#ffffff\nselected_bg_color:#f07746\nselected_fg_color:#FFFFFF\ntext_color:#3C3C3C\nbg_color:#f6f4f2\ntooltip_bg_color:#000000\nlink_color:#DD4814"
  2
  3gtk-icon-sizes = "panel-menu=22,22:gtk-button=16,16"
  4
  5gtk-auto-mnemonics = 1
  6
  7style "default" {
  8	xthickness = 1
  9	ythickness = 1
 10
 11	#######################
 12	# Style Properties
 13	#######################
 14	GtkButton::child-displacement-x = 1
 15	GtkButton::child-displacement-y = 1
 16	GtkButton::default-border = { 0, 0, 0, 0 }
 17
 18	GtkCheckButton::indicator-size = 16
 19
 20	GtkPaned::handle-size = 6
 21
 22	GtkRange::trough-border = 0
 23	GtkRange::slider-width = 14
 24	GtkRange::stepper-size = 13
 25	GtkRange::trough-under-steppers = 1
 26
 27	GtkScale::trough-border = 0
 28	GtkScale::slider-width = 23
 29	GtkScale::slider-length = 14
 30	GtkScale::trough-side-details = 1
 31
 32	GtkScrollbar::activate-slider = 1
 33	GtkScrollbar::trough-border = 0
 34	GtkScrollbar::slider-width = 13
 35	GtkScrollbar::min-slider-length = 31
 36
 37	GtkMenuBar::internal-padding = 0
 38	GtkMenuBar::shadow-type = GTK_SHADOW_NONE
 39	GtkExpander::expander-size = 11
 40	GtkToolbar::internal-padding = 1
 41	GtkToolbar::shadow-type = GTK_SHADOW_NONE
 42	GtkTreeView::expander-size = 7
 43	GtkTreeView::vertical-separator = 0
 44#	GtkTreeView::odd-row-color = shade (0.96, @base_color)
 45	GtkNotebook::tab-overlap = -1
 46
 47	GtkMenu::horizontal-padding = 0
 48	GtkMenu::vertical-padding = 3
 49
 50	WnckTasklist::fade-overlay-rect = 0
 51	# The following line hints to gecko (and possibly other appliations)
 52	# that the entry should be drawn transparently on the canvas.
 53	# Without this, gecko will fill in the background of the entry.
 54	GtkEntry::honors-transparent-bg-hint = 1
 55	GtkEntry::state-hint = 0
 56
 57	GtkEntry::progress-border = { 2, 2, 2, 2 }
 58
 59	GtkProgressBar::min-horizontal-bar-height = 14
 60	GtkProgressBar::min-vertical-bar-width = 14
 61	
 62	GtkImage::x-ayatana-indicator-dynamic = 1
 63	GtkMenuBar::window-dragging = 1
 64
 65	GtkWidget::link-color = @link_color
 66	GtkWidget::visited-link-color = @text_color
 67
 68	####################
 69	# Color Definitions
 70	####################
 71	bg[NORMAL]        = @bg_color
 72	bg[PRELIGHT]      = shade (1.02, @bg_color)
 73	bg[SELECTED]      = @selected_bg_color
 74	bg[INSENSITIVE]   = shade (0.95, @bg_color)
 75	bg[ACTIVE]        = shade (0.9, @bg_color)
 76
 77	fg[NORMAL]        = @fg_color
 78	fg[PRELIGHT]      = @fg_color
 79	fg[SELECTED]      = @selected_fg_color
 80	fg[INSENSITIVE]   = darker (@bg_color)
 81	fg[ACTIVE]        = @fg_color
 82
 83	text[NORMAL]      = @text_color
 84	text[PRELIGHT]    = @text_color
 85	text[SELECTED]    = @selected_fg_color
 86	text[INSENSITIVE] = shade (0.8, @bg_color)
 87	text[ACTIVE]      = darker (@text_color)
 88
 89	base[NORMAL]      = @base_color
 90	base[PRELIGHT]    = shade (0.98, @bg_color)
 91	base[SELECTED]    = @selected_bg_color
 92	base[INSENSITIVE] = shade (0.97, @bg_color)
 93	base[ACTIVE]      = shade (0.94, @bg_color)
 94
 95	engine "murrine" {
 96		contrast = 0.6
 97		arrowstyle = 2
 98		reliefstyle = 3
 99		highlight_shade = 1.0
100		glazestyle = 0
101		default_button_color = shade (1.1, @selected_bg_color)
102		gradient_shades = {1.1, 1.0, 1.0, 0.9}
103		roundness = 3
104		lightborder_shade = 1.26
105		lightborderstyle = 1
106		listviewstyle = 2
107		progressbarstyle = 0
108		colorize_scrollbar = FALSE
109		menubaritemstyle = 1
110		menubarstyle = 1
111		menustyle = 0
112		focusstyle = 3
113		handlestyle = 1
114		sliderstyle = 3
115		scrollbarstyle = 2
116		stepperstyle = 3
117#		rgba = TRUE
118	}
119}
120
121style "dark"
122{
123	bg[NORMAL]   = "#dfd7cf"
124	bg[PRELIGHT] = shade (1.05, "#dfd7cf")
125	bg[SELECTED] = @selected_bg_color
126	bg[ACTIVE]   = shade (0.95, "#dfd7cf")
127	bg[INSENSITIVE]   = "#dfd7cf"
128}
129
130style "wide" {
131	xthickness = 2
132	ythickness = 2
133}
134
135style "wider" {
136	xthickness = 3
137	ythickness = 3
138}
139
140style "entry" {
141	xthickness = 3
142	ythickness = 3
143
144	engine "murrine" {
145	}
146}
147
148style "vscale" {
149}
150
151style "hscale" {
152}
153
154style "button" {
155	xthickness = 3
156	ythickness = 3
157
158	bg[NORMAL] = mix (0.4, "#dfd7cf", "#cdcdcd")
159	bg[PRELIGHT] = mix (0.4, "#dfd7cf", shade (1.04, "#cdcdcd"))
160	bg[ACTIVE] = mix (0.4, "#dfd7cf", shade (0.96, "#cdcdcd"))
161	bg[INSENSITIVE] = mix (0.4, @bg_color, "#e2e1e1")
162	fg[INSENSITIVE] = mix (0.4, "#dfd7cf", "#9c9c9c")
163
164	engine "murrine" {
165		#contrast = 1.0
166		border_shades = {1.04, 0.82}
167		reliefstyle = 5
168		shadow_shades = {1.02, 1.1}
169		textstyle = 1
170		glowstyle = 5
171		glow_shade = 1.1
172		#text_shade = 1.04
173	}
174}
175
176style "notebook_button" {
177
178	xthickness = 3
179	ythickness = 3
180
181	bg[NORMAL] = @bg_color
182	bg[PRELIGHT] = shade (1.04, @bg_color)
183	bg[ACTIVE] = shade (0.96, @bg_color)
184	bg[INSENSITIVE] = @bg_color
185
186	engine "murrine" {
187		#contrast = 1.0
188		textstyle = 1
189		border_shades = {1.01, 0.8}
190		reliefstyle = 5
191		shadow_shades = {1.0, 1.1}
192		glowstyle = 5
193		glow_shade = 1.02
194		lightborder_shade = 1.32
195#		lightborderstyle = 0
196		#text_shade = 1.04
197	}
198}
199
200style "spinbutton" = "notebook_button" {
201	xthickness = 4
202
203	engine "murrine" {
204	}
205}
206
207style "scrollbar" = "button" {
208	xthickness = 2
209	ythickness = 2
210
211	bg[NORMAL] = @bg_color
212	bg[PRELIGHT] = shade (1.04, @bg_color)
213	bg[ACTIVE] = shade (0.96, @bg_color)
214
215	engine "murrine"
216	{
217		border_shades = {0.95, 0.90}
218		roundness = 20
219		contrast = 1.0
220		trough_shades = {0.92, 0.98}
221		lightborder_shade = 1.3
222		glowstyle = 5
223		glow_shade = 1.02
224		gradient_shades = {1.2, 1.0, 1.0, 0.86}
225		trough_border_shades = {0.9, 0.98}
226	}
227}
228
229style "hscrollbar" {
230}
231
232style "vscrollbar" {
233}
234
235style "overlay_scrollbar"
236{
237	bg[SELECTED] = shade (1.0, @selected_bg_color)
238	bg[INSENSITIVE] = shade (0.85, @bg_color)
239	bg[ACTIVE] = shade (0.6, @bg_color)
240}
241
242style "scale" = "button" {
243	bg[NORMAL] = @bg_color
244	bg[PRELIGHT] = shade (1.06, @bg_color)
245	bg[ACTIVE] = shade (0.94, @bg_color)
246
247	engine "murrine" {
248		contrast = 0.6
249		border_shades = {0.9, 0.8}
250		roundness = 5
251		lightborder_shade = 1.32
252		gradient_shades = {1.1, 1.0, 1.0, 0.8}
253		handlestyle = 2
254		trough_border_shades = {0.9, 1.4}
255		glow_shade = 1.0
256#		reliefstyle = 2
257#		shadow_shades = { 1.0, 0.9 }
258	}
259}
260
261style "notebook_bg" {
262	bg[NORMAL] = shade (1.02, @bg_color)
263	bg[ACTIVE] = shade (0.97, @bg_color)
264	fg[ACTIVE] = mix (0.8, @fg_color, shade (0.97, @bg_color))
265}
266
267# The color is changed by the notebook_bg style, this style
268# changes the x/ythickness
269style "notebook" {
270	xthickness = 2
271	ythickness = 2
272	
273	engine "murrine" {
274		roundness = 3
275		contrast = 0.8
276		focusstyle = 2
277		lightborder_shade = 1.16
278		gradient_shades = {1.1, 1.0, 1.0, 0.68}
279	}
280}
281
282style "statusbar" {
283	engine "murrine" {
284		contrast = 1.2
285	}
286}
287
288style "comboboxentry" = "notebook_button" {
289	xthickness = 3
290	ythickness = 3
291	
292	engine "murrine" {
293		textstyle = 1
294		glowstyle = 5
295		glow_shade = 1.02
296	}
297}
298
299style "menubar" = "dark" {
300	# those two lines were added to fix firefox's menubar item text
301	bg[SELECTED] = "#ece7e2"
302	fg[SELECTED] = @fg_color
303
304	engine "murrine" {
305		textstyle = 1
306		text_shade = 1.23
307		gradient_shades = {1.0, 1.0, 1.0, 1.0}
308		lightborder_shade = 1.0
309	}
310}
311
312style "toolbar" {
313	engine "murrine" {
314		textstyle = 1
315		text_shade = 1.32
316		lightborder_shade = 1.0
317	}
318}
319
320style "toolbar-button" = "notebook_button" {
321	engine "murrine" {
322	}
323}
324
325style "menu" {
326	xthickness = 0
327	ythickness = 0
328
329	engine "murrine"
330	{
331		reliefstyle = 0
332		roundness = 0
333	}
334}
335
336style "menu_item" = "menu" {
337	xthickness = 2
338	ythickness = 3
339
340	fg[PRELIGHT] = @selected_fg_color
341
342	engine "murrine"
343	{
344		glowstyle = 5
345		glow_shade = 1.1
346#		lightborder_shade = 1.0
347#		border_shades = { 1.5, 1.3 }
348		roundness = 0
349	}
350}
351
352style "menubar_item" = "menu_item" {
353	bg[PRELIGHT] = "#ece7e2"
354	fg[PRELIGHT] = @fg_color
355
356	engine "murrine" {
357		gradient_shades = {1.00, 1.0, 1.0, 1.0}
358#		glowstyle = 5
359		border_shades = { 1.0, 1.0 }
360		glow_shade = 1.00
361		lightborderstyle = 3
362		lightborder_shade = 1.2
363		roundness = 4
364	}
365}
366
367style "scale_menu_item" = "scale" {
368	engine "murrine" {
369		roundness = 20
370		lightborder_shade = 1.32
371		reliefstyle = 0
372	}
373}
374
375# This style is there to modify the separator menu items. The goals are:
376# 1. Get a specific height.
377# 2. The line should go to the edges (ie. no border at the left/right)
378style "separator_menu_item" {
379	xthickness = 1
380	ythickness = 0
381
382	GtkSeparatorMenuItem::horizontal-padding = 0
383	GtkWidget::wide-separators = 1
384	GtkWidget::separator-width = 1
385	GtkWidget::separator-height = 7
386
387	engine "murrine" {
388		contrast = 0.5
389		separatorstyle = 0
390	}
391}
392
393style "separator_tool_item" {
394	xthickness = 0
395	ythickness = 1
396
397	GtkVSeparator::vertical-padding = 0
398	GtkWidget::wide-separators = 1
399	GtkWidget::separator-width = 7
400	GtkWidget::separator-height = 1
401
402	engine "murrine" {
403		contrast = 0.5
404		separatorstyle = 0
405	}
406}
407
408style "frame_title" {
409	fg[NORMAL] = lighter (@fg_color)
410}
411
412style "treeview" {
413	engine "murrine"
414	{
415		roundness = 2
416		lightborder_shade = 1.1
417		gradient_shades = {1.04, 1.0, 1.0, 0.96}
418	}
419}
420
421style "progressbar" {
422	xthickness = 1
423	ythickness = 1
424
425	bg[ACTIVE] = shade (0.94, @bg_color)
426	#bg[SELECTED] = "#cdcdcd"
427	fg[PRELIGHT] = @selected_fg_color
428
429	engine "murrine" {
430		#trough_shades = {0.98, 1.02}
431		roundness = 8
432		lightborderstyle = 1
433		lightborder_shade = 1.26
434		border_shades = {0.95, 0.85}
435		gradient_shades = {1.1, 1.0, 1.0, 0.9}
436		trough_border_shades = {0.9, 1.4}
437	}
438}
439
440style "progressbar_menu_item" = "progressbar" {
441	engine "murrine" {
442		roundness = 0
443	}
444}
445
446# This style is based on the default style, so that the colors from the button
447# style are overriden again.
448style "treeview_header" = "notebook_button" {
449	xthickness = 2
450	ythickness = 1
451
452	engine "murrine" {
453		glazestyle = 1
454		contrast = 0.8
455		lightborder_shade = 1.16
456		textstyle = 1
457		glow_shade = 1.0
458	}
459}
460
461style "treeview_header_scrolled" = "treeview_header" {
462}
463
464style "scrolledwindow" {
465	engine "murrine" {
466		contrast = 0.6
467	}
468}
469
470style "radiocheck"  = "button" {
471	text[NORMAL] = shade (0.535, @selected_bg_color)
472	text[PRELIGHT] = shade(1.06, shade (0.535, @selected_bg_color))
473	bg[NORMAL]   = shade (0.92, @bg_color)
474	bg[PRELIGHT] = mix (0.2, @selected_bg_color, shade(1.1, @bg_color))
475	fg[INSENSITIVE] = darker (@bg_color)
476	fg[ACTIVE] = @fg_color
477
478	engine "murrine" {
479		reliefstyle = 3
480		gradient_shades = {1.2, 1.0, 1.0, 0.9}
481		shadow_shades = {0.6, 0.5}
482		textstyle = 0
483	}
484}
485
486style "tooltips" {
487	xthickness = 4
488	ythickness = 4
489
490	bg[NORMAL]        = @tooltip_bg_color
491	fg[NORMAL]        = @tooltip_fg_color
492	bg[SELECTED]      = "#000000"
493
494	engine "murrine" {
495		rgba = TRUE
496	}
497}
498
499style "infobar" {
500	engine "murrine" {
501	}
502}
503
504style "nautilus_location" {
505	bg[NORMAL]  = mix (0.60, shade (1.05, @bg_color), @selected_bg_color)
506}
507
508style "calendar" {
509	xthickness = 0
510	ythickness = 0
511
512	engine "murrine" {
513		roundness = 0
514	}
515}
516
517style "calendar_menu_item" = "calendar" {
518#	base[NORMAL] = "#c5bfb7"
519}
520
521style "soundfix"
522{
523}
524
525# Wrokaround style for places where the text color is used instead of the fg color.
526style "text_is_fg_color_workaround" {
527	text[NORMAL]      = @fg_color
528	text[PRELIGHT]    = @fg_color
529	text[SELECTED]    = @selected_fg_color
530	text[ACTIVE]      = @fg_color
531	text[INSENSITIVE] = darker (@bg_color)
532}
533
534# Workaround style for menus where the text color is used instead of the fg color.
535style "menuitem_text_is_fg_color_workaround" {
536	text[NORMAL]        = @fg_color
537	text[PRELIGHT]      = @selected_fg_color
538	text[SELECTED]      = @selected_fg_color
539	text[ACTIVE]        = @fg_color
540	text[INSENSITIVE]   = "#99958b"
541}
542
543# Workaround style for places where the fg color is used instead of the text color.
544style "fg_is_text_color_workaround" {
545	fg[NORMAL]        = @text_color
546	fg[PRELIGHT]      = @text_color
547	fg[SELECTED]      = @selected_fg_color
548	fg[ACTIVE]        = @selected_fg_color
549	fg[INSENSITIVE]   = darker (@bg_color)
550}
551
552# Style to set the toolbar to use a flat style. This is because the "New" button in
553# Evolution is not drawn transparent. So if there is a gradient in the background it will
554# look really wrong.
555# See http://bugzilla.gnome.org/show_bug.cgi?id=446953.
556style "evo_new_button_workaround" {
557}
558
559###############################################################################
560# The following part of the gtkrc applies the different styles to the widgets.
561###############################################################################
562
563# The default style is applied to every widget
564class "GtkWidget" style "default"
565
566class "GtkSeparator" style "wide"
567class "GtkFrame" style "wide"
568class "GtkCalendar" style "wide"
569class "GtkEntry" style "entry"
570
571class "GtkSpinButton" style "spinbutton"
572class "GtkScale" style "scale"
573class "GtkVScale" style "vscale"
574class "GtkHScale" style "hscale"
575class "GtkScrollbar" style "scrollbar"
576class "GtkHScrollbar" style "hscrollbar"
577class "GtkVScrollbar" style "vscrollbar"
578class "GtkCalendar" style "calendar"
579class "GtkInfoBar" style "infobar"
580
581# General matching follows. The order is choosen so that the right styles override
582# each other. EG. progressbar needs to be more important than the menu match.
583widget_class "*<GtkNotebook>" style "notebook_bg"
584# This is not perfect, it could be done better.
585# (That is modify *every* widget in the notebook, and change those back that
586# we really don't want changed)
587widget_class "*<GtkNotebook>*<GtkEventBox>" style "notebook_bg"
588widget_class "*<GtkNotebook>*<GtkDrawingArea>" style "notebook_bg"
589widget_class "*<GtkNotebook>*<GtkLayout>" style "notebook_bg"
590widget_class "*<GtkNotebook>*<GtkLabel>" style "notebook_bg"
591
592widget_class "*<GtkToolbar>*" style "toolbar"
593widget_class "*<GtkScrolledWindow>*" style "scrolledwindow"
594
595widget_class "*<GtkButton>" style "button"
596widget_class "*<GtkButton>*<GtkLabel>" style "button"
597widget_class "*<GtkToolbar>.*.<GtkButton>*" style "notebook_button"
598widget_class "*<GtkNotebook>" style "notebook"
599widget_class "*<GtkStatusbar>" style "statusbar"
600widget_class "*<GtkSpinButton>*" style "spinbutton"
601widget_class "*<GtkNotebook>*<GtkButton>" style "notebook_button"
602widget_class "*<GtkNotebook>*<GtkButton>*<GtkLabel>" style "notebook_button"
603widget_class "*<GtkRadioButton>*" style "radiocheck"
604widget_class "*<GtkCheckButton>*" style "radiocheck"
605
606widget_class "*<GtkComboBoxEntry>*" style "comboboxentry"
607widget_class "*<GtkCombo>*" style "comboboxentry"
608
609widget_class "*<GtkMenuBar>*" style "menubar"
610widget_class "*<GtkMenu>*" style "menu"
611widget_class "*<GtkMenuItem>*" style "menu_item"
612widget_class "*<GtkSeparatorMenuItem>*" style "separator_menu_item"
613widget_class "*<GtkSeparatorToolItem>*" style "separator_tool_item"
614widget_class "*<GtkMenuBar>*<GtkMenuItem>*" style "menubar_item"
615
616widget_class "*.<GtkFrame>.<GtkLabel>" style "frame_title"
617widget_class "*.<GtkTreeView>*" style "treeview"
618
619widget_class "*<GtkProgress>" style "progressbar"
620widget_class "*<GtkMenuItem>.*.<GtkProgressBar>" style "progressbar_menu_item"
621widget_class "*<GtkMenuItem>.*.<GtkScale>" style "scale_menu_item"
622widget_class "*<GtkMenuItem>.*.<GtkCalendar>" style "calendar_menu_item"
623
624# Treeview headers (and similar stock GTK+ widgets)
625widget_class "*.<GtkScrolledWindow>*<GtkTreeView>*" style "treeview_header_scrolled"
626widget_class "*.<GtkTreeView>.<GtkButton>" style "treeview_header"
627widget_class "*.<GtkCTree>.<GtkButton>" style "treeview_header"
628widget_class "*.<GtkList>.<GtkButton>" style "treeview_header"
629widget_class "*.<GtkCList>.<GtkButton>" style "treeview_header"
630widget_class "*.<GtkTreeView>.<GtkButton>.*<GtkLabel>" style "treeview_header"
631widget_class "*.<GtkCTree>.<GtkButton>.*<GtkLabel>" style "treeview_header"
632widget_class "*.<GtkList>.<GtkButton>.*<GtkLabel>" style "treeview_header"
633widget_class "*.<GtkCList>.<GtkButton>.*<GtkLabel>" style "treeview_header"
634
635# Overlay scrollbar
636widget_class "*<OsScrollbar>" style "overlay_scrollbar"
637widget_class "*<OsThumb>" style "overlay_scrollbar"
638
639# The window of the tooltip is called "gtk-tooltip"
640##################################################################
641# FIXME:
642# This will not work if one embeds eg. a button into the tooltip.
643# As far as I can tell right now we will need to rework the theme
644# quite a bit to get this working correctly.
645# (It will involve setting different priorities, etc.)
646##################################################################
647widget "gtk-tooltip*" style "tooltips"
648
649##########################################################################
650# Following are special cases and workarounds for issues in applications.
651##########################################################################
652
653# Workaround for the evolution ETable (bug #527532)
654widget_class "*.ETable.ECanvas" style "treeview_header"
655# Workaround for the evolution ETree
656widget_class "*.ETree.ECanvas" style "treeview_header"
657
658# Special case the nautilus-extra-view-widget
659# ToDo: A more generic approach for all applications that have a widget like this.
660widget "*.nautilus-extra-view-widget" style : highest "nautilus_location"
661
662# Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
663# Note that this work around assumes that the combobox is _not_ in appears-as-list mode.
664widget_class "*.<GtkComboBox>.<GtkCellView>" style "text_is_fg_color_workaround"
665# This is the part of the workaround that fixes the menus
666widget "*.gtk-combobox-popup-menu.*" style "menuitem_text_is_fg_color_workaround"
667
668# Work around the usage of GtkLabel inside GtkListItems to display text.
669# This breaks because the label is shown on a background that is based on the base color.
670widget_class "*<GtkListItem>*" style "fg_is_text_color_workaround"
671# GtkCList also uses the fg color to draw text on top of the base colors.
672widget_class "*<GtkCList>" style "fg_is_text_color_workaround"
673# Nautilus when renaming files, and maybe other places.
674widget_class "*<EelEditableLabel>" style "fg_is_text_color_workaround"
675# Work around for ubuntu's lucid sound indicator
676widget "ido-offscreen-scale" style "soundfix"
677# Thickness for indicator menu items
678widget "*IdoEntryMenuItem*" style "wide"
679
680# See the documentation of the style.
681widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "evo_new_button_workaround"
682
683# Includes
684#include "apps/banshee.rc"
685include "apps/chromium.rc"
686include "apps/ff.rc"
687include "apps/gnome-terminal.rc"
688include "apps/nautilus.rc"