#ljuda2@narf

#include "panel.rc"

gtk-menu-images = 0

#gtk_color_scheme ="fg_color:#222222\nbg_color:#ededed\nbase_color:#ffffff\ntext_color:#222222\nselected_bg_color:#FFBA27\nselected_fg_color:#222222\ntooltip_bg_color:#efe6c3\ntooltip_fg_color:#333333"

gtk-color-scheme = "base_color:#E6E6E6\nfg_color:#000000\ntooltip_fg_color:#000000\nselected_bg_color:#999999\nselected_fg_color:#ffffff\ntext_color:#1A1A1A\nbg_color:#BFBEB9\ntooltip_bg_color:#F5F5B5"


gtk-icon-sizes = "gtk-large-toolbar=16,16:gtk-small-toolbar=16,16:gtk-button=16,16"

style "default"
{
	########
	# Style Properties
	########
	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        	= 3
	GtkRange		::slider-width         	= 12
	GtkRange		::stepper-size         	= 13
	GtkRange		::trough-under-steppers = 0

	GtkScale		::slider-length        	= 13
	GtkScale		::slider-width         	= 13
	GtkScale		::trough-side-details  	= 0
	GtkScrollbar		::min-slider-length    	= 30

	GtkMenuBar		::internal-padding     	= 0
	GtkExpander		::expander-size        	= 16
	GtkToolbar		::internal-padding     	= 1
	GtkTreeView		::expander-size        	= 14
	GtkTreeView		::vertical-separator   	= 0

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

	# Uncomment one or both of the following for flat/unified menus or toolbars:
	GtkToolbar::shadow-type		= GTK_SHADOW_NONE  # Makes toolbars flat and unified.
	#GtkMenuBar::shadow-type		= GTK_SHADOW_NONE  # Makes menus flat and unified.

    	GtkScrolledWindow::scrollbar-spacing  		= 2
    	
    	GtkNotebook::tab-curvature 			= 3
    	GtkNotebook::tab-overlap 			= 3

	# Glow the tasklist by changing the color, instead of overlaying it with a rectangle
	WnckTasklist   ::fade-overlay-rect = 0
    	#WnckTasklist   ::fade-loop-time = 5.0
    	#WnckTasklist   ::fade-opacity = 0.7

	xthickness = 1
	ythickness = 1


	fg[NORMAL]        = @fg_color
	fg[PRELIGHT]      = @fg_color
	fg[SELECTED]      = @selected_fg_color
	fg[INSENSITIVE]   = shade (0.9,@bg_color)
	fg[ACTIVE]        = @fg_color

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

	base[NORMAL]      = @base_color
	base[PRELIGHT]    = @base_color
	base[SELECTED]    = @selected_bg_color
	base[INSENSITIVE] = @bg_color
	base[ACTIVE]      = @selected_bg_color

#	base[ACTIVE]      = "#FFE23E"

	text[NORMAL]      = @text_color
	text[PRELIGHT]    = @text_color
	text[SELECTED]    = @selected_fg_color
	text[INSENSITIVE] = shade (0.9,@bg_color)
	text[ACTIVE]      = @selected_fg_color

	engine "murrine" 
	{
		rgba		    = FALSE  	# FALSE = disabled, TRUE = enabled#
		animation           = TRUE
		colorize_scrollbar  = TRUE
		contrast            = 0.8   
		glow_shade          = 1.0 	# 0.0:0.1:2.0
	    	glowstyle           = 0 	# 0 = top glow, 1 = bottom glow, 2 = top and bottom glow, 3 = horizontal glow, 4 = centered glow
		glazestyle          = 3     	# 0 = flat highlight, 1 = curved highlight, 2 = concave style, 3 = top curved highlight, 4 = beryl highlight
		gradients           = FALSE 	#TRUE  # FALSE = disabled, TRUE = enabled
		gradient_shades     = {1.7,1.0,1.0,0.95}	#{1.1,1.0,1.0,0.85} # default: {1.1,1.0,1.0,1.1}
		highlight_shade     = 1.0  	# set highlight amount for buttons or widgets
		lightborder_shade   = 1.2   	# 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       = 0     	# 0 = nothing, 1 = dotted
		menubaritemstyle    = 1     	# 0 = menuitem look, 1 = button look
		menubarstyle        = 1     	# 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
		roundness           = 0     	# 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	    = 2     	# 0 = flat, 1 = glassy, 2 = gradient
		progressbarstyle    = 0 	# 0 = nothing, 1 = striped
	}
}

style "evolution-hack" = "default"
{	
	bg[NORMAL]   	= shade (1.0, @bg_color)  	# Color for evo treeview headers.
	bg[PRELIGHT]   	= shade (1.18, @bg_color)  	# Color for evo treeview header prelight.
	bg[ACTIVE]	= "#FFE23E"			# Color for unfocused evo selected items.
	bg[SELECTED]	= @selected_bg_color  		# Color for evo selected items.
	fg[ACTIVE]      = @selected_fg_color
	fg[SELECTED]    = @selected_fg_color
}

style "evolution-hack1" = "default"
{	
	bg[NORMAL]   	= shade (1.0, @bg_color)  	# Color for evo treeview headers.
	bg[PRELIGHT]   	= shade (1.18, @bg_color)  	# Color for evo treeview header prelight.
	bg[ACTIVE]	= shade (0.85, @bg_color)  	# Color for unfocused evo selected items.
	bg[SELECTED]	= @selected_bg_color  		# Color for evo selected items.
	fg[ACTIVE]      = @selected_fg_color
	fg[SELECTED]    = @selected_fg_color
}



style "handle" # Removes the ugly panel handle when a pixmap panel is used
{
engine "pixmap"
  {
    image
    {
      function			= HANDLE
      file              		= "Panel/handle-v.png"
      border            		= { 0, 0, 0, 0 }
      stretch           		= TRUE
      orientation			= VERTICAL
    }
    image
    {
      function			= HANDLE
      file              		= "Panel/handle-h.png"
      border            		= { 0, 0, 0, 0 }
      stretch           		= TRUE
      orientation			= HORIZONTAL
    }
  }
}
#class "PanelAppletFrame" style "handle"


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

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

style "widest"
{
	xthickness = 4
	ythickness = 4
}

style "frame" = "wide"
{
  	GtkWidget::draw-border = {1,1,1,1}
}

style "button"
{
	xthickness   = 0
	ythickness   = 0


#	GtkButton::default-border	= { 0, 0, 0, 0 }
#	GtkButton::inner-border  	= {0, 0, 0, 0}	
#
#	GtkButton::focus-padding		= 0 # This can give you a more compact appearance.
#	GtkButton::interior-focus 		= 1
#	GtkButton::focus-line-width 	= 1
#	GtkButton::focus-line-height 	= 1
#	GtkButton::child-displacement-x	= 0 # Pressed button icon displacement.
#	GtkButton::child-displacement-y	= 1 # Pressed button icon displacement.  


	bg[NORMAL]   = shade (1.0, @bg_color) # Color for buttons.
	bg[PRELIGHT] = shade (0.97, @bg_color) # Color for buttons when hovered.
	bg[ACTIVE]   = shade (0.74, @bg_color) # Color for buttons when pressed.

	engine "murrine" 
	{
		gradients           	= TRUE # FALSE = disabled, TRUE = enabled
    		lightborder_shade   	= 2.0 # 0.00:0.01:2.00
    		lightborderstyle    	= 1 # 0 = lightborder on top side, 1 = lightborder on all sides
    		reliefstyle	    	= 2 # 0 = flat, 1 = inset, 2 = shadow
		roundness		= 3
    		glowstyle       	= 0
    		gradient_shades 	= {1.15, 1.0, 1.0, 0.82}
		contrast 		= 0.9
	}
}



style "panelbuttons" = "button"
{
	engine "murrine" 
	{
		gradients           	= FALSE # FALSE = disabled, TRUE = enabled
    		lightborder_shade   	= 2.0 # 0.00:0.01:2.00
    		lightborderstyle    	= 1 # 0 = lightborder on top side, 1 = lightborder on all sides
    		reliefstyle	    	= 1 # 0 = flat, 1 = inset, 2 = shadow
		roundness		= 0
		glazestyle              = 0
    		glowstyle       	= 0
    #		gradient_shades 	= {1.15, 1.0, 1.0, 0.82}
		contrast 		= 0.9
	}

}

#widget "*PanelWidget*" style "panelbuttons"
widget "*PanelApplet*" style "panelbuttons"
widget_class "*Panel*GtkToggleButton*" style "panelbuttons"
widget_class "*Panel*GtkButton" style "panelbuttons"
widget_class "*PanelButton*." style "panelbuttons"

style "entry" = "wider" 
{
}

style "notebook-bg" = "wide"
{
	bg[NORMAL] = shade (1.00, @bg_color)
	bg[ACTIVE] = shade (0.70, @bg_color)
}



style "notebook" = "notebook-bg"
{	



  GtkNotebook::tab-border = 0
  GtkNotebook::tab-hborder = 0
  GtkNotebook::tab-vborder = 0
  GtkNotebook::show-border = 0
  GtkNotebook::gtk-button-images = 0
  GtkNotebook::gtk-menu-images = 0
  GtkNotebook::arrow-spacing = 0
  GtkNotebook::tab-curvature = 0
  GtkNotebook::tab-overlap = 0
  GtkNotebook::focus-line-width = 0


	engine "murrine" {
		gradients           	= TRUE
		glowstyle       	= 0
		contrast            	= 0.8
		roundness 		= 3
		gradient_shades     	= {1.5,1.0,1.0,0.5}
}
}

style "tasklist"
{
	xthickness = 5
	ythickness = 3
}

style "menubar"
{
	bg[SELECTED] 		= @bg_color
	bg[NORMAL]   		= @bg_color
	bg[PRELIGHT] 		= @bg_color
	bg[ACTIVE]   		= @bg_color
	bg[INSENSITIVE] 	= @bg_color
	fg[NORMAL]   		= "#EDEDED"
	fg[PRELIGHT] 		= @selected_fg_color
	fg[SELECTED] 		= @selected_fg_color
	fg[ACTIVE]   		= @selected_fg_color
	fg[INSENSITIVE] 	= "#222222"
	text[NORMAL]   		= @text_color
	text[PRELIGHT] 		= @selected_fg_color
	text[SELECTED] 		= @selected_fg_color
	text[ACTIVE]   		= @selected_fg_color
	text[INSENSITIVE] 	= "#222222"

	engine "murrine" 
	{
	#	gradient_shades     = {1.43,1.0,1.0,0.81}
	}
}

style "menu"
{
	xthickness = 3
	ythickness = 3

	bg[SELECTED] 		= @selected_bg_color
	bg[NORMAL]   		= "#EDEDED" #"#3C3C3C"
	bg[PRELIGHT] 		= @selected_bg_color
	bg[ACTIVE]   		= "#EDEDED"
	bg[INSENSITIVE] 	= "#EDEDED"
	fg[NORMAL]   		= "#ededed"
	fg[PRELIGHT] 		= @selected_fg_color
	fg[SELECTED] 		= @selected_fg_color
	fg[ACTIVE]   		= @selected_fg_color
#	fg[INSENSITIVE] 	= shade (0.7,@bg_color)
	fg[INSENSITIVE] 	= @bg_color
	text[NORMAL]   		= @text_color
	text[PRELIGHT] 		= @text_color
	text[SELECTED] 		= @text_color
	text[ACTIVE]   		= @text_color
	text[INSENSITIVE] 	= shade (0.7,@bg_color)

	engine "murrine" {
		glowstyle       = 0
		roundness = 0
		rgba = FALSE
	}
}

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

	bg[SELECTED] 		= @selected_bg_color
	bg[NORMAL]   		= "#EDEDED" #"#3C3C3C"
	bg[PRELIGHT] 		= @selected_bg_color
	bg[ACTIVE]   		= "#EDEDED"
	bg[INSENSITIVE] 	= "#EDEDED"
	fg[NORMAL]   		= "#ededed"
	fg[PRELIGHT] 		= @selected_fg_color
	fg[SELECTED] 		= @selected_fg_color
	fg[ACTIVE]   		= @selected_fg_color
#	fg[INSENSITIVE] 	= shade (0.7,@bg_color)
	fg[INSENSITIVE] 	= @bg_color
	text[NORMAL]   		= @text_color
	text[PRELIGHT] 		= @text_color
	text[SELECTED] 		= @text_color
	text[ACTIVE]   		= @text_color
	text[INSENSITIVE] 	= shade (0.7,@bg_color)
	
	fg[NORMAL]   = "#000000" #Xfce4-panel necessary fix

		engine "murrine" 
	{
		gradients           = TRUE
		glowstyle       = 0
	}
}

style "separator-menu-item"
{
	GtkSeparatorMenuItem::horizontal-padding = 4
	# We are setting the desired height by using wide-separators
	# There is no other way to get the odd height ...
	GtkWidget::wide-separators = 1
	GtkWidget::separator-width = 1
	GtkWidget::separator-height = 1
	xthickness = 1
	ythickness = 2
	
	engine "murrine" {
		contrast = 0.9
		rgba = FALSE
	}
}

style "treeview"
{
	engine "murrine" 
	{
		gradients           = TRUE
	}
}

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

	bg[NORMAL]   = shade (1.01, @bg_color) # Color for buttons.
	bg[PRELIGHT] = shade (1.07, @selected_bg_color) # Color for buttons when hovered.
	bg[ACTIVE]   = shade (1.09, @selected_bg_color) # Color for buttons when pressed.

	engine "murrine" {
		gradients           = TRUE # FALSE = disabled, TRUE = enabled
    		highlight_shade     = 1.0 # 0.00:0.01:2.00
    		lightborder_shade   = 2.0 # 0.00:0.01:2.00
    		lightborderstyle    = 1 # 0 = lightborder on top side, 1 = lightborder on all sides
    		reliefstyle	        = 2 # 0 = flat, 1 = inset, 2 = shadow
		roundness		=1
    		glowstyle       = 0
    		gradient_shades = {1.5, 1.0, 1.0, 0.82}
		contrast = 0.9
	}

}

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

style "tooltips"
{
	xthickness = 4
	ythickness = 4

	bg[NORMAL] = @tooltip_bg_color
	bg[ACTIVE] = @tooltip_bg_color
	bg[PRELIGHT] = shade (0.85, @tooltip_bg_color)
	bg[SELECTED] = shade (0.85, @tooltip_bg_color)
	bg[INSENSITIVE] = @tooltip_bg_color
	
	fg[NORMAL] = @tooltip_fg_color
	fg[ACTIVE] = @tooltip_fg_color
	fg[PRELIGHT] = darker (@tooltip_fg_color)
	fg[SELECTED] = darker (@tooltip_fg_color)
	fg[INSENSITIVE] = @tooltip_fg_color
}

style "progressbar"
{
	xthickness = 2
	ythickness = 2
	
	bg[SELECTED] = shade (0.8, @selected_bg_color)


	engine "murrine" 
	{
		gradients           = TRUE # FALSE = disabled, TRUE = enabled
    		highlight_shade     = 1.3 # 0.00:0.01:2.00
    		lightborder_shade   = 2.0 # 0.00:0.01:2.00
    		lightborderstyle    = 1 # 0 = lightborder on top side, 1 = lightborder on all sides
    		reliefstyle	        = 2 # 0 = flat, 1 = inset, 2 = shadow
		roundness		=1
    		glowstyle       = 4
    		gradient_shades = {2.0, 1.0, 1.0, 2.0}
		contrast = 1.0
	}
}

style "statusbar"
{
}

style "comboboxentry"
{
	# NOTE:
	# If you set the appears-as-list option on comboboxes in the theme
	# you should set this hint on the combobox instead.
}

style "spinbutton"
{
}

style "scale"
{
	bg[NORMAL] = shade(1.1, @bg_color)
	bg[PRELIGHT] = shade(1.25, @bg_color)
	
}

style "hscale"
{
}

style "vscale"
{
}

# slider
style "theme-scale" = "wide"
{ 
  bg[NORMAL]   = mix (0.7, @bg_color, @fg_color)
  bg[PRELIGHT] = shade (1.1, mix (0.7, @bg_color, @fg_color))
  engine "murrine"
  {
    gradients           = TRUE # FALSE = disabled, TRUE = enabled
    highlight_shade     = 1.3 # 0.00:0.01:2.00
    lightborder_shade   = 2.0 # 0.00:0.01:2.00
    lightborderstyle    = 1 # 0 = lightborder on top side, 1 = lightborder on all sides
    reliefstyle	        = 2 # 0 = flat, 1 = inset, 2 = shadow

    highlight_shade 	= 1.0
    glowstyle       	= 4
    gradient_shades 	= {2.0, 1.0, 1.0, 2.0}
    roundness       	= 6
  }
}

# scrollbar
style "theme-range"
{
	bg[NORMAL]	= shade(2.0, @bg_color)

  	engine "murrine"
  	{

    		gradients           = TRUE # FALSE = disabled, TRUE = enabled
    		highlight_shade     = 1.5 # 0.00:0.01:2.00
    		lightborder_shade   = 1.8 # 0.00:0.01:2.00
    		lightborderstyle    = 1 # 0 = lightborder on top side, 1 = lightborder on all sides
    		reliefstyle	    = 2 # 0 = flat, 1 = inset, 2 = shadow

    		glowstyle           = 4
    		gradient_shades     = {2.0, 1.0, 1.0, 2.0}
    		roundness 	    = 1
    		scrollbar_color     = "#222222"
    		contrast            = 0.8
  	}

   	GtkRange       ::trough-border        = 2
}


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

style "radiocheck"
{
	text[NORMAL]	  = "#222222"
	text[PRELIGHT]    = "#222222"
}

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

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

# Increase the x/ythickness in some widgets
class "GtkToolbar"   				style "default"
class "GtkRange"     				style "wide"
class "GtkFrame"     				style "wide"
class "GtkSeparator" 				style "wide"
class "GtkCalendar"  				style "wide"
class "GtkEntry"     				style "entry"

class "GtkSpinButton" 			 	style "spinbutton"

class "GtkScale"        			style "theme-scale"
class "GtkRange"        			style "theme-range"




style "toolbar" = "button"
{

	xthickness = 8
	ythickness = 8

}




widget_class "*Tool*GtkButton" style "toolbar" 







# 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.

# This is not perfect, it could be done better
# (That is modify *every* widget in the notebook, and change those back that
# we really don't want changed)
widget_class "*<GtkNotebook>*<GtkEventBox>"     style "notebook-bg"
widget_class "*<GtkNotebook>*<GtkDrawingArea>"  style "notebook-bg"
widget_class "*<GtkNotebook>*<GtkLayout>"       style "notebook-bg"

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

widget_class "*<GtkComboBoxEntry>*" 		style "comboboxentry"
widget_class "*<GtkCombo>*"         		style "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 "*.<GtkFrame>.<GtkLabel>" 		style "frame-title"
widget_class "*.<GtkTreeView>*"        		style "treeview"

#widget_class "*.GtkTreeView.GtkButton" style "gtktreeview-button"

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"
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-hack1"

# Radiocheck
class "GtkCheck*" 				style "radiocheck"

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


# Work around the evolution "New" button bug by making the toolbar flat.
# http://bugzilla.gnome.org/show_bug.cgi?id=446953
# Maybe remove this workaround in unstable releases.
style "evo-new-button-workaround"
{

	engine "murrine"
	{
		toolbarstyle = 0
		rgba = FALSE
	}
}
widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "evo-new-button-workaround"
