#==================================================================
#			Bisigi Project theme
#==================================================================
#		   http://www.bisigi-project.org
#		===================================
# Author: François Vogelweith <francois.vogelweith@gmail.com>
# License: GPL v3
# Theme: Eco-2
# Description: Murrine / gtk Theme 
#==================================================================

gtk_color_scheme = "fg_color:#101010\nbg_color:#C9C0B6\nbase_color:#ffffff\ntext_color:#1A1A1A\nselected_bg_color:#BAC1AC\nselected_fg_color:#333333\ntooltip_bg_color:#333333\ntooltip_fg_color:#fff"

# This specifies the sizes of panel icons. 16 = smaller icons, 24 = default-sized icons.
gtk-icon-sizes = "panel-menu=24,24"

 gtk-icon-sizes = "gtk-button=16,16"  # This makes button icons smaller, which in turn makes buttons smaller.
 gtk-icon-sizes = "gtk-large-toolbar=24,24:gtk-small-toolbar=16,16"  # Uncomment or edit for smaller toolbars.

include "panel.rc" 

#include "panel28.rc"  # Use this instead if you plan to use 28px panels.
#include "panel32.rc"  # Use this instead if you plan to use 32px panels.
#include "panel40.rc"  # Use this instead if you plan to use 40px panels.
#include "panel48.rc"  # Use this instead if you plan to use 48px panels.

style "theme-default"
{
	GtkButton      ::child-displacement-x = 0 		# déplacement du texte lorsque l'on clic
	GtkButton      ::child-displacement-y = 0 
	GtkButton      ::default-border       = { 0, 0, 0, 0 }
	GtkCheckButton ::indicator-size       = 14

	GtkPaned       ::handle-size          = 6

	GtkRange::trough-border = 0
	GtkRange::slider-width = 7
	GtkRange::stepper-size = 14
        GtkRange::trough-under-steppers = 1		

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

	GtkMenuBar     ::internal-padding     = 1
	GtkExpander    ::expander-size        = 16		# hauteur des flèches qui servent à minimiser certaines zones
	GtkToolbar     ::internal-padding     = 1		# hauteur zone avec des icones (ex: barre "nouveau - ouvrir - enregistrer..."
	GtkTreeView    ::expander-size        = 14		# ex: hauteur de zone de sélection des thèmes
	GtkTreeView    ::vertical-separator   = 0		# zone objet verticale

	GtkMenu        ::horizontal-padding   = 1		# largeur bord horizontaux des menus
	GtkMenu        ::vertical-padding     = 1		# hauteur bord verticaux des menu

	GtkWidget      ::focus-line-width     = 1 

	GtkScrolledWindow ::scrollbar-spacing = 0
	GtkScrolledWindow ::scrollbar-within-bevel = 0
	GtkWidget::link-color = darker (@selected_bg_color)
	GtkWidget::visited-link-color = @text_color

	#GtkToolbar	:: shadow-type	= GTK_SHADOW_NONE
	#GtkMenuBar	:: shadow-type	= GTK_SHADOW_NONE
	GtkMenuBar::window-dragging = 1
	WnckTasklist   ::fade-overlay-rect = 0
	GtkEntry::honors-transparent-bg-hint = 1


  	xthickness = 1						# taille de l'espace entre l'interieur et le bord de fenetre
  	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 (0.90, @bg_color)

	base[NORMAL]      = @base_color
	base[PRELIGHT]    = shade (0.95, @bg_color)
	base[ACTIVE]      = shade (0.90, @bg_color)
	base[SELECTED]    = shade (1.0, @selected_bg_color)  		# a changer pour la selection
	base[INSENSITIVE] = @bg_color

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

	color["info_bg_color"] = "#727272"
	color["info_fg_color"] = "#ffffff"

  engine "murrine" 
  {
		animation           = TRUE
		arrowstyle          = 1
		border_shades       = { 1.0, 0.9} # draw a gradient on the border.
		#border_colors       = { @selected_bg_color, @selected_bg_color } 
		contrast            = 0.87
		glazestyle          = 0     # 0 = flat, 1 = curved, 2 = concave, 3 = top curved, 4 = beryl highlight, 5 = new
		glow_shade          = 1.0
		glowstyle           = 0     # 0 = top, 1 = bottom, 2 = top and bottom, 3 = horizontal, 4 = centered glow
		gradient_shades     = {1.15,1.08,1.07,1.0}
		highlight_shade     = 1.0
		lightborder_shade   = 1.0
		lightborderstyle    = 1     # 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    = 1     # 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 	    = 1.06
		progressbarstyle    = 2     # 0 = nothing, 1 = diagonal stripes, 2 = blocks
		reliefstyle	    = 2     	# 0 = flat, 1 = inset, 2 = shadow
		rgba		    = FALSE
		roundness           = 2
		scrollbarstyle      = 0     # 0 = nothing, 1 = circles, 2 = handles, 3 = diagonal stripes, 4 = diagonal stripes and handles, 5 = horizontal
		sliderstyle         = 1     # 0 = nothing added, 1 = handles
		stepperstyle        = 1     # 0 = standard, 1 = integrated stepper handles
		textstyle 	    = 0
		trough_shades 	    = {1.1,0.87}
		toolbarstyle	    = 1     # 0 = flat, 1 = glassy, 2 = gradient
   }
}

style "evolution-hack" = "theme-default"
{	
	bg[NORMAL]   = shade (1.02, @bg_color)  
	bg[PRELIGHT]   = shade (1.06, @bg_color)  
	bg[ACTIVE]	= shade (1.65, @selected_bg_color)  
	bg[SELECTED]	= @selected_bg_color
	fg[ACTIVE]      = @selected_fg_color
	fg[SELECTED]    = @selected_fg_color
}

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

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

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

	bg[NORMAL]        = shade (1.05, @bg_color)
	bg[PRELIGHT]      = shade (1.1, @bg_color)
	bg[ACTIVE]        = shade (0.9, @bg_color)
	bg[INSENSITIVE]   = shade (1.0, @bg_color)
}

style "theme-notebook" = "theme-wider"
{
	bg[NORMAL] = shade (1.04, @bg_color)  
	bg[ACTIVE] = shade (0.91, @bg_color)
  engine "murrine" 
  {
	roundness = 4  
}
}

style "theme-tasklist" = "theme-wide"
{
}

style "theme-menu" = "theme-wider"
{
	xthickness = 0
	ythickness = 0
	bg[NORMAL] = shade (1.05, @selected_fg_color) 
	bg[SELECTED]	= shade (1.0, @selected_bg_color) 
	fg[NORMAL] = @bg_color
	text[NORMAL] 	= @bg_color
	text[PRELIGHT]	= @selected_fg_color




        engine "murrine" {
           	gradient_shades     = {1.0,0.9,0.9,0.7}
                glow_shade          = 1.05
		glowstyle           = 2
		highlight_shade     = 1.0
		lightborder_shade   = 0.9  
	}
}

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

	fg[PRELIGHT]      = "#000000"

        engine "murrine" {
            glowstyle = 0
            roundness = 3

}
}
style "theme-treeview"
{
	bg[SELECTED]	= shade (0.8, @selected_bg_color) 
	text[ACTIVE]   = "#737373"
}

style "theme-treeview-header" = "theme-default"
{
	xthickness = 2
	ythickness = 1
	bg[NORMAL]        = shade (1.02, @bg_color)  
	bg[PRELIGHT]      = shade (1.06, @bg_color) 
	bg[ACTIVE]        = shade (0.85, @bg_color) 
	bg[INSENSITIVE]   = shade (0.95, @bg_color) 
  engine "murrine" 
  {
	glazestyle = 0  
	roundness = 0 
}
}

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

style "theme-tooltips" = "theme-wider"
{
	bg[NORMAL] = @tooltip_bg_color
	fg[NORMAL] = @tooltip_fg_color
  engine "clearlooks"  
  {
}
}

style "theme-progressbar" = "theme-wide"
{
	bg[SELECTED] = @selected_bg_color
	bg[ACTIVE] = shade (1.0, @bg_color)

	engine "murrine"{
	   roundness = 1
           gradient_shades     = {1.0,0.9,0.9,0.8}
	}
}

style "theme-statusbar" = "theme-default"
{
	ythickness = 3
	xthickness = 3
	#bg[NORMAL] = @bg_color
}


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

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


	fg[PRELIGHT]      = "#000000"
	fg[ACTIVE]      = "#000000"
}

style "theme-spinbutton"
{
	bg[NORMAL]        = shade (1.02, @bg_color) 
	bg[PRELIGHT]      = shade (1.06, @bg_color) 
	bg[ACTIVE]        = shade (0.85, @bg_color) 
	bg[INSENSITIVE]   = shade (0.95, @bg_color) 
}

style "theme-scale"
{
	engine "murrine"{
		contrast		= 0.5
		#glow_shade          	= 0.5   # sets glow amount for buttons or widgets
		#highlight_shade     	= 1.02  # set highlight amount for buttons or widgets

}

	bg[NORMAL] = shade (0.8, @selected_bg_color)
	#bg[PRELIGHT] = @selected_bg_color
	#bg[SELECTED] = @selected_bg_color
	#bg[ACTIVE]   = @selected_bg_color
	#bg[INSENSITIVE]   = @selected_bg_color
	
}

style "theme-scrollbar" = "theme-button"
{
	GtkRange::slider-width = 16
		bg[SELECTED] = shade (0.8, @selected_bg_color)
		bg[ACTIVE] = shade (1.0, @selected_bg_color)

	engine "murrine"{
	   roundness = 0
           gradient_shades     = {1.2,1.1,1.1,0.9}
	}
}

style "theme-toolbar"
{


	engine "murrine" {
	    	contrast = 1.2
           	gradient_shades     = {1.0,0.9,0.9,0.7}
                glow_shade          = 1.05
		glowstyle           = 2     # 0 = top, 1 = bottom, 2 = top and bottom, 3 = horizontal, 4 = centered glow
		highlight_shade     = 1.0
		#border_shades       = { 1.2, 1.2} # draw a gradient on the border.
		#border_colors       = { @bg_color, @bg_color }
		textstyle	    = 0        
	}
}


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


style "toolbar-sep-nautilus" = "theme-toolbar-nautilus"
{

}

style "theme-hscrollbar" = "theme-scrollbar"
{
}

style "theme-vscrollbar" = "theme-scrollbar"
{
}

style "theme-menubar" = "theme-default"
{
	bg[NORMAL]    = @selected_fg_color
	bg[PRELIGHT]    = shade (0.8, @selected_bg_color)


	fg[NORMAL]    = @bg_color
	text[NORMAL] = @bg_color 


}

style "metacity-frame"
{
}



style "theme-radiocheck" = "theme-default"
{
	bg[SELECTED] = @selected_bg_color
	bg[NORMAL]   = mix (0.3, @selected_bg_color, @bg_color)
	bg[PRELIGHT] = @bg_color
}

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


style "theme-toolbar-nautilus"
{
	bg[NORMAL]   = "#5E5E5E"
	fg[NORMAL]   = @bg_color
	text[NORMAL] = @bg_color


	engine "murrine" {
	    	contrast = 1.2
           	gradient_shades     = {1.0,0.9,0.9,0.5}
                glow_shade          = 1.05
		glowstyle           = 2     # 0 = top, 1 = bottom, 2 = top and bottom, 3 = horizontal, 4 = centered glow
		highlight_shade     = 1.0
		#border_shades       = { 1.2, 1.2} # draw a gradient on the border.
		#border_colors       = { @selected_bg_color, @selected_bg_color }
		textstyle	    = 0        
	}
}


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


class "GtkWidget"    style "theme-default"
class "*HandleBox" style "theme-toolbar"
class "GtkToolbar"   style "theme-toolbar" 
widget_class "*HandleBox" style "theme-toolbar"
widget_class "*<GtkToolbar>.*"   style "toolbar-item"

class "GtkRange"     style "theme-wide"
class "GtkFrame"     style "theme-wide"
class "GtkEntry"     style "theme-wider"
class "MetaFrames"   style "metacity-frame"
class "GtkSeparator" style "theme-wide"
class "GtkWindow"      style "metacity-frame"

class "GtkSpinButton"  style "theme-spinbutton"
class "GtkScale"       style "theme-scale"
class "GtkVScale"      style "theme-scale"
class "GtkHScale"      style "theme-scale"
class "GtkScrollbar"   style "theme-scrollbar"
class "GtkVScrollbar"  style "theme-vscrollbar"
class "GtkHScrollbar"  style "theme-hscrollbar"



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

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

widget_class "*<GtkComboBoxEntry>*" style "theme-comboboxentry"
widget_class "*<GtkCombo>*"         style "theme-comboboxentry"

widget_class "*<GtkMenuBar>*"           style "theme-menubar"
widget_class "*<GtkMenu>*"              style "theme-menu"
widget_class "*<GtkMenuItem>*"          style "theme-menu-item"

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

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

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

widget_class "*.ETable.ECanvas"    style "theme-treeview-header"
widget_class "*.ETree.ECanvas"    style "theme-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"

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

style "theme-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 "theme-text-is-fg-color-workaround"

style "theme-menuitem-text-is-fg-color-workaround"
{
	text[NORMAL]        = @bg_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 "theme-menuitem-text-is-fg-color-workaround"

style "theme-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)
}

style "theme-fg-is-text-color-workaround-nautilus"
{
	fg[PRELIGHT]    = @text_color
	fg[ACTIVE]      = @selected_fg_color
	fg[SELECTED]    = @selected_fg_color
	fg[INSENSITIVE] = darker (@bg_color)
}

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

#  Nautilus toolbar
widget_class "*Nautilus*Toolbar*" style "theme-toolbar-nautilus"
widget_class "*Nautilus*Tool*GtkButton" style "theme-toolbar-nautilus"
widget_class "*Nautilus*Tool*.*.*" style "theme-toolbar-nautilus"
widget_class "*Nautilus*Tool*GtkToggleButton" style "theme-toolbar-nautilus"
widget_class "*Nautilus*Tool*Separator*" style "toolbar-sep-nautilus"
widget_class "*Nautilus*Tool*.<GtkComboBox>.<GtkCellView>"   style "theme-fg-is-text-color-workaround-nautilus"

# Firefox isn't nice to dark themes, so unset the dark stuff.
#widget "MozillaGtkWidget*Toolbar*"	style "toolbar-firefox"
#widget "MozillaGtkWidget*Frame*"	style "default"

widget_class "*Nautilus*Toolbar*" style "theme-toolbar"
widget_class "*Nautilus*Tool*GtkButton" style "theme-toolbar"
widget_class "*Nautilus*Tool*.*.*" style "theme-toolbar"
widget_class "*Nautilus*Tool*GtkToggleButton" style "theme-toolbar"
widget_class "*Nautilus*Tool*.<GtkComboBox>.<GtkCellView>"   style "theme-fg-is-text-color-workaround"

style "evo-new-button-workaround" 
{
	fg[NORMAL]      = @fg_color
	bg[NORMAL]      = @bg_color
	engine "murrine"
	{
		toolbarstyle = 0
	}
}

widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "evo-new-button-workaround"

widget_class "*.GtkNotebook.*.GtkViewport" style "theme-notebook"  

style "rhythmbox-header" = "theme-default"
{
	xthickness = 3
	ythickness = 3
	engine "clearlooks" {
	}
}
widget "*RBSourceHeader*"	style:highest "rhythmbox-header"
widget "*HeaderToolbar*"	style:highest "rhythmbox-header"
widget "*FooterToolbar*"	style:highest "rhythmbox-header"

widget "*swt*toolbar*"	style "theme-default"


