
gtk-icon-sizes = "panel-menu=24,24:panel=24,24:gtk-button=24,24:gtk-large-toolbar=24,24:gtk-small-toolbar=24,24:gtk-menu=16,16:gtk-dnd=24,24"
gtk-button-images = 0 #  9 = enable / 0 = disable icons on buttons like Close, Help, etc

#default color scheme
gtk_color_scheme = "fg_color:#000000\nbg_color:#C5C5C5\nbase_color:#FFFFFF\ntext_color:#030303\nselected_bg_color:#99C600\nselected_fg_color:#000000"
gtk-menu-popup-delay = 50

style "theme-default"
{
  GtkButton		::default_border 	= { 0, 0, 0, 0 }
  GtkButton		::child-displacement-x 	= 0
  GtkButton		::child-displacement-y 	= 0
  GtkCheckButton	::indicator-size 	= 16
  GtkRadioButton	::indicator-size 	= 18
  GtkCheckButton	::indicator-spacing 	= 2
  GtkComboBox		::appears-as-list	= TRUE # whether dropdowns should look like lists rather than menus
  GtkRange       	::trough-border        = 0
  GtkRange       	::slider-width         = 15
  GtkRange       	::stepper-size         = 15
  ComboBoxEntry 	::inner-border 		= { 1, 1, 1, 1 }
  GtkToolbar    	::internal-padding     	= 0
  GtkToolbar    	::space-size     	= 0 ###
  GtkToolbar    	::shadow-type    	= GTK_SHADOW_NONE
  GtkEntry		::inner-border 		= { 3, 2, 2, 2 }
  GtkExpander		::expander_size    	= 14  
  GtkMenu       	::horizontal-padding   	= 0
  GtkMenu       	::vertical-padding     	= 0
  GtkScrollbar  	::has-backward-stepper 	= 0
  GtkScrollbar  	::has-forward-stepper  = 0
  GtkOptionMenu 	::indicator-size	= { 8, 8 }
  GtkPaned		::handle_size  		= 8
  #GtkRange      	::activate-slider 	= 0 # toggle scrollbar press state view
  GtkScrollbar		::min_slider_length 	= 36
  GtkScrollbar		::has-secondary-backward-stepper = 0
  GtkMenuBar		::internal-padding  	= 0
  GtkTreeView		::expander_size    	= 14 
  GtkScale		::trough-border 	= 5
  GtkScale		::slider-length 	= 13
  GtkScale		::slider-width  	= 19
  GtkScale      	::value-spacing		= 0
  GtkStatusbar		::shadow_type		= GTK_SHADOW_NONE 
  #GtkSpinButton	::shadow_type 	= GTK_SHADOW_NONE 
  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.0 # not work !
  GtkNotebook		::tab-overlap 		= 2
  #GtkMenuItem		::selected-shadow-type 	= GTK_SHADOW_IN
  GtkMenuItem		::arrow-spacing 	= 10 # space between label and arrow
  #Spacing between edge with indicator and text
  GtkOptionMenu		::indicator-spacing 	= {3, 3, 3, 3}
  GtkRadioButton	::indicator-size 	= 16
  GtkTreeView		::horizontal_separator 	= 2
  GtkTreeView		::vertical_separator 	= 2
  #GtkTreeView		::odd_col_color 	= "#EDF3FE" 
  GtkTreeView		::odd_row_color 	= "#FFFFFF"
  GtkTreeView		::even_row_color 	= "#EDF3FE" # "#F1F5FA" # "#D1D7E2" # "#FFFFFF"
  GtkTreeView		::even_col_color 	= "#FFFFFF"
  GtkTreeView		::expander_size 	= 8
  GtkTreeView		::row_ending_details 	= TRUE
  GtkScrolledWindow	::scrollbar-spacing  	= 0
  GtkScrolledWindow	::scrollbars-within-bevel = 1 # place scrollbars within the scrolled window's bevel
  BonoboUiToolbar	::shadow-type		= GTK_SHADOW_NONE	
  GtkToolButton		::icon-spacing 		= 2 # space between icon and text

  xthickness = 1
  ythickness = 1

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

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

  base[NORMAL]     	=  @base_color
  base[ACTIVE]     	=  mix (0.90, shade (0.795,@bg_color), @selected_bg_color) 
  base[PRELIGHT]   	=  @base_color
  base[SELECTED]	=  lighter (@selected_bg_color) # shade (1.15, @selected_bg_color)
  base[INSENSITIVE]	=  shade (1.175, @bg_color) 

  text[NORMAL]     	=  @text_color
  text[ACTIVE]		=  shade (0.855,@base_color) # @text_color # selected text unfocused 
  text[PRELIGHT]   	=  @text_color
  text[SELECTED]   	=  @selected_fg_color
  text[INSENSITIVE]	=  shade (0.70, @bg_color)

  engine "aurora" 
  {
	  menubarstyle   = 0 		# 0 = flat, 1 = gradient, 2 = sunken
	  curvature      = 2.0 	# rounded corners in pixels (except tabs?=BUG?)
	  arrowsize      = 1.0 		# 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
  } 
}
######################################
#panel stuff
style "panelbg"
{
  xthickness                    = 0
  ythickness                    = 0
  bg_pixmap[NORMAL]             = "panel-bg.png"
  fg[NORMAL]                    = "#000000"
  fg[PRELIGHT]          	= "#151515"
  fg[ACTIVE]                    = "#555555"
  fg[SELECTED]          	= "#555555"
}
style "theme-menubar"
{
  xthickness                    = 0
  ythickness                    = 0
  #bg[NORMAL] = "#000000"
  bg_pixmap[NORMAL]             = "panel-bg.png"
  fg[NORMAL]                    = "#000000"
  fg[PRELIGHT]          	= "#151515"
  fg[ACTIVE]                    = "#343434"
  fg[SELECTED]          	= "#343434"
        engine "pixmap"
        {
                image
                {
                        function        = BOX
                        state 		= NORMAL
                        file            = "panel-bg.png"
                        border  	= { 0, 0, 0, 0 }
                        stretch 	= TRUE
                }
    }
}

class "GtkMenuBar" style "theme-menubar"

# panel styles
#class "*Panel*" style "panelbg"
widget "*PanelApplet*" 	style "panelbg"
class "*notif*" 	style "panelbg"
class "*Notif*" 	style "panelbg"
class "*Tray*" 		style "panelbg"
class "*tray*" 		style "panelbg"
class "*Netstatus*" 	style "panelbg"
class "*netstatus*" 	style "panelbg"
class "*Deskbar*" 	style "panelbg"
class "*deskbar*" 	style "panelbg"
####################################

# Evolution (and some deprecated widgets) use bg and fg for its listview instead of 
# base and text like they should, so we override it.
style "evolution-hack" 	= "theme-default"
{	
	bg[ACTIVE]   	= mix (0.90, shade (0.795,@bg_color), @selected_bg_color)
	bg[SELECTED] 	= @selected_bg_color
	fg[ACTIVE]   	= @fg_color
	fg[SELECTED] 	= @selected_fg_color
}

# mix (0.75,shade (0.95,@selected_bg_color),@base_color)

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-default"
{
  xthickness = 4
  ythickness = 4

  bg[NORMAL]     	=  shade (0.875, @base_color) 
  bg[ACTIVE]     	=  shade (0.875, @base_color) 	 
  bg[PRELIGHT]   	=  shade (0.875, @base_color) # shade (1.205, @bg_color) 	
  bg[SELECTED]   	=  @selected_bg_color  	#active border color
  bg[INSENSITIVE]	=  shade (1.155,@bg_color)
  fg[ACTIVE]     	=  @fg_color

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

style "theme-entry" 	= "theme-default" 
{
  GtkButton::inner-border = { 0, 0, 0, 0 }

  xthickness = 4
  ythickness = 4

  bg[SELECTED]   	=  @selected_bg_color
  text[SELECTED] 	=  @selected_fg_color
  #base[NORMAL]   	=  "#FFFFC9" # custom color for box entry bg # @base_color  
 
}
# frames
style "theme-frame" 	= "theme-wide"
{
  fg[SELECTED] 		=  @selected_bg_color
  bg[SELECTED] 		=  @bg_color
  engine "pixmap" 
  {
    # SHADOWS
    image
    {
      function		= SHADOW
      shadow		= IN
      recolorable	= TRUE
      file		= "Shadows/shadow-in.png"
      border		= { 1, 1, 1, 1 }
      stretch		= TRUE
    }
    image
    {
       function		= SHADOW
       shadow		= OUT
       recolorable	= TRUE
       file		= "Shadows/shadow-out.png"
       border		= { 1, 1, 1, 1 }
       stretch		= TRUE
    }

    image
    {
       function		= SHADOW
       shadow		= ETCHED_IN
       recolorable	= TRUE
       file		= "Frame-Gap/frame1.png"				
       #border		= { 2, 2, 2, 2 }
       border		= { 10, 10, 10, 10 }
       stretch		= TRUE
    }
    image
    {
       function		= SHADOW
       shadow		= ETCHED_OUT
       recolorable	= TRUE
       file		= "Shadows/shadow-none.png"
       border		= { 2, 2, 2, 2 }
       stretch		= TRUE
    }
    image
    {
       function		= SHADOW_GAP
       recolorable	= TRUE
       file		= "Frame-Gap/frame1.png"
       border		= { 2, 2, 2, 2 }
       stretch		= TRUE
       gap_start_file	= "Frame-Gap/frame-gap-start.png"
       gap_start_border	= { 2, 0, 2, 0 }
       gap_end_file	= "Frame-Gap/frame-gap-end.png"
       gap_end_border	= { 0, 2, 2, 0 }
       gap_side		= TOP
    }
  }
}
# toolbar
style "theme-toolbar" 	= "theme-default"
{
  GtkToolbar     	::shadow-type	= GTK_SHADOW_NONE
  GtkToolbar     	::button-relief	= GTK_RELIEF_NONE
  GtkWidget	 	::draw-border 	= { 0, 0, 0, 0 }

  bg[NORMAL]  = @bg_color
  base[ACTIVE]= @fg_color
}

style "theme-handlebox" = "theme-default"
{
  bg[NORMAL] = @bg_color
}
# slider
style "theme-scale" = "theme-default"
{
  bg[NORMAL]   =  @bg_color	#slider color
  bg[PRELIGHT] =  @base_color  	#slider selected color 
  bg[SELECTED] =  darker (@bg_color) # shade (0.90,@bg_color) #track shade from this one to white?
}
 # scrollbar
style "theme-range" = "theme-default"
{
  bg[NORMAL]   =  mix (0.90, shade (0.795,@bg_color), @selected_bg_color) 
  bg[PRELIGHT] =  shade (1.205, @selected_bg_color)
  bg[ACTIVE]   =  shade (1.205, @bg_color) # scrollbar base color
#Arrows
  text[NORMAL]      =  @text_color 
  text[PRELIGHT]    =  @fg_color
  text[ACTIVE]      =  shade (0.90,@selected_bg_color) # pressed
  text[INSENSITIVE] =  mix (0.85,shade (0.90,@bg_color),@fg_color)
}

style "theme-notebook" = "theme-wider"
{
  GtkNotebook::tab-curvature = 0.0 # for some reason cannot be override here :(

  bg[NORMAL]   =  shade (1.155, @bg_color)			#background
  bg[SELECTED] =  darker (@bg_color)  		#tab reflection shade 
  fg[ACTIVE]   =  lighter (@fg_color) 		#inactive tab text color
  bg[ACTIVE]   =  shade (0.975, @bg_color) 	#inactive tab background
  fg[NORMAL]   =  @text_color 			#selected tab text color
}

# resizer
style "theme-paned" = "theme-default" 
{
  bg[PRELIGHT] =  @bg_color
}
# menu
style "theme-menu" = "theme-default"
{
  xthickness = 0
  ythickness = 0

  bg[NORMAL] = @base_color
  text[NORMAL] = @selected_bg_color
}

style "aurora-separator-menu-item"
{
	GtkSeparatorMenuItem::horizontal-padding = 0
	# We are setting the desired height by using wide-separators
	# There is no other way to get the odd height ...
	GtkWidget::wide-separators = 0
	GtkWidget::separator-width = 1
	GtkWidget::separator-height = 0
	xthickness = 1
	ythickness = 0
}

widget_class "*<GtkSeparatorMenuItem>*" style "aurora-separator-menu-item"



style "menubar"		
{
	engine "pixmap"
	{
		# Menubar background
		image
		{
			function = BOX
			state = NORMAL
			file = "Menu/menubar.png"
			border	= { 0, 0, 1, 1 }
			stretch	= TRUE
    		}

 	}
}

class "GtkMenuBar" style "menubar"

style "theme-menu-item" = "theme-wider"
{
  bg[SELECTED]     =  shade (1.415, @selected_bg_color)   # menu item selected background
  text[NORMAL]     =  @text_color
  fg[NORMAL]       =  @text_color
  text[PRELIGHT]   =  @selected_fg_color
  fg[PRELIGHT]     =  @selected_fg_color
}

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

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

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

  GtkWidget::focus-padding = 0

#headers
  bg[NORMAL]    = @base_color # shade (1.755, @selected_bg_color) #  
  bg[PRELIGHT]  = shade (1.755, @selected_bg_color) 
  bg[ACTIVE]    = shade (1.755, @selected_bg_color) # @base_color # mix(0.955,  shade (1.05, @bg_color), @selected_bg_color)
  bg[SELECTED]  = shade (1.225, @selected_bg_color)

  fg[SELECTED]	=  @bg_color 
  text[SELECTED]=  @bg_color  
}
# lists
style "theme-tree-arrow" = "theme-default"
{
  GtkWidget::focus-padding = 0

  bg[NORMAL]   =  darker (@bg_color) # @fg_color
  bg[PRELIGHT] =  @selected_bg_color
  bg[SELECTED] = shade (1.15, @selected_bg_color)
}
# tooltips
style "theme-tooltips" = "theme-widest"
{
  xthickness = 5
  ythickness = 5

  bg[NORMAL]        =  "#FFFFC9" # @bg_color 	#background
  text[SELECTED]    =  @base_color 		#top-left background color shade
  fg[NORMAL]        =  @text_color  		#text color
  text[NORMAL]      =  darker (@bg_color)  	#tooltip border
}

style "theme-progressbar" = "theme-default"
{
  xthickness = 2
  ythickness = 2
  font_name  = "Bold"
  bg[NORMAL]        =  shade (1.2385, @bg_color) #background
  bg[SELECTED]      =  shade (1.035, @selected_bg_color) #progressbar active color
  fg[PRELIGHT]      =  @base_color 			#text on progressbar
}

style "theme-combo" = "theme-default" 
{ 
   GtkButton::inner-border = { 0, 0, 0, 0 }

   xthickness = 4
   ythickness = 4

   bg[NORMAL]     	=  shade (1.415,@selected_bg_color) # mix (0.90, shade (0.795,@bg_color), @selected_bg_color) #  
   bg[ACTIVE]     	=  shade (1.115,@selected_bg_color) # shade (0.965, @bg_color) 	 
   bg[PRELIGHT]   	=  shade (1.415,@selected_bg_color) # shade (1.305, @bg_color) 	
   bg[SELECTED]   	=  @selected_bg_color  # border box color
   #base[NORMAL]   	=  "#F1F5FA" # "#FFFFC9" # custom color for combobox entry bg # @base_color # 
   base[INSENSITIVE]   	=  shade (1.155,@bg_color) # box entry
   bg[INSENSITIVE]   	=  shade (1.135,@bg_color) # button
   fg[PRELIGHT]   	=  @selected_fg_color # arrows color on mouse-over
   fg[ACTIVE]   	=  @selected_fg_color # arrows color pressed
}

style "theme-combo-box" = "theme-button" 
{
  xthickness = 4
  ythickness = 2
}

style "theme-combo-arrow" = "theme-button"
{
  xthickness = 0
  ythickness = 0

   fg[PRELIGHT]   	=  @selected_fg_color
   fg[ACTIVE]   	=  @selected_fg_color
}

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

  bg[SELECTED]	=  @base_color
}

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

  base[NORMAL]          =  @base_color 				# uncheck active background
  base[PRELIGHT]        =  @base_color				# prelight uncheck active background
  bg[NORMAL]            =  @bg_color 				# active and inactive border 
  bg[SELECTED]          =  shade (1.515,@selected_bg_color) 	# bg_color of check and radio selected 
  text[SELECTED]        =  @text_color				# check and radio fg selected color 
  text[INSENSITIVE]	=  shade (0.655,@bg_color)		# check and radio fg insensitive color
}

style "aurora-frame-title"
{
	fg[NORMAL]   	= lighter (@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"

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

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

widget_class "*.<GtkFrame>.<GtkLabel>" style "aurora-frame-title"

#widget_class "*.*Toolbar*" style "theme-toolbar" # to fix

# these should really use base and text colors instead
widget_class "*GtkCTree*" 	style "evolution-hack"
widget_class "*GtkList*" 	style "evolution-hack"
widget_class "*GtkCList*" 	style "evolution-hack"
widget_class "*.ETree.*" 	style "evolution-hack"

style "panelbuttons" = "theme-button"
{
  # as buttons are draw lower this helps center text
  ythickness = 3 #higher value for bigger size panels
}

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


