# GTK theme Equinox Evolution 1.50
# Author : Matthieu James
# Licence : GPL

# ===[ scroll bars ]===
#  bg[ACTIVE] is slider color
#  bg[NORMAL] is steppers color
#  base[NORMAL] is trough color

# ===[ check and radio buttons ]===
#  text[SELECTED] is the active bullet color
#  text[INSENSITIVE] is the inactive bullet color
#  base[PRELIGHT] is the unchecked base color
#  base[SELECTED] is the checked base color
#  base[ACTIVE] is the unchecked base color when pressed

# ===[ scales ]===
#  bg[NORMAL] is slider color
#  bg[PRELIGHT] is slider prelight color
#  bg[SELECTED] is slider's focus border color
#  base[SELECTED] is trough color

# ===[ progressbars ]===
#  bg[NORMAL] is trough color
#  bg[SELECTED] is fill color

gtk_color_scheme = "fg_color:#333333\nbg_color:#DDDDDD\nbase_color:#FFFFFF\ntext_color:#333333\nselected_bg_color:#5188E7\nselected_fg_color:#FFFFFF\ntooltip_fg_color:#EEEEEE\ntooltip_bg_color:#222222\nlink_color:#0062dc"
gtk-icon-sizes = "panel-menu=24,24:panel=22,22:gtk-button=16,16:gtk-large-toolbar=22,22"

gtk-auto-mnemonics = 1

gtk-menu-popup-delay = 50

style "theme-default" {

  GtkButton::default_border = { 0, 0, 0, 0 }
  GtkButton::child-displacement-x = 0
  GtkButton::child-displacement-y = 1
  GtkWidget::focus-padding = 0

  GtkRange::trough-border   = 0
  GtkRange::slider-width    = 10
  GtkRange::stepper_size    = 2
  GtkRange::stepper_spacing = 0

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

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

  GtkTreeView::expander_size    = 13
  GtkExpander::expander_size    = 13

  GtkScale::slider-length = 12
  GtkScale::slider-width  = 12
  GtkScale::trough-border = 2

  GtkWidget::link-color = "#0062dc" #blue
  GtkIMHtml::hyperlink-color = "#0062dc"
  GtkHTML::link-color = "#0062dc"

  WnckTasklist::fade-overlay-rect = 0
  WnckTasklist::fade-loop-time    = 5.0 # 5 seconds
  WnckTasklist::fade-opacity      = 0.5 # final opacity

  #makes menu only overlap border
  GtkMenu::horizontal-padding = 0

  #removes extra padding at top and bottom of menus.  Makes menuitem overlap border
  GtkMenu::vertical-padding = 0

  #set to the same as roundness, used for better hotspot selection of tabs
  GtkNotebook::tab-curvature = 2.5
  GtkNotebook::tab-overlap   = 3

  GtkMenuItem::arrow-spacing = 10
  #Spacing between edge with indicator and text
  GtkOptionMenu  ::indicator-size = {11, 5}
  #GtkOptionMenu  ::indicator-spacing = {6, 5, 4, 4}

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

  GtkPaned::handle-size = 8

  # A new color must be defined since affectation of mix or shade functions to GtkTreeView::odd_row_color raise this message :
  # Gtk-Message: (for origin information, set GTK_DEBUG): failed to retrieve property `GtkTreeView::odd-row-color' of type `GdkColor' from rc file value "((GString*) 0x9ccba00)" of type `GString'
  #color["odd_row_color"] = @base_color
  GtkTreeView::horizontal_separator = 1
  GtkTreeView::odd_row_color = @base_color

  GtkScrolledWindow::scrollbar-spacing       = 0
  GtkScrolledWindow::scrollbars-within-bevel = 0
  GtkScrolledWindow::window-placement-set    = 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 }

  GtkWidget::new-tooltip-style = 1
	GtkImage::x-ayatana-indicator-dynamic = 1
  
  xthickness = 1
  ythickness = 1

  fg[NORMAL]       	=  @fg_color
  fg[ACTIVE]       	=  @fg_color # inactive tab text
  fg[PRELIGHT]     	=  @fg_color
  fg[SELECTED]     	=  @selected_fg_color
  fg[INSENSITIVE]  	=  shade (3.0, @fg_color)

  bg[NORMAL]       	=  @bg_color
  bg[ACTIVE]        =  shade (1.0125, @bg_color) # inactive tab color
  bg[PRELIGHT]      =  mix (0.85, shade (1.1, @bg_color), @selected_bg_color)
  bg[SELECTED]      =  @selected_bg_color
  bg[INSENSITIVE]  	=  shade (1.03, @bg_color)

  base[NORMAL]     	=  @base_color
  base[ACTIVE]     	=  shade (0.6, @base_color) # background color for inactive selected items
  base[PRELIGHT]   	=  @base_color
  base[SELECTED]    =  @selected_bg_color
  base[INSENSITIVE]	=  shade (1.05, @bg_color)

  text[NORMAL]     	=  @text_color
  text[ACTIVE]      =  @selected_fg_color # text color for inactive selected items
  text[PRELIGHT]   	=  @text_color
  text[SELECTED]   	=  @selected_fg_color
  text[INSENSITIVE]	=  mix (0.575, shade (0.95, @bg_color), @fg_color)

  engine "equinox" {
    curvature           = 2.5
    menubarstyle        = 1 # 0 = flat, 1 = gradient
    menubarborders      = 1 # 0 = none, 1 = bottom border, 2 = top half-border, 3 = bottom border and top half-border
    menubaritemstyle    = 0 # 0 = flat, 1 = gradient, 2 = inverse gradient, 3 = line, 99 = original
    toolbarstyle        = 1 # 0 = flat, 1 = gradient, 2 = flat without border, 3 = gradient without border, 4 = flat with bottom border, 5 = gradient with bottom border
    buttonstyle         = 0 # 0 = normal, 1 = glassy
    menuitemstyle       = 0 # 0 = normal, 1 = glassy
    listviewheaderstyle = 0 # 0 = normal, 1 = glassy
    listviewitemstyle   = 1 # 0 = flat, 1 = gradient
    scrollbarstyle      = 4 # 0 = normal, 1 = glassy, 2 = normal with handles, 3 = glassy with handles, 4 = flat
    scrollbartrough     = 0 # 0 = background color of the parent widget, 1 = base color of the widget itself
    scalesliderstyle    = 1 # 0 = normal, 1 = glassy, 2 = normal with bullet
    checkradiostyle     = 0 # 0 = normal, 1 = glassy
    progressbarstyle    = 1 # 0 = normal, 1 = glassy
    separatorstyle    	= 1 # 0 = solid inset, 1 = gradient inset, 2 = light gradient line, 3 = dark gradient line
    resizegripstyle    	= 1 # 0 = circle, 1 = corner
    textstyle           = 0
    textshade           = 1.025
    animation           = TRUE # FALSE = disabled, TRUE = enabled
  }
}

style "theme-black" {
  color["panel_bg"] = shade(0.25, @bg_color)
  fg[NORMAL]        = shade (0.9, @selected_fg_color)
  fg[PRELIGHT]	  = shade (0.9, @selected_fg_color)
	fg[ACTIVE]		  = shade (0.9, @selected_fg_color)
	fg[SELECTED]	  = shade (0.9, @selected_fg_color)
	fg[INSENSITIVE]	  = shade (1.175, @panel_bg)
  bg[NORMAL]        = @panel_bg
  bg[ACTIVE]		  = shade (0.8, @panel_bg)
  bg[SELECTED]      = shade (1.5, @panel_bg)
  bg[PRELIGHT]      = shade (1.65, @panel_bg) 
  text[NORMAL]        = shade (0.9, @selected_fg_color)
}

style "test" = "theme-default" {
  fg[NORMAL]       	=  "#FFFFFF"
  fg[ACTIVE]       	=  "#FFFFFF"
  fg[PRELIGHT]     	=  "#FFFFFF"
  fg[SELECTED]     	=  "#FFFFFF"
  fg[INSENSITIVE]  	=  "#FFFFFF"

  bg[NORMAL]       	=  "#FF0000"
  bg[ACTIVE]          =  "#FF0000"
  bg[PRELIGHT]        =  "#FF0000"
  bg[SELECTED]        =  "#FF0000"
  bg[INSENSITIVE]  	=  "#FF0000"

  text[NORMAL]       	=  "#FFFFFF"
  text[ACTIVE]       	=  "#FFFFFF"
  text[PRELIGHT]     	=  "#FFFFFF"
  text[SELECTED]     	=  "#FFFFFF"
  text[INSENSITIVE]  	=  "#FFFFFF"

  base[NORMAL]       	=  "#FF0000"
  base[ACTIVE]          =  "#FF0000"
  base[PRELIGHT]        =  "#FF0000"
  base[SELECTED]        =  "#FF0000"
  base[INSENSITIVE]  	=  "#FF0000"
}

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

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

style "theme-widest" = "theme-default" {
  xthickness = 4
  ythickness = 3
}

style "theme-button" = "theme-wider" {
  bg[NORMAL]   = shade (1.10, @bg_color)
  bg[ACTIVE]   = shade (0.86, @bg_color)
  bg[PRELIGHT] = shade (1.20, mix(0.8, @bg_color, @selected_bg_color))
}

style "theme-scrollbar" = "theme-default" {
  text[NORMAL]      = @bg_color
  text[ACTIVE]      = @bg_color
  text[INSENSITIVE] = @bg_color
  text[PRELIGHT]    = @bg_color
  text[SELECTED]    = @bg_color
  bg[NORMAL]   = @bg_color
  bg[ACTIVE]   = shade (0.6, @bg_color)
  bg[PRELIGHT] = shade (0.4, @bg_color)
  engine "equinox" {
    curvature = 2
	}
}

style "theme-entry" = "theme-button" {
  bg[PRELIGHT] = @bg_color
}

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

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

style "theme-scale" = "theme-default" {
  bg[NORMAL]     = shade (1.05, @bg_color)
  bg[PRELIGHT]   = shade (1.20, mix(0.5, @bg_color, @selected_bg_color))
  base[SELECTED] = mix (0.5, @selected_bg_color, shade (0.85, @bg_color))
}

style "theme-range" = "theme-default" {
  bg[NORMAL]        = shade (1.0930, @bg_color)
  bg[PRELIGHT]      = mix (0.93, shade (1.14, @bg_color), @selected_bg_color)

  #Arrows
  text[NORMAL]      = shade (0.275,@selected_fg_color)
  text[PRELIGHT]    = @selected_fg_color
  text[ACTIVE]      = shade (0.10,@selected_fg_color)
  text[INSENSITIVE] = mix (0.80,shade (0.90,@bg_color),@fg_color)
}

style "theme-notebook-bg" = "theme-default" {
	bg[NORMAL]   = shade (1.05, @bg_color)
}

style "theme-notebook" = "theme-notebook-bg" {
  xthickness = 2
  ythickness = 2
}

style "theme-notebook-scrollbar" = "theme-scrollbar" {
	base[NORMAL]   = shade (1.07, @bg_color)
}

style "theme-menu" = "theme-default" {
  xthickness = 0
  ythickness = 0
  bg[NORMAL] = shade (0.975,@base_color)
  bg[ACTIVE] = shade (1.2,@bg_color)
}

style "theme-menuitem" = "theme-wider" {
  fg[PRELIGHT]   =  @selected_fg_color
  text[PRELIGHT] =  @selected_fg_color
}

style "theme-menubar" = "theme-default" {
  xthickness = 0
  ythickness = 0
}

style "theme-menubar-item" = "theme-menuitem" {
  bg[SELECTED]   = shade(0.65, @bg_color)
  fg[PRELIGHT]   = @selected_fg_color
	fg[NORMAL]	   = @fg_color
	fg[SELECTED]   = @selected_fg_color
	fg[ACTIVE]	   = @fg_color
}

style "theme-toolbar" = "theme-default" {
  bg[NORMAL] = @bg_color
}

style "theme-tree" = "theme-default" {
  xthickness   = 3
  ythickness   = 1

  GtkWidget::focus-padding = 0

  bg[NORMAL]   = shade (1.10, @bg_color)
  bg[PRELIGHT] = shade (1.15, @bg_color)
  bg[ACTIVE]   = shade (1.15, @bg_color)
}

style "theme-tree-arrow" = "theme-default" {
  bg[NORMAL]   =  mix (0.70, shade (0.75, @bg_color), shade (0.80, @selected_bg_color))
  bg[PRELIGHT] =  mix (0.80, @bg_color, @selected_bg_color)
}

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-tooltips" = "theme-widest" {
  bg[NORMAL]   = @tooltip_bg_color
  bg[SELECTED] = @tooltip_bg_color
  fg[NORMAL]   = @tooltip_fg_color
  text[NORMAL] = shade (0.92, @tooltip_bg_color) # border color
}

style "theme-progressbar" = "theme-default" {
  xthickness   = 2
  ythickness   = 2
  font_name    = "Bold"
  bg[NORMAL]   = shade (1.20, @bg_color)
  fg[PRELIGHT] = shade(1.30, @selected_fg_color)
}

style "theme-combo" = "theme-button" {
  GtkButton::inner-border = { 0, 1, 0, 0 }
  base[ACTIVE] = @base_color
  text[ACTIVE] = @fg_color
}

style "theme-combo-box" = "theme-button" {}

style "theme-arrow" = "theme-default" {
  text[NORMAL] = @fg_color
  text[PRELIGHT] = @fg_color
  text[ACTIVE] = @fg_color
  text[SELECTED] = @fg_color
}

style "theme-viewport" = "theme-default" {
	engine "pixmap" {
		image {
			function	= SHADOW
		}		
	}
}

style "theme-statusbar" = "theme-default" {
}

style "theme-check-radio-buttons" = "theme-button" {
  GtkWidget::focus-padding = 1
  text[SELECTED]    = mix(0.1, @bg_color, @fg_color)
  text[INSENSITIVE] = shade (0.625, @bg_color)
  base[PRELIGHT]    = mix (0.75, @base_color, @selected_bg_color)
  base[SELECTED]    = shade (1.15, @bg_color)
  base[ACTIVE]      = @base_color
}

# widget styles
class "GtkWidget"       style "theme-default"
class "GtkScale"        style "theme-scale"
class "GtkRange"        style "theme-range"
class "GtkFrame"        style "theme-frame"
class "GtkEntry"        style "theme-entry"
class "GtkProgressBar"  style "theme-progressbar"
class "GtkSeparator"    style "theme-wide"
class "GtkScrollbar"	  style "theme-scrollbar"
class "GtkCalendar"     style "theme-calendar"
class "GtkViewport"     style "theme-viewport"
class "GtkStatusbar"    style "theme-statusbar"
class "GtkArrow"        style "theme-arrow"

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

widget_class "*<GtkButton>"       style "theme-button"
widget_class "*<GtkCheckButton>"  style  "theme-check-radio-buttons"
widget_class "*<GtkHandleBox>"    style "theme-handlebox"

# Toolbar
class "*HandleBox"          style "theme-toolbar"
class "GtkToolbar"          style "theme-toolbar"
widget_class "*HandleBox"   style "theme-toolbar"

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

# Notebook
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>"                   style "theme-notebook"

# combobox stuff
widget_class "*<GtkCombo>*"                 style "theme-combo"
widget_class "*<GtkComboBox>*<GtkButton>"   style "theme-combo-box"
widget_class "*<GtkComboBoxEntry>*"         style "theme-combo"
widget_class "*<GtkSpinButton>*"            style "theme-combo"

# treeview stuff
widget_class "*<GtkTreeView>.<GtkButton>"   style "theme-tree"
widget_class "*<GtkCTree>.<GtkButton>" 	    style "theme-tree"
widget_class "*<GtkList>.<GtkButton>" 	    style "theme-tree"
widget_class "*<GtkCList>.<GtkButton>" 	    style "theme-tree"

#For arrow bg
widget_class "*<GtkTreeView>.<GtkButton>*<GtkArrow>"    style "theme-tree-arrow"
widget_class "*<GtkCTree>.<GtkButton>*<GtkArrow>" 	    style "theme-tree-arrow"
widget_class "*<GtkList>.<GtkButton>*<GtkArrow>" 	    style "theme-tree-arrow"

# Menus
class "GtkMenu"                             style "theme-menu"
class "GtkMenubar"                          style "theme-menubar"
widget_class "*<GtkMenuItem>*"              style "theme-menuitem"
widget_class "*<GtkMenuBar>.<GtkMenuItem>*" style:highest "theme-menubar-item"


#######################################################
##  Panel
#######################################################

style "theme-panel" = "theme-black" {
  xthickness   = 1
  ythickness   = 1
  bg_pixmap[NORMAL] = "images/panel_bg.png"
}

style "theme-panel-button" = "theme-black" {
  xthickness        = 3
  ythickness        = 2
}

widget "*PanelWidget*"                    style "theme-panel"
#widget "*Panel*Frame*"                    style "theme-panel"
widget_class "*PanelApplet*<GtkButton>*"  style "theme-panel-button"
widget "*fast-user-switch-applet*"	style "theme-panel" # Workaround for Fast User Switch applet
class "PanelApp*" 						      style "theme-panel"
class "PanelToplevel*" 					    style "theme-panel"
widget_class "*Panel*<GtkMenuBar>*" style:highest "theme-panel" # The panel menubar
widget "*TomboyTray*"					      style "theme-panel" # Workaround for Tomboy
widget "*TomboyApplet*"					    style "theme-panel"
widget "*Net*Applet*"					      style "theme-panel"
widget "*CPU*Applet*"					      style "theme-panel"
widget "*dictApplet*"					      style "theme-panel"
#XFCE panel
widget_class "*notif*"					    style "theme-panel"
widget_class "*Notif*"					    style "theme-panel"
widget_class "*Tray*"					      style "theme-panel"
widget_class "*tray*"					      style "theme-panel"
widget "*Xfce*Panel*"					      style "theme-panel"
class "*Xfce*Panel*"					      style "theme-panel"


style "theme-button-panel" {
  xthickness   = 3
  ythickness   = 3
  bg[SELECTED] = shade(1.25, @selected_bg_color)
}
widget_class "*Panel*<GtkButton>"     style:highest "theme-button-panel"

style "theme-menu-black" = "theme-black" {
  bg[SELECTED] = shade(1.6, @panel_bg)
  bg[INSENSITIVE] = shade(0.85, @panel_bg)
}

style "theme-menuitem-black" = "theme-black" {
  text[NORMAL]   = shade (0.8, @selected_fg_color)
  fg[NORMAL]     = shade (0.8, @selected_fg_color)
  fg[PRELIGHT]   = @selected_fg_color
  text[PRELIGHT] = @selected_fg_color
  bg[SELECTED]   = shade (1.8, @panel_bg)
  engine "equinox" {
    textstyle = 4
    textshade = 0.64
    separatorstyle = 2
  }
}

style "theme-menubar-black" = "theme-menu-black" {
  bg[SELECTED]   = shade (1.05, @panel_bg)
  engine "equinox" {
    menubarborders = 0
    menubaritemstyle = 2
    curvature = 0
  }
}

style "theme-menubar-item-black" = "theme-menuitem-black" {
  bg[SELECTED] = shade (0.88, @panel_bg)
}

widget "*Panel*MenuBar*"                            style:highest "theme-menubar-black"
widget "GtkWindow.gnome-panel-main-menu*"           style:highest "theme-menu-black"
widget "GtkWindow.gnome-panel-main-menu*MenuItem"   style:highest "theme-menuitem-black"

widget "GtkWindow*menu*GtkMenu*"		          style "theme-menu-black"
widget "GtkWindow*menu*GtkMenu*MenuItem*"		  style "theme-menuitem-black"
widget "*user*menubar*"		                    style:highest "theme-menubar-black"

widget "*combo*menu*"				    style:highest "theme-menu"
widget "*combo*menu*MenuItem*"  style:highest "theme-menuitem"


#######################################################
##  GNOME specific
#######################################################

widget "ido-offscreen-scale" style "theme-menu" # Sound panel appel
widget "*IdoEntryMenuItem*" style "theme-wide"

widget_class "*.ETree.ECanvas"      style "theme-tree" #evolution
widget_class "*.ETable.ECanvas" 	style "theme-tree" #evolution

#nautilus search stripe and other specialties
style "extra-view" {
	bg[NORMAL] = shade (0.6, @bg_color)
	fg[NORMAL] = @selected_fg_color
}

style "evolution-new-button-workaround" {
  bg[NORMAL] = @bg_color
	engine "equinox" {
		toolbarstyle = 0
	}
}
widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "evolution-new-button-workaround"

include "apps/nautilus.rc"
#include "apps/nautilus-elementary.rc"
include "apps/gnome-system-monitor.rc"
include "apps/gnome-terminal.rc"
include "apps/google-chrome.rc"
include "apps/gedit.rc"
include "apps/ubuntuone.rc"
#include "apps/globalmenu.rc"

