# Author: Simon Steinbeiß
# Theme: Greybird
# based on "Bluebird" by Simon Steinbeiß and Pasi Lallinaho
# Description: As is the original theme, this theme is 100% free and open source.

gtk_color_scheme	= "bg_color:#CECECE\nselected_bg_color:#9db6cd\nbase_color:#fcfcfc" # Background, base.
gtk_color_scheme	= "fg_color:#3C3C3C\nselected_fg_color:#ffffff\ntext_color:#000000" # Foreground, text. 
gtk_color_scheme	= "tooltip_bg_color:#000000\ntooltip_fg_color:#E1E1E1" # Tooltips.
gtk_color_scheme	= "link_color:#74a0c6" # Hyperlinks
gtk_color_scheme	= "panel_bg:#686868" # Panel bg color
gtk_color_scheme	= "fm_color:#F7F7F7" # Color used in Nautilus and Thunar.
gtk_color_scheme	= "bg_color_dark:#686868\ntext_color_dark:#FFF"

gtk-icon-sizes          = "panel-applications-menu=24,24:panel-menu=24,24:panel=16,16:gtk-button=16,16"
gtk-button-images	= 0					# Disables icons for buttons with text
gtk-toolbar-style	= 0					# Disables text in toolbar
gtk-auto-mnemonics	= 1					# Disables ugly lines under menu items

####################
## Default Styles ##
####################

style "murrine-default"
{
	GnomeHRef		::link_color  				= @link_color		
	GtkHTML			::link-color				= @link_color
 	GtkIMHtmlr		::hyperlink-color 			= @link_color
	GtkIMHtml		::hyperlink-color			= @link_color
	GtkWidget		::link-color				= @link_color
	GtkWidget		::visited-link-color			= @text_color

	GtkButton		::child-displacement-x 			= 1
	GtkButton		::child-displacement-y 			= 1
	GtkButton		::default-border       			= { 0, 0, 0, 0 }
	GtkCheckButton		::indicator-size       			= 15

	GtkEntry		::honors-transparent-bg-hint 		= 1
	GtkEntry		::progress-border			= { 3, 3, 3, 3 }
	GtkEntry		::state-hint 				= 0

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

	GtkMenu			::horizontal-padding			= 0
	GtkMenu			::vertical-padding			= 0

	GtkPaned		::handle-size          			= 3

	GtkNotebook		::tab-overlap				=-2

	GtkProgressBar		::min-vertical-bar-width		= 10
	GtkProgressBar		::min-horizontal-bar-height		= 10

	GtkRange		::trough-border				= 2
	GtkRange		::slider-width				= 9
	GtkRange		::stepper-size				= 13
	GtkRange		::stepper_spacing			= 0
 
	GtkScale		::slider-length				= 13
	GtkScale		::slider-width				= 13
	GtkScale		::trough-side-details			= 1

	GtkScrollbar		::min-slider-length			= 50
	GtkScrollbar		::slider-width				= 9
	GtkScrollbar		::trough-border				= 3
	#GtkScrollbar		::trough-under-steppers			= 0
	GtkScrollbar		::has-backward-stepper 			= 1
	#GtkScrollbar		::arrow-scaling				= 0.8
	#GtkScrollbar		::has_secondary_backward_stepper	= 1 
	GtkScrollbar		::has-forward-stepper			= 1 
	#GtkScrollbar		::has_secondary_forward_stepper		= 0 

	GtkScrolledWindow	::scrollbar-spacing			= 0
	GtkScrolledWindow	::scrollbars-within-bevel		= 1
	#GtkTable		::scrollbars-within-bevel		= 1

	GtkMenuBar		::internal-padding			= 0
	GtkMenuBar		::window-dragging			= 1

	GtkExpander		::expander-size				= 12
	GtkToolbar		::internal-padding			= 0
	GtkTreeView		::expander-size				= 10
	GtkTreeView		::vertical-separator			= 0

	GtkWidget		::new-tooltip-style			= 1
	GtkWidget		::focus-line-width			= 1
	GtkWidget		::focus-padding				= 0
	
	GtkWindow		::resize-grip-height			= 13
        GtkWindow		::resize-grip-width			= 13

	xthickness = 1
	ythickness = 1

	fg[NORMAL]        = @fg_color
	fg[PRELIGHT]      = @fg_color
	fg[SELECTED]      = @selected_fg_color
	fg[ACTIVE]        = @fg_color
	fg[INSENSITIVE]   = darker (@bg_color)

	bg[NORMAL]        = @bg_color
	bg[PRELIGHT]      = shade (1.02, @bg_color)
	bg[SELECTED]	  = @selected_bg_color
	bg[INSENSITIVE]   = @bg_color
	bg[ACTIVE]        = shade (1.04, @bg_color)

	base[NORMAL]      = @base_color
	base[PRELIGHT]    = shade (0.95, @bg_color)
	base[ACTIVE]      = shade (0.92, @selected_bg_color)
	base[SELECTED]    = shade (0.93, @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
		arrowstyle          = 2                 # 0 = normal arrows, 1 = filled arrows		
		border_shades       = { 1.2, 1.0 }      # gradient to draw on border
		cellstyle	    = 0
		colorize_scrollbar  = FALSE		
		comboboxstyle       = 0                 # 0 = normal combobox, 1 = colorized combobox below arrow		
		contrast            = 0.4               # 0.8 for less contrast, more than 1.0 for more contrast on borders
		expanderstyle	    = 0
		focus_color         = mix (0.1, @bg_color, shade (0.7, @selected_bg_color))
		#focus_color         = shade (1.1, @selected_bg_color) #mix (0.1, @bg_color, shade (1.1, @selected_bg_color))
		focusstyle	    = 3
		glazestyle          = 1                 # 0 = flat highlight, 1 = curved highlight, 2 = concave style, 3 = top curved highlight, 4 = beryl highlight
		gradient_shades     = {1.2,1.0,1.0,0.9} #{1.1,1.0,1.0,0.87}
		glowstyle           = 4                 # 0,1,2,3,4
		glow_shade          = 1.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       = 1                 # 0 = nothing, 1 = dotted
		menubaritemstyle    = 0                 # 0 = menuitem look, 1 = button look
		menubarstyle        = 2                 # 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    = 1                 # 0 = nothing, 1 = stripes, 2 = lines
		reliefstyle         = 3                 # 0 = flat, 1 = inset, 2 = shadow
		rgba                = FALSE             # FALSE = disabled, TRUE = enabled
		roundness           = 3                 # 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
		separatorstyle      = 1                 # 0 = Hard seperators 1 = Smooth seperators
		sliderstyle         = 0                 # 0 = nothing added, 1 = handles
		stepperstyle        = 1                 # 0 = standard, 1 = integrated stepper handles, 2 = unknown
		shadow_shades       = { 0.8, 2.2 }      # gradient for shadows.		
		textstyle           = 0                 # 0 = normal text, 1 = inset		
		toolbarstyle        = 2                 # 0 = flat, 1 = glassy, 2 = gradient		
		trough_shades	    = { 0.75, 0.9 }	# draw gradient on trough of GtkScrollbar and GtkProgressbar
		trough_border_shades = { 0.9, 0.7 }	}
}

### RESIZE GRIP PIXMAP Proof of concept ###

style "resize-grip" #= "murrine-default"
{
	engine "pixmap"	{
		image {
			function	= RESIZE_GRIP
			recolorable	= FALSE
			detail		= "statusbar"
			overlay_file	= "resize_grip.png"
			overlay_border	= {0,0,0,0 }
			overlay_stretch	= FALSE
		}
        }
}

style "murrine-paned" = "murrine-default"
{
	engine "murrine"
	{
		contrast = 1.0
	}
}

### THEME MODULES ###

style "evolution-hack" = "murrine-default" # Hacks for Evolution Mail.
{	
	bg[NORMAL]     = shade (1.14, @bg_color) # Color for evo treeview headers.
	bg[PRELIGHT]   = shade (1.18, @bg_color) # Color for evo treeview header prelight.
	bg[ACTIVE]     = shade (0.75, @bg_color) # Color for unfocused evo selected items.
	bg[SELECTED]   = @selected_bg_color      # Color for evo selected items.
	fg[ACTIVE]     = @selected_fg_color      # Color for evo active text.
	fg[SELECTED]   = @selected_fg_color      # Color for evo selected text.
}

style "murrine-dark" {
	
	GtkMenuBar	:: shadow-type		= GTK_SHADOW_NONE
	
	bg[NORMAL]	= @bg_color_dark
	bg[ACTIVE]	= shade (0.7, @bg_color_dark)
	bg[PRELIGHT]	= shade (0.7, @bg_color_dark)
	bg[SELECTED]	= shade (0.6, @bg_color_dark)
	
	fg[NORMAL]	= @text_color_dark
	fg[PRELIGHT]	= @text_color_dark
	fg[ACTIVE]	= @text_color_dark
	fg[SELECTED]	= @text_color_dark
	
	text[NORMAL]   = @text_color_dark
	text[PRELIGHT] = @text_color_dark
	text[ACTIVE]   = @text_color_dark
	text[SELECTED]   = @text_color_dark
	
	engine "murrine" 
	{
		roundness = 0 # Roundness of menu items.
	}
}

style "murrine-wide-dark" = "murrine-dark"
{
	ythickness        = 2
	xthickness        = 4
}

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

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

style "murrine-angled"
{
	engine "murrine" 
	{
		roundness = 0 # Roundness of menu items.
	}
}

style "murrine-entry" = "murrine-wider" {

	bg[SELECTED] = mix (0.4, @selected_bg_color, @base_color)
	base[INSENSITIVE] = shade (1.06, @bg_color)
	fg[SELECTED] = @text_color
	engine "murrine" {
		contrast      = 0.4
		reliefstyle   = 4
		border_shades = {1.03,0.8}
		shadow_shades = {0.5,0.0}
	}
}

style "murrine-button" = "murrine-wider"
{	
	bg[NORMAL]        = shade (1.02, @bg_color) 
	bg[PRELIGHT]      = mix(0.3, @bg_color, shade (1.3, @selected_bg_color))
	bg[ACTIVE]        = shade (0.85, @bg_color)
	bg[SELECTED]      = shade (0.5, @selected_bg_color)  
	bg[INSENSITIVE]   = shade (0.95, @bg_color)

  	engine "murrine" 
	{
		contrast            = 0.8
		highlight_shade     = 1.0
		lightborder_shade   = 1.1
		gradient_shades     = {1.1,1.05,0.95,0.95} #{1.3,1.10,0.95,0.92} 
		border_shades       = { 1.1, 0.9 }
		shadow_shades       = {0.5,0.0}
		reliefstyle         = 3
		roundness	    = 2
	}
}

style "murrine-notebook"
{
	bg[NORMAL]	= shade (1.05, @bg_color) # Tab background.
	bg[ACTIVE]	= shade (0.85, @bg_color) # Unfocused tab background.
	#bg[NORMAL]	= @base_color
	engine "murrine" 
	{
		roundness       = 3
		contrast        = 1.1
	}
}

style "murrine-menu"
{
	#ythickness        = 2
	#xthickness        = 4
	GtkMenuBar	:: shadow-type		= GTK_SHADOW_NONE
	
	bg[SELECTED]      = shade (0.85, @selected_bg_color)
	bg[NORMAL]        = @bg_color
	bg[PRELIGHT]      = shade (0.85, @selected_bg_color)
	bg[ACTIVE]        = @bg_color
	bg[INSENSITIVE]   = @bg_color
	fg[NORMAL]        = @fg_color # Color for normal text.
	fg[PRELIGHT]      = @base_color
	fg[SELECTED]      = @base_color
	fg[ACTIVE]        = @base_color
	fg[INSENSITIVE]   = shade (0.75, @bg_color) # Text color for non-interactive menu items
	text[NORMAL]      = @text_color # Color for menu-item radio/checks.
	base[NORMAL]      = @bg_color # Color for menu-item radio/checks background.
	text[PRELIGHT]    = @base_color
	text[SELECTED]    = @base_color
	text[ACTIVE]      = @base_color
	text[INSENSITIVE] = @text_color
	
	engine "murrine" 
	{
		roundness = 0 # Roundness of menu items.
		contrast = 0.9
	}
}


style "murrine-menubar" = "murrine-menu" {
	bg[SELECTED]	= shade (0.7, @bg_color_dark)
}

style "menubar-menuitem"
{
	#ythickness        = 2
	#xthickness        = 4
	bg[PRELIGHT]   = @selected_bg_color
	bg[SELECTED]   = @selected_bg_color
	fg[NORMAL]     = @base_color
	fg[PRELIGHT]   = @base_color
	fg[SELECTED]   = @base_color
	text[NORMAL]   = @base_color
	text[PRELIGHT] = @base_color
	text[SELECTED] = @base_color
}

style "menubar-menuitem-prelight"
{
	fg[PRELIGHT] = @base_color
}

style "murrine-treeview"
{
  	engine "murrine" 
	{
		roundness = 0
		gradient_shades     = {1.1,1.1,1.1,1.0}
	}
}

style "murrine-treeview-header" = "murrine-button"
{
	xthickness   = 2
	ythickness   = 1
	
	bg[NORMAL]	 = shade (1.14, @bg_color)  # Color for treeview headers.
	bg[PRELIGHT] = shade (0.98, @bg_color)  # Color for treeview header prelight.
	bg[ACTIVE]   = shade (0.85, @bg_color)  # Color for pressed-treeview.
  	
	engine "murrine" 
	{
		roundness = 0  # This makes treeview progressbars square.
		gradient_shades     = {0.98,1.0,1.3,1.35}
	}
}

style "murrine-frame-title"
{
	fg[NORMAL] = lighter (@fg_color)
}

style "murrine-tooltips" = "murrine-wider"
{
	xthickness = 7
	ythickness = 4

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

	engine "murrine"
	{
		roundness	= 0
		trough_shades	= { 0.15, 0.3 }
	}
}

style "murrine-progressbar"
{
	xthickness   = 0
	ythickness   = 0

	fg[PRELIGHT] = @selected_fg_color
	bg[NORMAL]   = shade (1.05, @bg_color)
	bg[SELECTED]	= mix (0.4, @bg_color, shade (0.9, @selected_bg_color))

	engine "murrine" {
		gradient_shades = {1.15,1.05,1.0,0.95}
		trough_shades	= {0.95, 1.15}
		trough_border_shades	= { 0.8, 0.7 }
		roundness 	= 4
		contrast	= 0.8
		border_shades	= { 1.0, 0.8 }
		lightborder_shade   = 1.0
		glowstyle	= 0
		glow_shade	= 1.0
	}
}

style "murrine-scrollbar" {
	
	GtkScrollbar::stepper-size	= 0
	GtkScrollbar::arrow-scaling	= 0.0
	
	bg[NORMAL]	= shade (1.3, @base_color)
	bg[SELECTED]	= shade (0.90, @bg_color)
	bg[ACTIVE]	= shade (1.75, @base_color)
	bg[PRELIGHT]	= shade (0.55, @bg_color)
	bg[INSENSITIVE]	= shade (0.75, @bg_color)
	
	engine "murrine" {
		#arrowstyle	= 0
		colorize_scrollbar = TRUE
		roundness	= 10
		border_shades	= {0.80, 0.80}
		trough_shades	= {1.1, 1.3}
		contrast	= 0.0
		gradient_shades	= {1.2,1.2,1.15,1.15}
		#prelight_shade	= 0.9
	}
}

style "murrine-statusbar"
{
	xthickness = 2
}

style "murrine-comboboxentry"
{
	text[NORMAL]		= @text_color
	text[PRELIGHT]		= @text_color
	
	fg[NORMAL]	= @text_color
	fg[PRELIGHT]	= @text_color
	
	engine "murrine"
	{
		contrast      = 0.4
		reliefstyle   = 4
		border_shades = {1.03,0.8}
		shadow_shades = {0.5,0.0}
	}
}

style "murrine-combo" = "murrine-comboboxentry"
{
	bg[ACTIVE] = shade (0.85, @bg_color) # Color for pressed-spinbuttons.
}

style "murrine-scale" = "murrine-button"
{
	GtkWidget	::focus-line-width	= 0
	GtkWidget	::focus-padding		= 2
	bg[ACTIVE]				= @base_color
	bg[NORMAL]				= @panel_bg
	bg[PRELIGHT]				= shade (0.5, @panel_bg)
	bg[INSENSITIVE]				= @panel_bg
	bg[SELECTED]				= @panel_bg
	
	engine "murrine"
	{
		roundness 		= 5
		border_shades		= { 1.0, 1.0 }
		contrast		= 0.5
		trough_shades		= { 0.8, 0.8 }
		trough_border_shades	= { 0.9, 0.9 }
		highlight_shade		= 1.00
		lightborder_shade	= 1.7
		gradient_shades		= {1.0,1.0,1.0,1.0}
		border_shades		= { 1.0, 1.0 }
		shadow_shades		= { 0.5, 0.5 }
	}
}

style "murrine-scale-dark" = "murrine-scale"
{
	bg[ACTIVE]				= @panel_bg
	bg[NORMAL]				= @text_color_dark
	bg[PRELIGHT]				= shade (0.5, @panel_bg)
	bg[INSENSITIVE]				= @text_color_dark
	bg[SELECTED]				= @text_color_dark
	engine "murrine"
	{
		roundness 		= 5
	}
}

style "murrine-hscale" = "murrine-scale"
{
}

style "murrine-vscale" = "murrine-scale"
{
}

style "murrine-nautilus-location" # Workaround for nautilus' messages.
{
	bg[NORMAL] = shade (1.25, @selected_bg_color)
}

style "murrine-radiocheck"
{
	bg[NORMAL]	= shade (1.06, @bg_color) 
	bg[PRELIGHT]	= shade (1.06, @bg_color)  
	bg[ACTIVE]	= shade (0.85, @bg_color)
	bg[SELECTED]	= shade (1.0, @selected_bg_color)  
	bg[INSENSITIVE]	= shade (0.95, @bg_color)
	fg[INSENSITIVE] = shade (0.55, @bg_color)
  	engine "murrine" 
	{
		contrast		= .8
		lightborder_shade	= 1.9
	}
}

style "murrine-toolbar" = "murrine-default"
{
	bg[NORMAL] = @bg_color
	engine "murrine" {
		contrast			= 1.13
		toolbarstyle			= 1
		lightborder_shade		= 1.0
		gradient_shades     		= {1.0,0.94,0.94,0.88}
	}
}

style "xfce-header"
{
	bg[NORMAL]	 = shade (0.9, @bg_color)
	base[NORMAL]	 = shade (1.18, @bg_color)
	engine "murrine" {
		textstyle	= 1
	}
}

style "xfdesktop-windowlist" #= "murrine-menu"
{
	bg[NORMAL]	= @base_color
	fg[INSENSITIVE]   = shade (0.95, @base_color)
	text[INSENSITIVE]   = shade (0.95, @base_color)
}


style "tabwin" = "murrine-dark"
{
	Xfwm4TabwinWidget::border-width = 1
	Xfwm4TabwinWidget::icon-size = 64
	bg[NORMAL]	= "#222"
	bg[SELECTED]	= "#424242"
	engine "murrine"
	{
		focusstyle = 0
	}
}

style "murrine-calendar" = "murrine-dark"
{
	base[NORMAL]	= @bg_color_dark
	base[SELECTED]    = shade (0.65, @bg_color_dark)
	base[ACTIVE]    = shade (0.65, @bg_color_dark)
	fg[ACTIVE]	= "#FFFFFF"
	bg[NORMAL]   = shade (0.2, @text_color_dark)
}

###############################################################################
# The following part of the gtkrc applies the different styles to the widgets.
###############################################################################

class "GtkWindow*" style "resize-grip"

# Murrine default style is applied to every widget.
class "GtkWidget"    style "murrine-default"

# Increase the x/ythickness in some widgets.
class "GtkFrame"     style "murrine-wide"
class "GtkEntry"     style "murrine-entry"
class "GtkSeparator" style "murrine-wide"
class "GtkCalendar"  style "murrine-wide"
class "GtkToolbar"   style "murrine-toolbar"
class "GtkHandleBox*" style "murrine-toolbar"
class "GtkStatusbar" style "resize-grip"

class "GtkSpinButton"  style "murrine-combo"
class "GtkScale"       style "murrine-scale"
class "GtkVScale"      style "murrine-vscale"
class "GtkHScale"      style "murrine-hscale"

class "GtkScrollbar"   style "murrine-scrollbar"
class "GtkVScrollbar"  style "murrine-scrollbar"
class "GtkHScrollbar"  style "murrine-scrollbar"

class "GtkRadio*"	style "murrine-radiocheck"
class "GtkCheck*"	style "murrine-radiocheck"

# General matching following, the order is choosen so that the right styles override each other eg. progressbar needs to be more important then the menu match.

widget_class "*<GtkNotebook>*<GtkEventBox>"     style "murrine-notebook"
widget_class "*<GtkNotebook>*<GtkDrawingArea>"  style "murrine-notebook"
widget_class "*<GtkNotebook>*<GtkLayout>"       style "murrine-notebook"
widget_class "*<GtkNotebook>*<GtkLabel>"	style "murrine-notebook"

#widget_class "*GtkVBox.GtkFrame.GtkTable"	style "murrine-angled" ##(GtkVBox.GtkFrame.GtkTable.GtkVScrollbar)
#widget_class "*GtkTable*"	style "murrine-angled" #GtkWindow.GtkVBox.GtkHBox.GtkTable.GtkVBox.GtkNotebook.GtkTable.GtkVPaned.GtkVScrollbar
#widget_class "*GtkTable*GtkVScrollbar"	style "murrine-scrollbar"
#widget_class "*GtkTable*GtkHScrollbar"	style "murrine-scrollbar"

widget_class "*<GtkButton>"      style "murrine-button"
widget_class "*<GtkNotebook>"    style "murrine-notebook"
widget_class "*<GtkStatusbar>*"  style "murrine-statusbar"
#widget "*Gnumeric*GtkVBox.GtkNotebook"	style "murrine-borderless"

#widget_class "GimpDisplayShell*GtkTable*" style "murrine-default"
#widget_class "*GimpStatusbar*" style "murrine-default"
#widget_class "*Gnumeric*"	style "murrine-borderless"

widget_class "*<GtkComboBoxEntry>*" style "murrine-comboboxentry"
widget_class "*<GtkCombo>*"         style "murrine-combo"

widget_class "*<GtkMenuBar>.<GtkMenuItem>*" style "menubar-menuitem"
widget_class "*<GtkMenu>*"              style "murrine-menu"
widget_class "*<GtkMenuBar>*"		style "murrine-menu"
# Scale widget in menus (e.g. ubuntu's sound indicator)
widget_class "*<GtkMenuItem>.*.<GtkScale>" style "murrine-scale"

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

widget_class "*GtkCalendar*"	style "murrine-calendar"

widget_class "*GtkHPaned" style "murrine-paned"
widget_class "*GtkVPaned" style "murrine-paned"

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

widget_class "*<GtkRadioButton>*"		style "murrine-radiocheck"
widget_class "*<GtkCheckButton>*"		style "murrine-radiocheck"

# Treeview header
widget_class "*.<GtkTreeView>.<GtkButton>" style "murrine-treeview-header"
widget_class "*.<GtkCTree>.<GtkButton>"    style "murrine-treeview-header"
widget_class "*.<GtkList>.<GtkButton>"     style "murrine-treeview-header"
widget_class "*.<GtkCList>.<GtkButton>"    style "murrine-treeview-header"
widget_class "*.<GtkCMCTree>.<GtkButton>"    style "murrine-treeview-header" # Claws-Mail treeview-headers
widget_class "*.<GtkCMCList>.<GtkButton>"    style "murrine-treeview-header" # Claws-Mail treeview-headers
widget_class "*GnmSimpleCanvas*"		style "murrine-treeview-header" # Gnumeric treeview-headers

# Xfce specific theming
widget_class "*XfceHeading*"			style "xfce-header"
widget_class "*XfceDesktop*"			style "xfdesktop-windowlist"
widget "xfwm4-tabwin*" style "tabwin"

# Workarounds for Evolution
widget_class "*.ETable.ECanvas"    style "murrine-treeview-header"
widget_class "*.ETree.ECanvas"    style "murrine-treeview-header"
widget_class "*GtkCTree*"	style "evolution-hack"
widget_class "*GtkList*"	style "evolution-hack"
widget_class "*GtkCList*"	style "evolution-hack"
widget_class "*.ETree.*"	style "evolution-hack"
widget_class "*EInfoLabel*"	style "evolution-hack"

# 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 "murrine-tooltips"

###################################################
# SPECIAL CASES AND WORKAROUNDS
###################################################

# 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 "murrine-nautilus-location"

# 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.
# This style does not affect GtkComboBoxEntry, it does have an effect on comboboxes in appears-as-list mode though.
style "murrine-text-is-fg-color-workaround"
{
	text[NORMAL]      = @fg_color
	text[PRELIGHT]    = @fg_color
	text[SELECTED]    = @selected_fg_color
	text[ACTIVE]      = @fg_color
	text[INSENSITIVE] = darker (@bg_color)
}
widget_class "*.<GtkComboBox>.<GtkCellView>"   style "murrine-text-is-fg-color-workaround"

style "murrine-menuitem-text-is-fg-color-workaround"
{
	text[NORMAL]        = @fg_color
	text[PRELIGHT]      = @selected_fg_color
	text[SELECTED]      = @selected_fg_color
	text[ACTIVE]        = @fg_color
	text[INSENSITIVE]   = darker (@bg_color)
}
widget "*.gtk-combobox-popup-menu.*"   style "murrine-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 "murrine-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] = darker (@bg_color)
}
widget_class "*<GtkListItem>*" style "murrine-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 "murrine-fg-is-text-color-workaround"
widget_class "*<EelEditableLabel>" style "murrine-fg-is-text-color-workaround"




# Google Chrome/Chromium theming (requires 9.0.597 or newer)
style "chrome-gtk-frame"
{
    ChromeGtkFrame::frame-color = shade (0.5, @bg_color)
    ChromeGtkFrame::inactive-frame-color = shade (0.5, @bg_color)

    ChromeGtkFrame::frame-gradient-size = 100
    ChromeGtkFrame::frame-gradient-color = shade (1.08,@bg_color)
    ChromeGtkFrame::inactive-frame-gradient-color = shade (1.08,@bg_color)

    ChromeGtkFrame::scrollbar-trough-color = @base_color
    ChromeGtkFrame::scrollbar-slider-prelight-color = @panel_bg
    ChromeGtkFrame::scrollbar-slider-normal-color = shade (1.4, @panel_bg)
}

class "ChromeGtkFrame" style "chrome-gtk-frame"


# panel theming
include "apps/panel.rc"
# application specific theming
include "apps/terminal.rc"
include "apps/thunar.rc"
include "apps/gmusicbrowser.rc"
