# ------------------------------------------------------------------------------
# NAME			: Wasp
# AUTHOR		: Lorem Ipsum
# EMAIL			: lrmpsm@gmail.com
# DATE			: 2009-05-20
# TAB WIDTH		: 4
# DEPENDENCES	: gtk2-engines-murrine >= 0.90.3
# TESTED ON		: Ubuntu = 9.10
# ------------------------------------------------------------------------------

# ==============================================================================
# GTK SETTINGS
# ==============================================================================

# ------------------------------------------------------------------------------
# Resource: http://library.gnome.org/devel/gtk/stable/GtkSettings.html
# ------------------------------------------------------------------------------

include "widget/color-chocolate.rc"
#include "widget/color-legacy.rc"

gtk-icon-sizes	= "gtk-button=16,16"

# XFCE (Thunar) bug
#gtk-menu-popup-delay	= 40

#Don't work, at least no more
#gtk-button-images		= 0

# ==============================================================================
# GENERAL SETTINGS
# ==============================================================================

# ------------------------------------------------------------------------------
# Resource: http://library.gnome.org/devel/gtk/stable/gtk-Resource-Files.html
# ------------------------------------------------------------------------------

style "theme-default"
{
	# --------------------------------------------------------------------------
	# All indented classes are subclasses
	# All options in classes can applies to its subclasses
	# Resource: http://library.gnome.org/devel/gtk/stable/gtkobjects.html
	# --------------------------------------------------------------------------

	GtkWidget	::scroll-arrow-hlength	= 12
	GtkWidget	::scroll-arrow-vlength	= 12

	GtkButton			::default_border		= { 0, 0, 0, 0 }
	GtkButton			::child-displacement-x	= 0
	GtkButton			::child-displacement-y	= 0

		GtkCheckButton	::indicator-size		= 15
		GtkCheckButton	::indicator-spacing		= 1

	GtkRange			::trough-border			= 1
	GtkRange			::slider-width			= 16
	GtkRange			::stepper-size			= 16
	GtkRange			::trough-side-details	= 1

		GtkScrollbar	::min_slider_length		= 36
		GtkScrollbar	::trough-border			= 0
		GtkScrollbar	::trough-side-details	= 0
		GtkScrollbar	::stepper-size			= 0
		GtkScrollbar	::slider-width			= 17
		GtkScrollbar	::has-backward-stepper	= 0
		GtkScrollbar	::has-forward-stepper	= 1
		GtkScrollbar	::has-secondary-backward-stepper	= 1
		GtkScrollbar	::trough-under-steppers	= 1

		GtkScale		::slider-length			= 10
		GtkScale		::slider-width			= 20

	GtkScrolledWindow	::scrollbar-spacing		= 2
	GtkScrolledWindow	::scrollbars-within-bevel	= 0

	GtkNotebook			::tab-curvature			= 2

	WnckTasklist		::fade-overlay-rect		= 0
	WnckTasklist		::fade-loop-time		= 5.0
	WnckTasklist		::fade-opacity			= 0.6

	GtkMenu				::horizontal-offset		= -1
	GtkMenu				::vertical-padding		= 0
	GtkMenuBar			::internal-padding		= 0
	GtkMenuItem			::arrow-scaling			= 0.6

#	GtkTreeView			::odd_row_color			= "#f0f0f0"
#	GtkTreeView			::even_row_color		= "#ffffff"

	GtkExpander			::expander-spacing		= 3
	GtkExpander			::expander_size			= 13

	GtkEntry			::progress-border		= { 2, 2, 2, 2 }

	GtkStatusbar		::shadow_type			= GTK_SHADOW_NONE

	GtkPaned			::handle_size			= 2

	NautilusIconContainer	::highlight_alpha	= 145

	GtkEntry	::honors-transparent-bg-hint	= 1

	GtkWidget	::link-color				= @selected_bg_color
	GtkWidget	::visited-link-color		= @text_color
	GtkHTML		::alink_color				= @selected_bg_color
	GtkHTML		::link_color				= @selected_bg_color
	GtkHTML		::vlink_color				= @text_color
	GnomeHref	::link_color				= @selected_bg_color
	GtkIMHtml	::hyperlink-color			= @selected_bg_color
	GtkIMHtml	::hyperlink-prelight-color	= @selected_bg_color

	xthickness	= 1
	ythickness	= 1

	fg[NORMAL]			= @fg_color
	fg[ACTIVE]			= @fg_color
	fg[PRELIGHT]		= @fg_color
	fg[SELECTED]		= @selected_fg_color
	fg[INSENSITIVE]		= mix (0.5, shade (0.76,@bg_color), shade (0.62,@base_color))

	bg[NORMAL]			= @bg_color
	bg[ACTIVE]			= shade (0.95,@bg_color)
	bg[PRELIGHT]		= mix(0.92, shade (1.1,@bg_color), @selected_bg_color)
	bg[SELECTED]		= @selected_bg_color
	bg[INSENSITIVE]		= shade (1.00,@bg_color)

	base[NORMAL]		= @base_color
	base[ACTIVE]		= shade (0.75, @base_color)
	base[PRELIGHT]		= @base_color
	base[SELECTED]		= @selected_bg_color
	base[INSENSITIVE]	= shade (1.06,@bg_color)

	text[NORMAL]		= @text_color
	text[ACTIVE]		= @base_color
	text[PRELIGHT]		= @text_color
	text[SELECTED]		= @selected_fg_color
	text[INSENSITIVE]	= mix (0.675,shade (0.95,@bg_color),@fg_color)

	engine "murrine"
	{
		animation			= TRUE
		colorize_scrollbar	= TRUE
		contrast			= 1.0					# 0.8 for less contrast, more than 1.0 for more contrast on borders
		glazestyle			= 0						# 0 = flat highlight, 1 = curved highlight, 2 = concave style, 3 = top curved highlight, 4 = beryl highlight
		gradient_shades		= {1.14,1.00,1.00,0.86}
#		gradients			= TRUE					# FALSE = disabled, TRUE = enabled
		glowstyle			= 0						# 0,1,2,3,4
		glow_shade			= 1.0
		highlight_shade		= 1.0					# set highlight amount for buttons or widgets
		lightborder_shade	= 1.36					# sets lightborder amount for buttons or widgets
		lightborderstyle	= 1						# 0 = lightborder on top side, 1 = lightborder on all sides
		listviewheaderstyle	= 1						# 0 = flat, 1 = glassy, 2 = raised
		listviewstyle		= 0						# 0 = nothing, 1 = dotted
		menubaritemstyle	= 0						# 0 = menuitem look, 1 = button look
		menubarstyle		= 2						# 0 = flat, 1 = glassy, 2 = gradient, 3 = striped
		menuitemstyle		= 1						# 0 = flat, 1 = glassy, 2 = striped
		menustyle			= 0						# 0 = no vertical menu stripe, 1 = display vertical menu stripe
		reliefstyle			= 2						# 0 = flat, 1 = inset, 2 = shadow
		rgba				= FALSE					# FALSE = disabled, TRUE = enabled
		roundness			= 2						# 0 = squared, 1 = old default, more will increase roundness
		scrollbarstyle		= 0						# 0 = nothing, 1 = circles, 2 = handles, 3 = diagonal stripes, 4 = diagonal stripes and handles, 5 = horizontal stripes, 6 = horizontal stripes and handles
		sliderstyle			= 0						# 0 = nothing added, 1 = handles
		stepperstyle		= 1						# 0 = standard, 1 = integrated stepper handles, 2 = unknown
		toolbarstyle		= 1						# 0 = flat, 1 = glassy, 2 = gradient
		progressbarstyle	= 1						# 0 = nothing, 1 = stripes, 2 = lines
		focus_color			= @selected_bg_color
		arrowstyle 			= 1
	}
}

style "theme-dark"
{
	color["dark_bg"]	= "#3c3c3c"

	GtkTreeView		::odd_row_color		= shade (1.20, @dark_bg)
#	GtkTreeView		::even_row_color	= shade (1.32, @dark_bg)

	GtkWidget	::link-color				= @selected_bg_color
	GtkWidget	::visited-link-color		= @text_color
	GtkHTML		::alink_color				= @selected_bg_color
	GtkHTML		::link_color				= @selected_bg_color
	GtkHTML		::vlink_color				= @text_color
	GnomeHref	::link_color				= @selected_bg_color
	GtkIMHtml	::hyperlink-color			= @selected_bg_color
	GtkIMHtml	::hyperlink-prelight-color	= @selected_bg_color

	bg[NORMAL]			= @dark_bg
	bg[ACTIVE]			= shade (0.8, @dark_bg) #"#333333"
	bg[PRELIGHT]		= shade (1.22, @dark_bg) #mix(0.93, shade (1.11, @dark_bg), shade (1.04, @selected_bg_color))
	bg[SELECTED]		= shade (0.84, @selected_bg_color)
	bg[INSENSITIVE]		= shade (0.96, @dark_bg)

	fg[NORMAL]			= shade (0.92, @base_color) #"#E6E6E6"
	fg[PRELIGHT]		= @selected_fg_color
	fg[SELECTED]		= @selected_fg_color
	fg[ACTIVE]			= @selected_fg_color
	fg[INSENSITIVE]		= shade (0.18, @base_color)

	base[NORMAL]		= shade (1.28, @dark_bg)
	base[ACTIVE]		= mix(0.84, shade (0.4, @base_color), shade (0.8, @selected_bg_color))
	base[PRELIGHT]		= shade (1.28, @dark_bg) #@base_color
	base[SELECTED]		= @selected_bg_color
	base[INSENSITIVE]	= shade (1.06, @dark_bg)

	text[NORMAL]		= shade (0.92, @base_color) #"#E6E6E6"
	text[ACTIVE]		= shade (0.95, @base_color)
	text[PRELIGHT]		= @selected_fg_color
	text[SELECTED]		= @selected_fg_color
	text[INSENSITIVE]	= shade (0.40, @base_color) #"#666666"

	engine "murrine"
	{
#		focus_color	= shade (1.0, @selected_bg_color)
		contrast	= 1.0
	}
}

# ==============================================================================
# WIDGETS SPECIFIC SETTINGS
# ==============================================================================

# ------------------------------------------------------------------------------
# GtkButton -> GtkToggleButton -> GtkCheckButton -> GtkRadioButton,
# GtkComboBox -> GtkComboBoxEntry, GtkButton*GtkSeparator,
# GtkComboBox*GtkSeparator, GtkColorButton
# ------------------------------------------------------------------------------

style "theme-button"
{
	GtkWidget	::focus-line-width	= 0
	GtkWidget	::focus-padding		= 2

	xthickness	= 3
	ythickness	= 3

	bg[NORMAL]		= shade (0.96, @base_color)
	bg[ACTIVE]		= mix(0.76, shade (0.92, @bg_color), shade (0.72, @base_color))
	bg[PRELIGHT]	= mix(0.93, shade (1.11, @bg_color), shade (1.04, @selected_bg_color))
	bg[SELECTED]	= mix(0.46, shade (1.11, @bg_color), shade (1.04, @selected_bg_color))
	bg[INSENSITIVE]	= shade (1.06,@bg_color)

	engine "murrine"
	{
		gradient_shades	= { 1.1, 1.0, 1.0, 0.9 }
		contrast		= 1.0
		reliefstyle		= 0
		focus_color		= shade (1.0, @bg_color)
	}
}

	style "theme-button-separator"
	{

		GtkWidget	::wide-separators	= 1
		GtkWidget	::separator-width	= 0

		bg[NORMAL]	= shade (0.936, @base_color)

		engine "murrine"
		{
			contrast	= 0.0
		}
	}

	style "theme-check-button" = "theme-button"
	{
		GtkWidget	::focus-line-width	= 1
		GtkWidget	::focus-padding		= 1

		text[SELECTED]		= @selected_fg_color
		text[INSENSITIVE]	= shade(0.625, @bg_color)
		base[PRELIGHT]		= shade(1.2, @selected_bg_color)
		bg[INSENSITIVE]		= shade(1.10, @bg_color)
		bg[SELECTED]		= shade(1.18, @selected_bg_color)

		engine "murrine"
		{
			gradient_shades		= { 1.1, 1.0, 1.0, 0.9 }
			lightborder_shade	= 1.1
			contrast			= 1.10
			focus_color			= @selected_bg_color
		}
	}

	style "theme-colorbutton"
	{
		GtkWidget	::focus-padding	= 1
	}

	style "theme-combobox"
	{
		GtkWidget	::focus-padding	= 0
	}

		style "theme-combobox-separator"
		{
			bg[NORMAL]	= shade (0.936, @base_color)

			engine "murrine"
			{
				contrast	= 0.0
			}
		}

		style "theme-combobox-entry"
		{
			GtkWidget	::focus-padding	= 2
		}

style "theme-dark-button" = "theme-dark"
{
	GtkWidget	::link-color			= @base_color
	GtkWidget	::visited-link-color	= @base_color

	bg[NORMAL]		= shade (1.2, @dark_bg)
	bg[ACTIVE]		= shade (0.76, @dark_bg)
	bg[PRELIGHT]	= mix(0.84, shade (1.11, @dark_bg), shade (1.00,@selected_bg_color))
	bg[SELECTED]	= shade (0.86, @selected_bg_color)
	fg[INSENSITIVE]	= shade (0.18, @base_color)

	engine "murrine"
	{
		gradient_shades	= {1.14, 0.96, 0.96, 0.86}
		glowstyle		= 4
		reliefstyle		= 2
		contrast		= 1.2
		focus_color		= shade (1.0, @dark_bg)
	}
}

	style "theme-dark-button-separator" = "theme-dark"
	{

		GtkWidget	::wide-separators	= 1
		GtkWidget	::separator-width	= 0

		bg[NORMAL]	= shade (1.22, @dark_bg)

		engine "murrine"
		{
			contrast	= 0.0
		}
	}

	style "theme-dark-check-button" = "theme-dark-button"
	{
		GtkWidget	::focus-line-width	= 0
		GtkWidget	::focus-padding		= 2

		bg[PRELIGHT]		= shade (1.18, @dark_bg)

		engine "murrine"
		{
			gradient_shades		= { 1.1, 1.0, 1.0, 0.9 }
			lightborder_shade	= 1.1
			contrast			= 1.10
			focus_color			= shade (1.0, @dark_bg)
		}
	}

style "theme-remix-button" = "theme-dark-button"
{
	bg[NORMAL]		= mix(0.84, shade (1.11, @dark_bg), shade (1.00,@selected_bg_color))
	bg[ACTIVE]		= mix(0.84, shade (1.11, @dark_bg), shade (1.00,@selected_bg_color))
	bg[PRELIGHT]	= mix(0.84, shade (1.11, @dark_bg), shade (1.00,@selected_bg_color))
	bg[SELECTED]	= mix(0.84, shade (1.11, @dark_bg), shade (1.00,@selected_bg_color))
	fg[INSENSITIVE]	= mix(0.84, shade (1.11, @dark_bg), shade (1.00,@selected_bg_color))
}

# ------------------------------------------------------------------------------
# GtkEntry -> GtkSpinButton
# ------------------------------------------------------------------------------

style "theme-entry" = "theme-button"
{
	GtkEntry	::state-hint	= 0

	bg[NORMAL]	= shade (1.08, @bg_color)

	engine "murrine"
	{
		contrast	= 0.9
		focus_color	= mix (0.8, shade (0.8, @selected_bg_color), shade (0.6, @bg_color))
	}
}

	style "theme-spinbutton" = "theme-button"
	{
		xthickness	= 3
		ythickness	= 3

		bg[NORMAL]	= shade (0.96, @base_color) #shade (1.08, @bg_color)

		engine "murrine"
		{
			contrast	= 1.0
#			focus_color	= shade (0.65, @selected_bg_color)
		}
	}

style "theme-dark-entry" = "theme-dark-button"
{
	GtkEntry	::state-hint	= 1

	xthickness	= 3
	ythickness	= 3

	base[INSENSITIVE]	= shade (1.14, @dark_bg)

	engine "murrine"
	{
		contrast	= 0.76
		roundness	= 2
		focus_color	= shade (0.74, @dark_bg) #mix (0.06, shade (0.65, @selected_bg_color), shade (1.0, @dark_bg))
	}
}

	style "theme-dark-spinbutton" = "theme-dark-entry"
	{
		bg[NORMAL]	= shade (1.0, @dark_bg)

		engine "murrine"
		{
			contrast	= 0.76
			roundness	= 2
			focus_color	= shade (0.74, @dark_bg) #mix (0.06, shade (0.65, @selected_bg_color), shade (1.0, @dark_bg))
		}
	}

# ------------------------------------------------------------------------------
# GtkRange -> GtkScrollbar, GtkScale
# ------------------------------------------------------------------------------

style "theme-range" = "theme-button" {}

	style "theme-scrollbar"
	{
		bg[SELECTED]	= shade (0.94, @base_color) #bg slider

		engine "murrine"
		{
			gradient_shades		= { 1.1, 1.0, 1.0, 0.9 }
			contrast			= 1.0
			roundness			= 0
			scrollbarstyle		= 2
			trough_shades		= { 0.8, 1.0 }
		}
	}

	style "theme-scrollbar-alt" = "theme-default"
	{
		GtkScrollbar	::trough-border			= 2
		GtkScrollbar	::trough-side-details	= 0
		GtkScrollbar	::stepper-size			= 15
		GtkScrollbar	::slider-width			= 15

		GtkScrollbar	::has-backward-stepper	= 1
		GtkScrollbar	::has-forward-stepper	= 1
		GtkScrollbar	::has-secondary-backward-stepper	= 0

		bg[SELECTED]	= mix (0.96, shade (1.14, @selected_bg_color), shade (1.0, "#3c3c3c")) #bg slider
		fg[PRELIGHT]	= shade (0.50, @selected_bg_color)

		engine "murrine"
		{
			gradient_shades		= {1.160,1.070,0.980,0.890}
			contrast			= 0.82
			highlight_shade		= 0.909090
			glow_shade			= 1.22
			glowstyle			= 4
			lightborder_shade	= 1.0
			roundness			= 1
			scrollbarstyle		= 0
		}
	}

include "widget/scrollbar-dark.rc"
#include "widget/scrollbar-dark-alt.rc"


	style "theme-scale"
	{
		bg[SELECTED]	= shade (1.16, @selected_bg_color)

		engine "murrine"
		{
			contrast	= 1.16
			focus_color		= shade (1.0, @bg_color)
		}
	}

	style "theme-dark-scale" = "theme-dark-button"
	{
		bg[SELECTED]	= shade (1.0, @selected_bg_color)

		engine "murrine"
		{
			contrast	= 1.1
			focus_color		= shade (1.0, @dark_bg)
		}
	}

# ------------------------------------------------------------------------------
# GtkNotebook, GtkNotebook*GtkToolbar
# ------------------------------------------------------------------------------

style "theme-notebook-bg"
{
	bg[NORMAL]		= shade (1.08, @bg_color) # Tab background
	bg[ACTIVE]		= shade (1.02, @bg_color) # Unfocused tab background
	bg[PRELIGHT]	= mix (0.2, @selected_bg_color, shade (1.135, @bg_color))
	bg[INSENSITIVE]	= shade (1.0, @bg_color)
}

style "theme-notebook" = "theme-notebook-bg"
{
	GtkWidget	::focus-line-width	= 0
	GtkWidget	::focus-padding		= 2

	xthickness	= 3
	ythickness	= 3

	engine "murrine"
	{
		gradient_shades	= { 1.200, 1.000, 1.000, 0.800 }
		glow_shade		= 1.0
		contrast		= 1.08
		focus_color		= shade (1.08, @bg_color)
	}
}

style "theme-dark-notebook" = "theme-dark"
{
	bg[NORMAL]	= shade (1.2, @dark_bg)
	bg[ACTIVE]	= shade (1.0, @dark_bg)
	fg[ACTIVE]	= shade (0.46, @selected_fg_color)

	xthickness	= 3
	ythickness	= 3

	engine "murrine"
	{
		gradient_shades		= {1.200, 1.000, 1.000, 0.800}
		glow_shade			= 1.0
		highlight_shade		= 1.0
		lightborder_shade	= 1.36
#		contrast			= 1.0
	}
}

style "theme-notebook-toolbar" = "theme-button"
{
	GtkToolbar	::shadow_type	= GTK_SHADOW_NONE

	bg[NORMAL]	= shade ( 1.2, @bg_color )

	engine "murrine"
	{
		toolbarstyle	= 0
	}
}

style "theme-notebook-menubar" = "theme-button"
{
	GtkMenuBar	::shadow_type	= GTK_SHADOW_NONE

	bg[NORMAL]	= shade ( 1.08, @bg_color )

	engine "murrine"
	{
		menubarstyle		= 0
	}
}

style "theme-dark-notebook-menubar" = "theme-dark-button"
{
	GtkMenuBar	::shadow_type	= GTK_SHADOW_NONE

	bg[NORMAL]	= shade ( 1.2, @dark_bg )

	engine "murrine"
	{
		menubarstyle		= 0
	}
}

# ------------------------------------------------------------------------------
# GtkToolbar
# ------------------------------------------------------------------------------

style "theme-toolbar" = "theme-default"
{
	xthickness	= 3
	ythickness	= 2

	engine "murrine"
	{
		gradient_shades		= {1.00,0.95,0.95,0.90}
		highlight_shade		= 1.0
		contrast			= 1.06
		glow_shade			= 1.0
		toolbarstyle		= 1
		lightborder_shade	= 1.0
	}
}

style "theme-dark-toolbar" = "theme-dark"
{
	xthickness	= 3
	ythickness	= 2

	engine "murrine"
	{
		toolbarstyle		= 1
		gradient_shades		= { 1.02, 0.9, 0.9, 0.8 }
		glow_shade			= 1.0
		contrast			= 1.08
		highlight_shade		= 1.0
		lightborder_shade	= 1.0
	}
}

#include "widget/toolbar-light-light.rc"
include "widget/toolbar-light-dark.rc"

style "theme-toolbar-zero" = "theme-default"
{
	engine "murrine"
	{
		contrast		= 0.00 #0.5
		toolbarstyle	= 0
	}
}

style "theme-dark-toolbar-zero" = "theme-dark"
{
	engine "murrine"
	{
		contrast		= 0.00 #0.5
		toolbarstyle	= 0
	}
}

# ------------------------------------------------------------------------------
# GtkMenubar, GtkMenu, GtkMenuItem, GtkSeparatorMenuItem, GtkSeparator
# ------------------------------------------------------------------------------

style "theme-menubar" = "theme-dark"
{
	xthickness	= 3
	ythickness	= 3

	bg[PRELIGHT]	= mix (0.92, shade (1.06, @selected_bg_color), shade (1.0, @dark_bg))

	engine "murrine"
	{
		menubarstyle		= 1
		menubaritemstyle	= 1
		gradient_shades		= {1.02, 0.88, 0.88, 0.78}
		glow_shade			= 1.0
#contrast = 1.06 #for light menubar
contrast = 1.14 #for dark menubar
		highlight_shade		= 1.0
		lightborder_shade	= 1.0
		roundness			= 2
	}
}

style "theme-menu" = "theme-dark"
{
	xthickness	= 0
	ythickness	= 0

	bg[NORMAL]			= @dark_bg
	bg[SELECTED]		= mix (0.92, shade (1.06, @selected_bg_color), shade (1.0, @dark_bg))
	bg[PRELIGHT]		= mix (0.92, shade (1.06, @selected_bg_color), shade (1.0, @dark_bg))
	bg[ACTIVE]			= shade (0.8, @dark_bg) #"#333333"
	bg[INSENSITIVE]		= @dark_bg
	fg[NORMAL]			= shade (0.92, @base_color) #"#E6E6E6"
	fg[PRELIGHT]		= @selected_fg_color
	fg[SELECTED]		= @selected_fg_color
	fg[ACTIVE]			= @selected_fg_color
	fg[INSENSITIVE]		= shade (0.18, @base_color)
	text[NORMAL]		= @base_color #checks
	base[NORMAL]		= shade (0.40, @base_color) #"#666666" #checks bg
	text[PRELIGHT]		= @selected_fg_color #checks fg
	text[SELECTED]		= @selected_fg_color
	text[ACTIVE]		= @selected_fg_color
	text[INSENSITIVE]	= shade (0.40, @base_color) #"#666666"

	engine "murrine"
	{
		contrast	= 0.46
	}
}

style "theme-menu-item" = "theme-menu"
{
	xthickness = 3
	ythickness = 3

	engine "murrine"
	{
		menustyle			= 0
		menuitemstyle		= 1
		gradient_shades		= {1.02, 0.88, 0.88, 0.78}
		glow_shade			= 1.0
		contrast			= 0.56
		highlight_shade		= 1.0
		lightborder_shade	= 1.0
		lightborderstyle	= 1
		roundness			= 0
	}
}

style "theme-menubar-light" = "theme-default"
{
	xthickness	= 3
	ythickness	= 2

	bg[PRELIGHT]	= mix (0.96, shade (1.14, @selected_bg_color), shade (1.0, "#3c3c3c"))
	fg[SELECTED]	= @selected_fg_color
	fg[PRELIGHT]		= @selected_fg_color

	engine "murrine"
	{
		menubarstyle		= 1
		menubaritemstyle	= 1
		gradient_shades		= {1.02, 0.96, 0.96, 0.90}
		glow_shade			= 1.0
		contrast = 1.0
		highlight_shade		= 1.0
		lightborder_shade	= 1.0
		roundness			= 2
	}
}

style "theme-menu-light" = "theme-default"
{
	xthickness	= 0
	ythickness	= 0

	bg[NORMAL]			= shade (1.04, @bg_color)
	bg[SELECTED]		= mix (0.96, shade (1.14, @selected_bg_color), shade (1.0, "#3c3c3c"))
	bg[PRELIGHT]		= mix (0.96, shade (1.14, @selected_bg_color), shade (1.0, "#3c3c3c"))
	bg[ACTIVE]			= shade (0.94, @bg_color)
	bg[INSENSITIVE]		= shade (1.06,@bg_color)
	fg[NORMAL]			= @fg_color
	fg[PRELIGHT]		= @selected_fg_color
	fg[SELECTED]		= @selected_fg_color
	fg[ACTIVE]			= @selected_fg_color
	fg[INSENSITIVE]		= shade (0.94, @bg_color)
	text[NORMAL]		= @text_color #checks
	base[NORMAL]		= @base_color #checks background
#	text[PRELIGHT]		= @base_color #checks prelight
	text[SELECTED]		= @selected_fg_color
	text[ACTIVE]		= @selected_fg_color
	text[INSENSITIVE]	= shade (0.94, @bg_color)

	engine "murrine"
	{
		contrast	= 1.0 #0.46
		reliefstyle	= 0
	}
}

style "theme-menu-item-light" = "theme-menu-light"
{
	xthickness = 3
	ythickness = 3

	bg[NORMAL]		= shade (1.16,@bg_color)
	bg[ACTIVE]		= shade (0.84,@bg_color)
	bg[PRELIGHT]	= mix (0.96, shade (1.14, @selected_bg_color), shade (1.0, "#3c3c3c"))
	bg[SELECTED]	= mix (0.96, shade (1.14, @selected_bg_color), shade (1.0, "#3c3c3c"))

	engine "murrine"
	{
		menustyle			= 0
		menuitemstyle		= 1
		gradient_shades		= { 1.0, 0.9, 0.9, 0.8 }
		glow_shade			= 1.0
		contrast			= 0.46
		glazestyle			= 0
		highlight_shade		= 1.0
		lightborder_shade	= 1.0
		lightborderstyle	= 1
		roundness			= 0
	}
}

style "theme-separator-menu-item"
{
	GtkSeparatorMenuItem	::horizontal-padding	= 0
	GtkWidget				::wide-separators		= 1
	GtkWidget				::separator-width		= 1
	GtkWidget				::separator-height		= 5

	xthickness	= 1
	ythickness	= 0

	engine "murrine"
	{
		contrast	= 1.0
	}
}

style "theme-separator-menu-item-light"
{
	GtkSeparatorMenuItem	::horizontal-padding	= 0
	GtkWidget				::wide-separators		= 1
	GtkWidget				::separator-width		= 1
	GtkWidget				::separator-height		= 5

	xthickness	= 1
	ythickness	= 0

	engine "murrine"
	{
		contrast	= 1.1
	}
}

style "theme-separator"
{
	xthickness	= 2
	ythickness	= 2
}

style "theme-menubar-zero" = "theme-default"
{
	GtkMenuBar	::shadow_type	= GTK_SHADOW_NONE

	engine "murrine"
	{
		menubarstyle	= 0
	}
}

# ------------------------------------------------------------------------------
# GtkTree, GtkTree*GtkButton
# ------------------------------------------------------------------------------

style "theme-tree"
{
#	GtkTreeView	::vertical-separator	= 4

	GtkWidget	::focus-line-width	= 0
	GtkWidget	::focus-padding		= 2

	bg[NORMAL]		= shade (1.2, @bg_color)
	bg[SELECTED]	= mix (0.96, shade (1.14, @selected_bg_color), shade (1.0, "#3c3c3c"))
	base[SELECTED]	= mix (0.96, shade (1.14, @selected_bg_color), shade (1.0, "#3c3c3c"))

	engine "murrine"
	{
		gradient_shades		= {1.0, 0.9, 0.9, 0.8} #{1.0, 0.88, 0.88, 0.78}
		glow_shade			= 1.0
		contrast			= 1.0 #0.46
		highlight_shade		= 1.0
		lightborder_shade	= 1.0
		lightborderstyle	= 1
		roundness			= 0
		reliefstyle			= 0
	}
}

style "theme-tree-header"
{
	GtkWidget	::focus-line-width	= 1
	GtkWidget	::focus-padding		= 1

	xthickness	= 2
	ythickness	= 1

	bg[NORMAL]		= shade (1.08,@bg_color)
	bg[PRELIGHT]	= mix (0.87, shade (1.15, @bg_color ), @selected_bg_color)
	bg[ACTIVE]		= mix (0.87, shade (1.05, @bg_color ), @selected_bg_color)

	engine "murrine"
	{
		gradient_shades		= { 1.05, 1.00, 1.00, 0.95 }
		highlight_shade		= 1.0
		glow_shade			= 1.22
		glowstyle			= 4
		lightborder_shade	= 1.0
		lightborderstyle	= 1
		contrast			= 1.1
		focus_color			= @selected_bg_color
	}
}

style "theme-dark-tree" = "theme-dark"
{
	bg[SELECTED]	= mix (0.82, shade (1.02, @selected_bg_color ), @dark_bg)
	base[SELECTED]	= mix (0.82, shade (1.02, @selected_bg_color ), @dark_bg)

	engine "murrine"
	{
		gradient_shades		= {1.12, 1.04, 1.04, 0.86}
		glow_shade			= 1.0
		contrast			= 0.46
		highlight_shade		= 1.0
		lightborder_shade	= 1.0
		lightborderstyle	= 1
		roundness			= 0
		reliefstyle			= 0
	}
}

style "theme-dark-tree-header" = "theme-dark"
{
	bg[NORMAL]		= shade (1.08, @dark_bg)
	bg[PRELIGHT]	= mix (0.97, shade (1.05, @dark_bg), @selected_bg_color)
	bg[ACTIVE]		= mix (0.87, shade (1.05, @dark_bg), @selected_bg_color)

	engine "murrine"
	{
		gradient_shades		= { 1.05, 1.00, 1.00, 0.95 }
		highlight_shade		= 1.0
		glow_shade			= 1.22
		glowstyle			= 4
		lightborder_shade	= 1.0
		lightborderstyle	= 1
		contrast			= 1.1
	}
}

# ------------------------------------------------------------------------------
# GtkProgressBar
# ------------------------------------------------------------------------------

style "theme-progressbar"
{
#	font_name	= "Bold"
#	GtkProgressBar		::yspacing	= 0

	xthickness	= 0
	ythickness	= 0

	bg[NORMAL]		= @base_color
	bg[SELECTED]	= shade (1.12, @selected_bg_color)
	fg[PRELIGHT]	= lighter (@selected_fg_color)

	engine "murrine"
	{
		contrast			= 1.0
		highlight_shade		= 1.0
		lightborder_shade	= 1.0
		lightborderstyle	= 1
		roundness			= 1
		trough_shades		= { 0.8, 1.0 }
	}

}

style "theme-dark-progressbar" = "theme-dark"
{
	bg[SELECTED]	= shade (1.02, @selected_bg_color)

	xthickness	= 1
	ythickness	= 1

	engine "murrine"
	{
		contrast	= 1.0
	}
}

# ------------------------------------------------------------------------------
# GtkScrolledWindow
# ------------------------------------------------------------------------------

style "theme-dark-scrolled" = "theme-dark"
{
	engine "murrine"
	{
		contrast	= 0.8
	}
}

style "theme-scrolledwindow"
{
	xthickness	= 1
	ythickness	= 1
}

# ------------------------------------------------------------------------------
# GtkHandleBox
# ------------------------------------------------------------------------------

style "theme-handlebox" = "theme-default"
{
	bg[NORMAL]	= shade (0.95,@bg_color)

	engine "murrine"
	{
		gradient_shades		= {1.058,1.00,1.00,0.946}
		contrast			= 1.0
		highlight_shade		= 1.0
		glow_shade			= 1.0
		lightborder_shade	= 1.0
		roundness			= 1
	}
}

style "theme-dark-handlebox" = "theme-dark"
{
	bg[NORMAL]	= shade (0.95, @dark_bg)

	engine "murrine"
	{
		gradient_shades		= {1.08,0.960,0.960,0.84}
		contrast			= 1.0
		highlight_shade		= 1.0
		glow_shade			= 1.0
		lightborder_shade	= 1.0
		roundness			= 1
	}
}

# ------------------------------------------------------------------------------
# Bonobo
# ------------------------------------------------------------------------------

style "theme-bonobodockitem"
{
	bg[NORMAL]	= shade (1.0, @bg_color)

	engine "murrine"
	{
		contrast	= 0.0
	}
}

style "theme-dark-bonobodockitem" = "theme-dark"
{
	bg[NORMAL]	= shade (0.908, @dark_bg)
}

# ------------------------------------------------------------------------------
# GtkCalendar
# ------------------------------------------------------------------------------

style "theme-calendar"
{
	xthickness	= 0
	ythickness	= 0

	bg[NORMAL]		= shade (0.92,@bg_color)
	bg[PRELIGHT]	= shade (0.92,@bg_color)
	bg[ACTIVE]		= shade (0.85,@bg_color)
	text[PRELIGHT]	= @selected_fg_color
}

style "theme-dark-calendar" = "theme-dark-tree"
{
	xthickness	= 0
	ythickness	= 0

	base[SELECTED]	= mix(0.84, shade (0.4, @base_color), shade (0.8, @selected_bg_color))
	base[ACTIVE]	= mix(0.84, shade (0.4, @base_color), shade (0.8, @selected_bg_color))
}

# ------------------------------------------------------------------------------
# Others
# ------------------------------------------------------------------------------

style "theme-frame"
{
	xthickness	= 1
	ythickness	= 1
}

style "theme-zero"
{
	xthickness	= 0
	ythickness	= 0

	engine "murrine"
	{
		contrast	= 0.0
		reliefstyle	= 0
	}
}

style "theme-statusbar"
{
#	bg[INSENSITIVE]	= @bg_color

	xthickness	= 6
	ythickness	= 5
}

style "theme-tooltip" = "theme-default"
{
	xthickness	= 8
	ythickness	= 6

	bg[NORMAL]		= @tooltip_bg_color
	fg[NORMAL]		= @tooltip_fg_color

	engine "murrine"
	{
		gradient_shades	= {1.150, 1.000, 1.000, 0.850}
		highlight_shade	= 0.909090
		glow_shade		= 1.22
		glowstyle		= 4
	}
}

style "gnomedruid"
{
	fg[SELECTED]	= mix (0.4, shade (0.2, @base_color), @selected_bg_color)
	bg[SELECTED]	= @bg_color
}

style "theme-volume-applet" = "theme-dark"
{
	engine "murrine"
	{
		contrast	= 0.46
	}
}

style "theme-popoup-list" = "theme-menu-item"
{
	base[NORMAL]	= @dark_bg
}

# ==============================================================================
# MATCHES
# ==============================================================================

# ------------------------------------------------------------------------------
# This follow the classic top-down approch
# Tutorial: http://live.gnome.org/GnomeArt/Tutorials/GtkThemes
# ------------------------------------------------------------------------------

class	"GtkWidget"			style "theme-default"
class	"GtkButton"			style "theme-button"
class	"GtkCheckButton"	style "theme-check-button"
class	"GtkRange"			style "theme-range"
class	"GtkScale"			style "theme-scale"
class "GtkScrollbar" style "theme-scrollbar"
#class "GtkScrollbar" style "theme-scrollbar-alt"
class	"GtkEntry"			style "theme-entry"
class	"GtkSpinButton"		style "theme-spinbutton"
class	"GtkNotebook"		style "theme-notebook"
class	"GtkProgressBar"	style "theme-progressbar"
class	"GtkSeparator"		style "theme-separator"
class	"GtkCalendar"		style "theme-calendar"
#class "GtkToolbar" style "theme-toolbar"
class "GtkToolbar" style "theme-dark-toolbar"
class	"GtkScrolledWindow"	style "theme-scrolledwindow"
class	"GtkFrame"			style "theme-frame"
#class "GtkHandleBox" style "theme-handlebox"
class "GtkHandleBox" style "theme-dark-handlebox"

# not implemented
#widget_class	"*<GtkColorButton>*"				style "theme-colorbutton"
#widget_class	"*<GtkComboBox>*"					style "theme-combobox"
#widget_class	"*<GtkComboBoxEntry>*"				style "theme-combobox-entry"

widget_class	"*<GtkButton>*<GtkSeparator>*"		style "theme-button-separator"
widget_class	"*<GtkComboBox>*<GtkSeparator>*"	style "theme-combobox-separator"

include "widget/toolbar-dark.rc"
#include "widget/toolbar-light.rc"

include "widget/menubar-dark.rc"
#include "widget/menubar-light.rc"

widget_class	"*<GtkNotebook>*<GtkEventBox>"			style "theme-notebook-bg"
widget_class	"*<GtkNotebook>*<GtkDrawingArea>"		style "theme-notebook-bg"
widget_class	"*<GtkNotebook>*<GtkLayout>"			style "theme-notebook-bg"
widget_class	"*<GtkNotebook>*<GtkViewport>"			style "theme-notebook-bg"
widget_class	"*<GtkNotebook>*<GtkScrolledWindow>"	style "theme-notebook-bg"
widget_class	"*<GtkNotebook>*<GtkMenuBar>*"			style "theme-menubar-light"

widget_class	"*<GtkNotebook>*<GtkToolbar>*"								style "theme-notebook-toolbar"
widget_class	"*<GtkNotebook>*<GtkToolbar>*<GtkButton>*"					style "theme-button"
widget_class	"*<GtkNotebook>*<GtkToolbar>*<GtkButton>*<GtkLabel>*"		style "theme-default"
widget_class	"*<GtkNotebook>*<GtkToolbar>*<GtkButton>*<GtkSeparator>*"	style "theme-button-separator"
widget_class	"*<GtkNotebook>*<GtkToolbar>*<GtkCombobox>*<GtkSeparator>*"	style "theme-combobox-separator"

widget_class	"*.<GtkTreeView>*"				style "theme-tree"
widget_class	"*<GtkTreeView>.<GtkButton>"	style "theme-tree-header"
widget_class	"*<GtkCTree>.<GtkButton>*"		style "theme-tree-header"
widget_class	"*<GtkList>.<GtkButton>*"		style "theme-tree-header"
widget_class	"*<GtkCList>.<GtkButton>*"		style "theme-tree-header"

#widget_class "*<BonoboDockBand>*<BonoboDockItem>" style "theme-bonobodockitem"
widget_class "*<BonoboDockBand>*<BonoboDockItem>" style "theme-dark-bonobodockitem"

include "widget/handlebox-dark.rc"
#include "widget/handlebox-light.rc"

widget_class	"*<GtkStatusbar>*"					style "theme-statusbar"
widget_class	"*<GtkStatusbar>*<GtkProgressBar>*"	style "theme-progressbar"

widget_class	"*<GnomeDruidPageEdge>"		style "gnomedruid"
widget_class	"*<GnomeDruidPageStandard>"	style "gnomedruid"

# required in Wasp-Hard for Shutter
widget	"*ToolBarDrawing.*"				style "theme-button"
widget	"*ToolBarDrawing*Separator*"	style "theme-default"

# required for window-picker-applet (Ubuntu Remix)
widget	"*Bonobo*na-tray*"	style "theme-remix-button"

# required for pitivi
widget	"*TimelineToolBar*"	style "theme-toolbar-zero"

widget	"gtk-tooltip*"	style "theme-tooltip"

include "widget/popup-dark.rc"
#include "widget/popup-light.rc"

# ==============================================================================
# INCLUDE FILES
# ==============================================================================

include "xfce/xfce.rc"
include "panels/panel.rc"

# ------------------------------------------------------------------------------
# Each line include some specific application settings
# ------------------------------------------------------------------------------

include "apps/gnome-terminal.rc"
#include "apps/gnome-terminal-legacy.rc"
include "apps/nautilus.rc"
#include "apps/nautilus-legacy.rc"
include "apps/eog.rc"
include "apps/liferea.rc"
include "apps/gedit.rc"
include "apps/totem.rc"
include "apps/synaptic.rc"
include "apps/rhythmbox.rc"
include "apps/midori.rc"
include "apps/inkscape.rc"
include "apps/gimp.rc"
include "apps/pidgin.rc"
include "apps/ccsm.rc"
include "apps/evolution.rc"
include "apps/evince.rc"
include "apps/gnome-nettool.rc"
include "apps/banshee.rc"
include "apps/gnome-system-log.rc"
include "apps/brasero.rc"
include "apps/gmpc.rc"
include "apps/file-roller.rc"
include "apps/gnome-volume-control.rc"
include "apps/meld.rc"
include "apps/gnomebaker.rc"
include "apps/ff.rc"
include "apps/gpaint.rc"
include "apps/epiphany.rc"
include "apps/gparted.rc"
include "apps/gcalctool.rc"
include "apps/listen.rc"
include "apps/empathy.rc"
include "apps/ekiga.rc"
include "apps/f-spot.rc"
include "apps/wireshark.rc"
include "apps/gnome-games.rc"
include "apps/chromium.rc"
#include "apps/gvim.rc"




















