# ===[ buttons ]===
#  the prelight of toggle buttons is darkened slightly 
#

# ===[ scroll bars ]===
#  bg[ACTIVE] is trough color
#  bg[NORMAL] & bg[NORMAL] are scrollbar colors

# ===[ tooltips ]===
#  bg[NORMAL]	is the right endpoint of the gradient
#  bg[SELECTED] is the left endpoint of the gradient
#  fg[NORMAL] is the text colour

# ===[ check and radio buttons ]===
#  bg[SELECTED] is the selected background colour
#  text[SELECTED] is the selected check/circle color
#  text[INSENSITIVE] is the disabled check/circle colour
#  base[*] is used for all other background states
#  --on prelight the bg is lightened slightly
#  --bg is lightened slightly when check/radio not drawn (for all states)

gtk-icon-sizes = "panel-menu=24,24:panel=24,24:gtk-button=16,16:gtk-large-toolbar=24,24"
gtk-button-images = 0 #toggle icons on buttons like Close, Help, etc

#default color scheme
gtk_color_scheme = "fg_color:#BCBF91\nbg_color:#2F4F4F\nbase_color:#2F4F4F\ntext_color:#BCBF91\nselected_bg_color:#232F2F\nselected_fg_color:#FFFFFF"
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 = 13
  GtkRange::stepper-size = 0
 
  GtkScrollbar::min_slider_length = 25
  GtkScrollbar::has-secondary-backward-stepper = 0
  
  GtkPaned::handle_size  = 6

  GtkMenuBar::internal-padding  = 0
  GtkTreeView::expander_size    = 14 
  GtkExpander::expander_size    = 14 
  
  GtkScale::slider-length = 13
  GtkScale::slider-width  = 19
  GtkScale::trough-border = 6


  GtkStatusbar::shadow_type	= GTK_SHADOW_NONE #added
  GtkSpinButton::shadow_type 	= GTK_SHADOW_NONE #added
  GtkButton::default_outside_border	= { 1, 1, 1, 1 } #added

  GtkWidget::link-color = "#0062dc" # blue
  GtkWidget::visited-link-color = "#8c00dc" #purple

  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-offset = -1

  #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 = 0
  GtkNotebook::tab-overlap = 3

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

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

  GtkTreeView::horizontal_separator = 2
  GtkTreeView::odd_row_color = mix(0.93, shade (0.90,@base_color), @selected_bg_color)

  xthickness = 1
  ythickness = 1


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

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

  base[NORMAL]     	=  @base_color
  base[ACTIVE]     	=  @bg_color #shade (0.85,@base_color)
  base[PRELIGHT]   	=  @base_color
  base[SELECTED]	=  shade (1.15, @selected_bg_color)
  base[INSENSITIVE]	=  shade (0.95,@bg_color)

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

  engine "aurora" 
  {
	  menubarstyle    = 1 # 0 = flat, 1 = gradient
	  curvature       = 1 # rounded corners in pixels (except tabs)
	  arrowsize       = 1 # controls combo_arrow circle size.  Diameter set by (11 + 2 * arrowsize)

	  old_arrowstyle  = FALSE #set to TRUE for original circled arrows
	  animation       = TRUE # FALSE = disabled, TRUE = enabled
  }
}

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 = 4
}

style "theme-button" = "theme-widest"
{
  xthickness = 4
  ythickness = 4

  bg[NORMAL]     =  @bg_color #shade (1.07,@bg_color)
  bg[ACTIVE]     =  shade (0.95, @bg_color) #mix (0.95,shade (0.95,@bg_color),@selected_bg_color) 
  bg[PRELIGHT]   =  shade (1.10, @bg_color) #mix(0.98, shade (0.98,@base_color), @selected_bg_color)
  bg[SELECTED]   =  @selected_bg_color #shade (0.96, @bg_color) #added ::active border color

  #for arrows
  text[SELECTED]   =  shade (0.75,@selected_fg_color)
}

style "theme-entry" = "theme-button" 
{
  bg[SELECTED]   =  @selected_bg_color
  text[SELECTED] =  @text_color #added
}

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

  fg[SELECTED] =  @selected_bg_color
}

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

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

style "theme-scale" = "theme-default"
{
  bg[NORMAL]   =  @bg_color #slider color
  bg[PRELIGHT] =  @base_color #mix(0.90, shade (0.95,@base_color), @selected_bg_color) #slider selected color 
  bg[SELECTED] =  shade (0.90,@bg_color) #added ::trace color shade from this one to white? 
}

style "theme-range" = "theme-wide"
{
  bg[NORMAL]   =  shade (1.02,@bg_color)
  bg[PRELIGHT] =  @base_color #mix(0.90, shade (0.95,@base_color), @selected_bg_color) 

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

style "theme-notebook" = "theme-wider"
{
  bg[NORMAL]   =  @base_color #shade (1.195,@bg_color) #background
  bg[SELECTED] =  @bg_color #shade (0.98,@bg_color) #added ::tab reflection shade 
  fg[ACTIVE]   =  @fg_color #inactive tab text color
  bg[ACTIVE]   =  shade (0.98,@bg_color) #inactive tab background
  fg[NORMAL]   =  shade (0.58,@selected_bg_color) #added ::selected tab text color
}

style "theme-paned" = "theme-default" 
{
  bg[NORMAL]   =  @bg_color
  bg[PRELIGHT] =  shade (1.01,@selected_bg_color)
  base[SELECTED]=  @base_color
}

style "theme-menu" = "theme-default"
{
  xthickness = 0
  ythickness = 0

  fg[NORMAL] = shade (1.05,@bg_color)
  bg[NORMAL] = shade (1.055,@bg_color)
  fg[INSENSITIVE] =  mix (0.85,shade (0.90,@base_color),@base_color)
}

style "theme-menu-item" = "theme-wider"
{
  bg[SELECTED]     =  shade (0.85,@bg_color) #added ::item selected
  fg[PRELIGHT]     =  @fg_color
  text[PRELIGHT]   =  @text_color
}

style "theme-menubar" = "theme-default" 
{
  bg[NORMAL] =   @selected_bg_color 
 }

style "theme-menubar-item" = "theme-menu-item" { }

style "theme-tree" = "theme-default"
{
  xthickness = 2
  ythickness = 2

  GtkWidget::focus-padding = 0

  bg[NORMAL]   =  @base_color 
  bg[PRELIGHT] = @bg_color 
  bg[ACTIVE]   = mix(0.85,  shade (1.05,@bg_color), @base_color)
}

style "theme-tree-arrow" = "theme-default"
{
  bg[NORMAL]   =  @base_color
  bg[PRELIGHT] =  @selected_bg_color
}

style "theme-tooltips" = "theme-widest"
{
  bg[NORMAL]        =  shade (1.15, @bg_color) #added ::background
  text[SELECTED]    =  @base_color #added ::top-left background color
  fg[NORMAL]        =  @text_color #added ::text color
  text[NORMAL]      =  shade (0.50, @bg_color) #added ::tooltip border
}

style "theme-progressbar" = "theme-default"
{
  bg[NORMAL]        =  shade (1.175, @bg_color) #added ::background
  bg[SELECTED]      =  shade (0.98, @selected_bg_color) #added ::progressbar color
  fg[PRELIGHT]      =  @base_color #text on progressbar
}

style "theme-combo" = "theme-button" 
{ 
  GtkButton::inner-border = { 0, 0, 0, 0 }
  text[SELECTED]   	=  @text_color
  fg[SELECTED]   	=  @text_color
  text[PRELIGHT]   	=  @text_color
  fg[PRELIGHT]   	=  @text_color
}

style "theme-combo-arrow" = "theme-button"
{
  xthickness = 1
  ythickness = 1
}

style "theme-view" = "theme-default"
{
  xthickness = 0
  ythickness = 0

  bg[SELECTED]	=  @bg_color
}

style "theme-check-radio-buttons" = "theme-button"
{
  GtkWidget ::interior-focus = 0
  GtkWidget::focus-padding = 0

  base[NORMAL]          =  @base_color
  bg[PRELIGHT]          =  @base_color 
  bg[SELECTED]          =  shade (1.32, @selected_bg_color) 
  text[SELECTED]        =  @text_color 
  text[INSENSITIVE]	=  shade (0.625,@bg_color)
  base[PRELIGHT]        =  @selected_bg_color #mix(0.95, @base_color, @selected_fg_color)
}



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

#nautilus search stripe
widget "*.nautilus-extra-view-widget" style:highest "extra-view"
widget "*.nautilus-extra-view-widget.*.GtkLabel*" style:highest "extra-view"
widget "*.nautilus-extra-view-widget.*Button*.GtkLabel*" style:highest "theme-button"

# widget styles
class "GtkWidget"       style "theme-default"
class "GtkCheckButton"  style "theme-check-radio-buttons"
class "GtkButton"       style "theme-button"
class "GtkScale"        style "theme-scale"
class "GtkRange"        style "theme-range"
class "GtkPaned"        style "theme-paned"
class "GtkFrame"        style "theme-frame"
class "GtkMenu"         style "theme-menu"
class "GtkEntry"        style "theme-entry"
class "GtkMenuItem"     style "theme-menu-item"
class "GtkNotebook"     style "theme-notebook"
class "GtkProgressBar"  style "theme-progressbar"
class "GtkToolbar"      style "theme-toolbar"
class "GtkHandleBox*"   style "theme-handlebox"
#class "GtkMenuBar"      style "theme-menubar"
class "GtkSeparator"    style "theme-wide"
class "GtkArrow"        style "theme-combo-arrow"

# menus
widget_class "*.<GtkMenuItem>.*" style "theme-menu-item"

# combobox stuff
widget_class "*.GtkComboBoxEntry*" style "theme-combo"
widget_class "*.GtkCombo.GtkButton"    style "theme-combo"

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

widget_class "*.GtkNotebook.*GtkEventBox" style "theme-notebook"
widget_class "*.GtkNotebook.*GtkViewport" style "theme-notebook"
widget_class "*.GtkNotebook.GtkLabel*" style "theme-notebook" #for tabs

# 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"
widget_class "*.ETree*" 	style "theme-tree" #evolution

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

style "panelbuttons" = "theme-button"
{
  # as buttons are draw lower this helps center text
  ythickness = 3
}

widget_class "*Panel*GtkToggleButton*" style "panelbuttons"

