# Ambiance theme
#
# Authors:
# Kenneth Wimer <kwwii@ubuntu.com>
# James Schriver <jws141@gmail.com>
# fcfbfa #e6e2df
# Feel free to modify and share!

gtk_color_scheme = "fg_color:#3c3b37\nbg_color:#f0f0f0\nbase_color:#ffffff\ntext_color:#3a3935\nselected_bg_color:#b5b3b1\nselected_fg_color:#323232\ntooltip_bg_color:#000\ntooltip_fg_color:#FFFFFF\nlink_color:#DD4814\nbutton_bg_color:#e6e6e6\nframe_color:#3c3b37\ninactive_frame_color:#3c3b37"

gtk-icon-sizes = "panel-menu=22,22:gtk-button=16,16"

gtk-auto-mnemonics = 1 

style "default"
{
	xthickness = 0
	ythickness = 0

	#######################
	# Style Properties
	#######################
	GtkWidget::new-tooltip-style = 1

	GtkImage::x-ayatana-indicator-dynamic = 1

	GtkScrolledWindow ::scrollbar-spacing = 0
	GtkScrolledWindow ::scrollbar-within-bevel = 0
	
	GtkButton::child-displacement-x = 1
	GtkButton::child-displacement-y = 1
	GtkButton::default-border = { 0, 0, 0, 0 }

	GtkCheckButton::indicator-size = 14

	GtkPaned::handle-size = 6

	GtkRange::trough-border = 0
	GtkRange::slider-width = 16
	GtkRange::stepper-size = 20
        GtkRange::trough-under-steppers = 0

	GtkScale::slider-length = 28
	GtkScale::trough-side-details = 1

	GtkScrollbar::min-slider-length = 36
	GtkScrollbar::activate-slider = 1
	GtkMenuBar::internal-padding = 0
	GtkExpander::expander-size = 15
	GtkToolbar::internal-padding = 5
	GtkTreeView::expander-size = 15
	GtkTreeView::indent-expanders = 1
	GtkTreeView::vertical-separator = 0
	#GtkProgressBar ::min-vertical-bar-width = 14
	#GtkProgressBar ::min-horizontal-bar-width = 14
	#GtkProgressBar ::min-horizontal-bar-height = 14
	#GtkProgressBar ::min-vertical-bar-height = 12

	GtkMenu::horizontal-padding = 1
	GtkMenu::vertical-padding = 1

	WnckTasklist::fade-overlay-rect = 0
	# The following line hints to gecko (and possibly other appliations)
	# that the entry should be drawn transparently on the canvas.
	# Without this, gecko will fill in the background of the entry.
	GtkEntry::honors-transparent-bg-hint = 1
	GtkEntry::state-hint = 0

	GtkEntry::progress-border = { 2, 2, 2, 2 }
	GtkToolbar:: shadow-type = GTK_SHADOW_NONE
	GtkMenuBar:: shadow-type = GTK_SHADOW_NONE
	GtkMenuBar::window-dragging = 1

	GtkWidget::link-color = @link_color
	GtkWidget::visited-link-color = @text_color

   	GtkWindow::client-side-decorated = 1 # turn CSD on
	PanelToplevel ::client-side-decorated = 0 # turn CSD off for certain things
 	GtkPlug ::client-side-decorated = 0 # turn CSD off for certain things

	####################
	# Color Definitions
	####################
	fg[NORMAL]        = @fg_color
	fg[PRELIGHT]      = @fg_color
	fg[ACTIVE]        = @fg_color
	fg[SELECTED]      = @selected_fg_color
	fg[INSENSITIVE]   = darker (@bg_color)
	
	bg[NORMAL]        = @bg_color
	bg[PRELIGHT]      = shade (1.02, @bg_color)
	bg[ACTIVE]        = shade (0.8, @bg_color)
	bg[SELECTED]	  = @selected_bg_color
	bg[INSENSITIVE]   = @bg_color
	
	base[NORMAL]      = @base_color
	base[PRELIGHT]    = shade (0.95, @bg_color)
	base[ACTIVE]      = mix (0.7, @selected_bg_color, @bg_color)
	base[SELECTED]    = @selected_bg_color
	base[INSENSITIVE] = @bg_color

	text[NORMAL]      = @text_color
	text[PRELIGHT]    = @text_color
	text[ACTIVE]      = @selected_fg_color
	text[SELECTED]    = @selected_fg_color
	text[INSENSITIVE] = darker (@bg_color)

	engine "murrine" 
	{
		animation           = TRUE  # FALSE = disabled, TRUE = enabled
		arrowstyle          = 1     # 0 = normal arrows, 1 = filled arrows
		#border_colors      = { "#ffffff", "#ffffff" } # colors used on borders of many widgets
		border_shades       = { 1.2, 1.0 } # gradient to draw on border
		cellstyle           = 0
		comboboxstyle       = 1     # 0 = normal combobox, 1 = colorized combobox below arrow
		colorize_scrollbar  = FALSE  # FALSE = disabled, TRUE = enabled
		contrast            = 0.4   # 0.8 for less contrast, more than 1.0 for more contrast on borders
		default_button_color = "#DD4814"
		expanderstyle	= 1
		focus_color         = "#FE765E"
		focusstyle          = 3
		glazestyle          = 4     # 0 = flat, 1 = curved, 2 = concave, 3 = top-curved, 4 = beryl
		glow_shade          = 1.1   # sets glow amount for buttons or widgets
		glowstyle           = 0     # 0 = top, 1 = bottom, 2 = top and bottom, 3 = center (vertical), 4 = center (horizontal) 
		gradient_shades     = {1.2,1.0,1.0,0.9} # default: {1.1,1.0,1.0,1.1}
		handlestyle         = 1
		highlight_shade     = 1.0  # set highlight amount for buttons or widgets
		lightborder_shade   = 1.1   # sets lightborder amount for buttons or widgets
		lightborderstyle    = 0     # 0 = lightborder on top side, 1 = lightborder on all sides
		listviewheaderstyle = 1     # 0 = flat, 1 = glassy, 2 = raised
		listviewstyle       = 2     # 0 = nothing, 1 = dotted 2 = solid
		menubaritemstyle    = 0     # 0 = menuitem look, 1 = button look
		menubarstyle        = 0     # 0 = flat, 1 = glassy, 2 = gradient, 3 = striped
		menuitemstyle       = 0     # 0 = flat, 1 = glassy, 2 = striped
		menustyle           = 0     # 0 = no vertical menu stripe, 1 = display vertical menu stripe
		prelight_shade      = .95  # shade level for scrollbar's slider, comboboxstyle(1), and prelight state with gradient_colors
		progressbarstyle    = 0     # 0 = no stripes, 1 = diagonal stripes, 2 = vertical stripes 
		reliefstyle	    = 4     # 0 = flat, 1 = inset, 2 = shadow, 3 = shadow with gradient, 4 = stronger shadow with gradient
		rgba		    = FALSE # FALSE = disabled, TRUE = enabled
		roundness           = 3     # 0 = squared, 1 = old default, more will increase roundness
		scrollbarstyle      = 2     # 0 = nothing, 1 = circles, 2 = handles, 3 = diagonal stripes, 4 = diagonal stripes and handles, 5 = horizontal stripes, 6 = horizontal stripes and handles
		separatorstyle	    = 1
		shadow_shades 	    = { 0.8, 2.2 } # draw gradient on shadow of some widgets
		sliderstyle         = 1     # 0 = nothing added, 1 = handles
		spinbuttonstyle     = 0     # 0 = no seperator, 1 = with separator
		stepperstyle        = 1     # 0 = standard, 1 = integrated stepper handles, 2 = squared steppers with round slider
		textstyle           = 0     # 0 = normal text, 1 = inset
		toolbarstyle	    = 0     # 0 = flat, 1 = glassy, 2 = gradient
		trough_shades       = { 0.88, 2.0 } # draw gradient on trough of GtkScrollbar and GtkProgressbar
	}
}

style "selected" = "default"
{
	bg[NORMAL]   = shade (0.75, "#F7F5F2")
	bg[PRELIGHT] = shade (0.85, "#F7F5F2")
	bg[SELECTED] = shade (0.85, "#F7F5F2")
	bg[ACTIVE]   = shade (0.75, "#F7F5F2")
	bg[INSENSITIVE]   = mix (0.35, @selected_bg_color, "#F7F5F2")
}

style "dark"
{
	fg[NORMAL]      	= "#dfd8c8"
	fg[PRELIGHT]   	 	= "#fff"
	fg[ACTIVE]      	= "#fff"
	fg[SELECTED]    	= "#fff"
	fg[INSENSITIVE] 	= "#99958b"

	bg[NORMAL]		= "#3c3b37"
	bg[PRELIGHT]    	= shade (.65, @selected_bg_color)
	bg[ACTIVE]		= shade(.55, @selected_bg_color)
	bg[SELECTED]    	= shade(0.9,@selected_bg_color)
	bg[INSENSITIVE]		= "#3c3b37"

	base[NORMAL]		= @base_color
	base[PRELIGHT]		= shade (0.95, @bg_color)
	base[ACTIVE]		= shade (0.55, @bg_color)
	base[SELECTED]		= shade (1.0, @selected_bg_color)
	base[INSENSITIVE]	= @bg_color

	text[NORMAL]		= "#dfd8c8"
	text[PRELIGHT]		= @base_color
	text[ACTIVE]		= @base_color
	text[SELECTED]		= @base_color
	text[INSENSITIVE]	= mix (0.5, @bg_color, "#3c3b37")
}

style "wide"
{
	xthickness = 2
	ythickness = 2
}

style "wider"
{
	xthickness = 3
	ythickness = 3
}

style "entry" 
{
	xthickness = 3
	ythickness = 3

	bg[SELECTED] = mix (0.4, @selected_bg_color, @base_color)
	fg[SELECTED] = @text_color

	engine "murrine"
	{
		border_shades = {1.0, 1.0 }
		contrast = .8
	}
}

style "button" = "selected"
{
	xthickness = 4
	ythickness = 4

	bg[NORMAL]   = @button_bg_color
	bg[PRELIGHT] = shade (1.0, @button_bg_color)
	bg[SELECTED] = @button_bg_color
	bg[ACTIVE]   = shade (0.9, @button_bg_color)
	bg[INSENSITIVE]   = mix (0.3, @button_bg_color, @bg_color) 

	engine "murrine"
	{
#		contrast = .6
#		glow_shade = 1.20
		lightborder_shade = 3.0
		gradient_shades     = {1.2,0.9,0.9,0.78}
		shadow_shades 	    = { 0.8, 2.2 }
#		border_colors      = { "#919191", "#898989" } # colors used on borders of many widgets
		border_shades       = { .9, .8 } # gradient to draw on border

	}
}

style "toolbar" = "default"
{
	engine "murrine"
	{
		contrast = 0.0

	}
}

style "toolbar-item" = "toolbar"
{
}

style "notebook" = "wider"
{

	bg[ACTIVE]        = @bg_color

	engine "murrine"
	{
#		contrast = 0.6
		gradient_shades = {1.2,0.9,0.9,0.78}	#{1.1,1.06,0.92,0.85} 
		lightborder_shade = 1.5
	}
}

style "panel" = "dark"
{
	xthickness = 0
	ythickness = 0

	bg_pixmap[NORMAL] = "panel_bg.png"
        
	engine "murrine" 
	{
		border_colors = {@fg_color, @fg_color}
		border_shades = { 1.4, 1.2 }
		contrast = 1.0   				# 0.8 for less contrast, more than 1.0 for more contrast on borders
		glow_shade = 1.2  				# sets glow amount for buttons or widgets
		lightborder_shade = 1.4  			# sets lightborder amount for buttons or widgets
		lightborderstyle = 1     			# 0 = lightborder on top side, 1 = lightborder on all sides
	}
}

style "terminal" 
{
	text[NORMAL] = "#ffffff"
	base[NORMAL] = "#300a24"
	
	TerminalScreen::background-darkness = 0.95
}

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

	engine "murrine"
	{
	    	roundness = 0
	}
}

style "menu-item" = "menu"
{
	xthickness = 0
	ythickness = 5

	engine "murrine"
	{
	    	roundness = 0
	}
}

style "separator-menu-item"
{
	#GtkSeparatorMenuItem::horizontal-padding = 6
	GtkWidget::wide-separators = 1
	GtkWidget::separator-width = 1
	GtkWidget::separator-height = 2
	xthickness = 4
	ythickness = 0
	bg[NORMAL]= shade(0.4, @selected_bg_color)
}

# Based on the default style so that the colors from the button
# style are overriden again.
style "treeview"
{
}

style "treeview-header" = "button"
{
	xthickness = 2
	ythickness = 1

	engine "murrine"
	{
		contrast = .8
	}
}

style "tooltips"
{
	xthickness = 8
	ythickness = 5

	bg[NORMAL] = @tooltip_bg_color
	bg[SELECTED] = "#000000"
	fg[NORMAL] = @tooltip_fg_color
}

style "progressbar" 
{
	xthickness = 1
	ythickness = 1
	
	engine "murrine"
	{
		border_shades       	= { 1.0, 1.0} # draw a gradient on the border.
		border_colors       	= { "#FE765E", "#FE765E" }
		#contrast		= 1.0 
		glazestyle          	= 0     # 0 = flat, 1 = curved, 2 = concave, 3 = top-curved, 4 = beryl
		glow_shade          	= 1.14   # sets glow amount for buttons or widgets
		glowstyle           	= 0     # 0 = top, 1 = bottom, 2 = top and bottom, 3 = center (vertical), 4 = center (horizontal) 
		gradient_shades 	= {1.1,.9,.9,.8}
		#highlight_shade     	= 1.02  # set highlight amount for buttons or widgets
		#lightborder_shade   	= 1.2   # sets lightborder amount for buttons or widgets
		roundness		= 12
	}

	bg[NORMAL]	= shade (1.0, @bg_color)
	bg[PRELIGHT] 	= shade (1.2, @bg_color)
	bg[SELECTED] 	= "#FE765E"

	fg[PRELIGHT] 	= "#fff"
}

style "statusbar" = "default"
{
	xthickness = 4

	engine "murrine"
	{
	    	contrast = 1.2
	}
}

style "comboboxentry" 
{
	ythickness = 3
	xthickness = 3

	engine "murrine"
	{
		contrast = .8
	}
}

style "spinbutton" 
{
}

style "scale"
{
	GtkRange::slider-width = 14
	
	engine "murrine"
	{
		contrast		= 1.0
		handlestyle         = 1
		glazestyle          	= 0     # 0 = flat, 1 = curved, 2 = concave, 3 = top-curved, 4 = beryl
		glow_shade          	= 1.14   # sets glow amount for buttons or widgets
		glowstyle           	= 0     # 0 = top, 1 = bottom, 2 = top and bottom, 3 = center (vertical), 4 = center (horizontal) 
		highlight_shade     	= 1.12  # set highlight amount for buttons or widgets
		roundness		= 6
	}

	bg[NORMAL]	= shade (1.0, @bg_color)
	bg[PRELIGHT] 	= shade (1.06, @bg_color)
	bg[SELECTED] 	= "#FE765E"

}

style "hscale"
{
}

style "vscale"
{
}

style "scrollbar" = "default"
{
	engine "murrine"
	{
		border_shades       	= { .8, .6} # draw a gradient on the border.
		border_colors       	= { @bg_color, @bg_color }
		contrast		= .6 
		glazestyle          	= 0     # 0 = flat, 1 = curved, 2 = concave, 3 = top-curved, 4 = beryl
		glow_shade          	= 1.09   # sets glow amount for buttons or widgets
		glowstyle           	= 0     # 0 = top, 1 = bottom, 2 = top and bottom, 3 = center (vertical), 4 = center (horizontal) 
		highlight_shade     	= 1.12  # set highlight amount for buttons or widgets
		lightborder_shade   	= 1.2   # sets lightborder amount for buttons or widgets
		roundness		= 8
	}

	bg[NORMAL]	= shade (1.0, @bg_color)
	bg[PRELIGHT] 	= shade (1.06, @bg_color)
}

style "hscrollbar"
{
}

style "vscrollbar"
{
}

style "menubar" = "menu"
{
}

style "frame"
{
}

style "frame-title" = "frame"
{
}

style "nautilus-handle"
{
	GtkPaned::handle-size = 2
}

style "nautilus-location"
{
	bg[NORMAL] = mix(0.60, @bg_color, @selected_bg_color)
}

style "nautilus-sidebar" 
{
	GtkTreeView::even_row_color = @bg_color
	
}

style "radiocheck"
{
	bg[SELECTED] 	= "#FE765E"
	bg[NORMAL] 	= mix (0.3, @selected_bg_color, @bg_color)

	engine "murrine"
	{
	    	contrast = 0.6
	    	highlight_shade = 1.0
	    	lightborder_shade = 1.0
	    	gradient_shades = {1.5,1.3,1.0,0.9}
	}
}

style "applet-text" = "panel"
{
	fg[NORMAL] = @bg_color
}

style "window-title"
{
        base[NORMAL] = "#5c5b56"
        # bg[NORMAL] = "#ff0000"
        base[SELECTED] = "#3c3b37"

        # fg[NORMAL] = "#ffffff"

        GtkWindow::decoration-button-layout = "close,minimize,maximize:"
        GtkWindow::decoration-title-justification = "left"
        GtkWindow::decoration-titlebar-lower-padding = 7
	GtkWindow::decoration-titlebar-upper-padding = 4
	GtkWindow::decoration-border-width = 3
}
style "decoration-title-focused"
{
        fg[NORMAL] = "#ffffff"
}

style "decoration-title-unfocused"
{
        fg[NORMAL] = "#99958b"
}


style "window-button-restore"
{
        engine "pixmap"
        {
                image
                {
                        function = BOX
                        # recolorable = TRUE
                        detail = "button"
                        state = NORMAL
                        stretch = TRUE
                        file = "decorations/button_max_restore.png"
                }

                image
                {
                        function = BOX
                        recolorable = TRUE
                        detail = "button"
                        stretch = TRUE
                        state = PRELIGHT
                        file = "decorations/button_max_restore_prelight.png"
                }

                image
                {
                        function = BOX
                        recolorable = TRUE
                        detail = "button"
                        stretch = TRUE
                        state = ACTIVE
                        file = "decorations/button_max_restore_pressed.png"
                }

                image
                {
                        function = BOX
                        recolorable = TRUE
                        detail = "button"
                        stretch = TRUE
                        state = INSENSITIVE
                        file = "decorations/button_max_restore.png"
                }
        }
}


style "window-button-max"
{
        engine "pixmap"
        {
                image
                {
                        function = BOX
                        # recolorable = TRUE
                        detail = "button"
                        state = NORMAL
                        stretch = TRUE
                        file = "decorations/button_max_normal.png"
                }

                image
                {
                        function = BOX
                        recolorable = TRUE
                        detail = "button"
                        stretch = TRUE
                        state = PRELIGHT
                        file = "decorations/button_max_prelight.png"
                }

                image
                {
                        function = BOX
                        recolorable = TRUE
                        detail = "button"
                        stretch = TRUE
                        state = ACTIVE
                        file = "decorations/button_max_pressed.png"
                }

                image
                {
                        function = BOX
                        recolorable = TRUE
                        detail = "button"
                        stretch = TRUE
                        state = INSENSITIVE
                        file = "decorations/button_max_normal.png"
                }
        }
}

style "window-button-min"
{
        engine "pixmap"
        {
                image
                {
                        function = BOX
                        # recolorable = TRUE
                        detail = "button"
                        state = NORMAL
                        stretch = TRUE
                        file = "decorations/button_min_normal.png"
                }

                image
                {
                        function = BOX
                        recolorable = TRUE
                        detail = "button"
                        stretch = TRUE
                        state = PRELIGHT
                        file = "decorations/button_min_prelight.png"
                }

                image
                {
                        function = BOX
                        recolorable = TRUE
                        detail = "button"
                        stretch = TRUE
                        state = ACTIVE
                        file = "decorations/button_min_pressed.png"
                }

                image
                {
                        function = BOX
                        recolorable = TRUE
                        detail = "button"
                        stretch = TRUE
                        state = INSENSITIVE
                        file = "decorations/button_min_normal.png"
                }
        }
}

style "window-button-close"
{
        engine "pixmap"
        {
                image
                {
                        function = BOX
                        # recolorable = TRUE
                        detail = "button"
                        state = NORMAL
                        stretch = TRUE
                        file = "decorations/button_close_normal.png"
                }

                image
                {
                        function = BOX
                        recolorable = TRUE
                        detail = "button"
                        stretch = TRUE
                        state = PRELIGHT
                        file = "decorations/button_close_prelight.png"
                }

                image
                {
                        function = BOX
                        recolorable = TRUE
                        detail = "button"
                        stretch = TRUE
                        state = ACTIVE
                        file = "decorations/button_close_pressed.png"
                }

                image
                {
                        function = BOX
                        recolorable = TRUE
                        detail = "button"
                        stretch = TRUE
                        state = INSENSITIVE
                        file = "decorations/button_close_normal.png"
                }
        }
}

style "window-button-max-unfocused"
{
        engine "pixmap"
        {
                image
                {
                        function = BOX
                        # recolorable = TRUE
                        detail = "button"
                        state = NORMAL
                        stretch = TRUE
                        file = "decorations/button_max_normal_unfocused.png"
                }

                image
                {
                        function = BOX
                        recolorable = TRUE
                        detail = "button"
                        stretch = TRUE
                        state = PRELIGHT
                        file = "decorations/button_max_prelight_unfocused.png"
                }

                image
                {
                        function = BOX
                        recolorable = TRUE
                        detail = "button"
                        stretch = TRUE
                        state = ACTIVE
                        file = "decorations/button_max_pressed.png"
                }

                image
                {
                        function = BOX
                        recolorable = TRUE
                        detail = "button"
                        stretch = TRUE
                        state = INSENSITIVE
                        file = "decorations/button_max_normal.png"
                }
        }
}

style "window-button-restore-unfocused"
{
        engine "pixmap"
        {
                image
                {
                        function = BOX
                        # recolorable = TRUE
                        detail = "button"
                        state = NORMAL
                        stretch = TRUE
                        file = "decorations/button_max_normal_restore_unfocused.png"
                }

                image
                {
                        function = BOX
                        recolorable = TRUE
                        detail = "button"
                        stretch = TRUE
                        state = PRELIGHT
                        file = "decorations/button_max_prelight_restore_unfocused.png"
                }

                image
                {
                        function = BOX
                        recolorable = TRUE
                        detail = "button"
                        stretch = TRUE
                        state = ACTIVE
                        file = "decorations/button_max_normal_restore_unfocused.png"
                }

                image
                {
                        function = BOX
                        recolorable = TRUE
                        detail = "button"
                        stretch = TRUE
                        state = INSENSITIVE
                        file = "decorations/button_max_normal_restore_unfocused.png"
                }
        }
}


style "window-button-min-unfocused"
{
        engine "pixmap"
        {
                image
                {
                        function = BOX
                        # recolorable = TRUE
                        detail = "button"
                        state = NORMAL
                        stretch = TRUE
                        file = "decorations/button_min_normal_unfocused.png"
                }

                image
                {
                        function = BOX
                        recolorable = TRUE
                        detail = "button"
                        stretch = TRUE
                        state = PRELIGHT
                        file = "decorations/button_min_prelight_unfocused.png"
                }

                image
                {
                        function = BOX
                        recolorable = TRUE
                        detail = "button"
                        stretch = TRUE
                        state = ACTIVE
                        file = "decorations/button_min_pressed.png"
                }
        }
}

style "window-button-close-unfocused"
{
        engine "pixmap"
        {
                image
                {
                        function = BOX
                        # recolorable = TRUE
                        detail = "button"
                        state = NORMAL
                        stretch = TRUE
                        file = "decorations/button_close_normal_unfocused.png"
                }

                image
                {
                        function = BOX
                        recolorable = TRUE
                        detail = "button"
                        stretch = TRUE
                        state = PRELIGHT
                        file = "decorations/button_close_prelight_unfocused.png"
                }

                image
                {
                        function = BOX
                        recolorable = TRUE
                        detail = "button"
                        stretch = TRUE
                        state = ACTIVE
                        file = "decorations/button_close_pressed.png"
                }

                image
                {
                        function = BOX
                        recolorable = TRUE
                        detail = "button"
                        stretch = TRUE
                        state = INSENSITIVE
                        file = "decorations/button_close_normal.png"
                }
        }
}


#########################################
# Matches
#########################################

class "GtkWindow"    style "window-title" #CSD

widget "ido-offscreen-scale" style "menubar"
widget "*IdoEntryMenuItem*" style "wide"

# default style is applied to every widget
class "GtkWidget"    style "default"


widget_class "*<GtkToolbar>*" 				style "toolbar"
#class "GtkToolbar"   					style "toolbar" 
class "GtkRange"     					style "wide"
class "GtkFrame"     					style "wide"
class "GtkSeparator" 					style "wide"
class "GtkEntry"     					style "entry"

class "GtkSpinButton"  					style "spinbutton"
class "GtkScale"       					style "scale"
class "GtkVScale"      					style "vscale"
class "GtkHScale"      					style "hscale"
class "GtkScrollbar"   					style "scrollbar"
class "GtkVScrollbar"  					style "vscrollbar"
class "GtkHScrollbar"  					style "hscrollbar"

class "GtkRadioButton"					style:highest "radiocheck"	
class "GtkCheckButton"					style:highest "radiocheck"	

widget_class "*<GtkNotebook>*<GtkEventBox>"     	style "notebook"
widget_class "*<GtkNotebook>*<GtkDrawingArea>"		style "notebook"
widget_class "*<GtkNotebook>*<GtkLayout>"       	style "notebook"
widget_class "*<GtkNotebook>*<GtkViewport>"		style "notebook"
widget_class "*<GtkNotebook>*<GtkScrolledWindow>"	style "notebook"

widget_class "*<GtkButton>"      			style "button"
widget_class "*<GtkNotebook>"    			style "notebook"
widget_class "*<GtkStatusbar>*"  			style "statusbar"

widget_class "*<GtkComboBoxEntry>*"			style:highest "comboboxentry"
widget_class "*<GtkComboBox>*"         			style:highest "comboboxentry"
widget_class "*<GtkOptionMenu>*"         		style:highest "comboboxentry"
widget_class "*<GtkCombo>*"         			style:highest "comboboxentry"

widget_class "*<GtkMenuBar>*"           		style "menubar"
widget_class "*<GtkMenu>*"              		style "menu"
widget_class "*<GtkMenuItem>*"          		style "menu-item"
widget_class "*<GtkSeparatorMenuItem>*" 		style "separator-menu-item"
#widget_class "*<GtkCheckMenuItem>*" 			style "radiocheck"
#widget_class "*<GtkRadioMenuItem>*" 			style "radiocheck"

widget_class "*.<GtkFrame>.<GtkLabel>" 			style "frame-title"
#widget_class "*.<GtkTreeView>*"        		style "treeview"

widget_class "*<GtkProgress>"				style "progressbar"
widget_class "*<GtkProgressBar>"       			style "progressbar"

# Treeview header
widget_class "*.<GtkTreeView>.<GtkButton>" 		style "treeview-header"
widget_class "*.<GtkCTree>.<GtkButton>"    		style "treeview-header"
widget_class "*.<GtkList>.<GtkButton>"     		style "treeview-header"
widget_class "*.<GtkCList>.<GtkButton>"    		style "treeview-header"

# Workarounds for Evolution
widget_class "*.ETable.ECanvas"    			style "treeview-header"
widget_class "*.ETree.ECanvas"    			style "treeview-header"

# Theme panel elements
widget "*PanelWidget*" 					style "panel"
widget "*PanelApplet*" 					style "panel"
widget "*fast-user-switch*"				style "panel" # workaround for Fast User Switch applet
class "PanelApp*" 					style "panel"
class "PanelToplevel*" 					style "panel"
widget_class "*notif*" 					style "panel"
widget_class "*Notif*" 					style "panel"
widget_class "*CPUFreqApplet*" 				style:highest "applet-text" # CPU Frequency Applet

#XFCE panel
widget_class "*notif*"		style "panel"
widget_class "*Notif*"		style "panel"
widget_class "*Tray*"		style "panel"
widget_class "*tray*"		style "panel"
widget "*Xfce*Panel*"		style "panel"
class "*Xfce*Panel*"		style "panel"

#Fix textboxes on toolbars (memenu LP:#532843)
style "text-dark" = "default" 
{
}

widget_class "*<GtkToolbar>*<GtkEntry>*" 		style "text-dark"
widget_class "*<GtkMenu>*<GtkEntry>*" 			style "text-dark"

# The window of the tooltip is called "gtk-tooltip"
################################
# FIXME:
# This will not work if one embeds eg. a button into the tooltip.
# As far as I can tell right now we will need to rework the theme
# quite a bit to get this working correctly.
# (It will involve setting different priorities, etc.)
################################
widget "gtk-tooltip*" 					style "tooltips"

###################################################
# Special cases and work arounds
###################################################

# Special case the nautilus-extra-view-widget
# ToDo: A more generic approach for all applications that have a widget like this.
widget "*.nautilus-extra-view-widget" 			style : highest "nautilus-location"

# Nautilus sidebar
widget_class "*Nautilus*Places*Sidebar*"    	style "nautilus-sidebar"
widget_class "*Nautilus*Side*.GtkWidget"    	style "nautilus-sidebar"
widget "*Nautilus*Splitter"                     style "nautilus-handle"

# Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
# Note that the work around assumes that the combobox is _not_ in
# appears-as-list mode.
# Similar hack also in the menuitem style.
# This style does not affect GtkComboBoxEntry, it does have an effect
# on comboboxes in appears-as-list mode though.
style "combobox-text-color-workaround"
{
	text[NORMAL]      = @fg_color
	text[PRELIGHT]    = @fg_color
	text[ACTIVE]      = @fg_color
	text[SELECTED]    = @selected_fg_color
	text[INSENSITIVE] = shade (0.65, @bg_color)
}
widget_class "*.<GtkComboBox>.<GtkCellView>"		style "combobox-text-color-workaround"

style "menuitem-text-is-fg-color-workaround"
{
	text[NORMAL]        = "#dfd8c8"
	text[PRELIGHT]      = @base_color
	text[SELECTED]      = @base_color
	text[ACTIVE]        = @base_color
	text[INSENSITIVE]   = "#99958b"
}

widget "*.gtk-combobox-popup-menu.*"   			style "menuitem-text-is-fg-color-workaround"

# Work around the usage of GtkLabel inside GtkListItems to display text.
# This breaks because the label is shown on a background that is based on the
# base color set.
style "fg-is-text-color-workaround"
{
	fg[NORMAL]      = @text_color
	fg[PRELIGHT]    = @text_color
	fg[ACTIVE]      = @selected_fg_color
	fg[SELECTED]    = @selected_fg_color
	fg[INSENSITIVE] = shade (0.65, @bg_color)
}

widget_class "*<GtkListItem>*" 				style "fg-is-text-color-workaround"

# The same problem also exists for GtkCList and GtkCTree
# Only match GtkCList and not the parent widgets, because that would also change the headers.
widget_class "*<GtkCList>" 				style "fg-is-text-color-workaround"

style "evo-new-button-workaround"
{

	engine "murrine"
	{
		toolbarstyle = 0
	}
}

widget "*swt*toolbar*"	style "default"
class "TerminalScreen" style "terminal"

widget_class "*<GtkToolbar>*" style "toolbar"
