#Aurora_clean GTK theme/style
#created by krig ( please visit:  krigenator.googlepages.com  )

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

#default color scheme
gtk_color_scheme = "fg_color:#999999\nbg_color:#292929\nbase_color:#474747\ntext_color:#D9D9D9\nselected_bg_color:#B2B2B2\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
  #GtkButton	::default_outside_border= { 2, 2, 2, 2 } 
  GtkCheckButton::indicator-size 	= 16
  GtkCheckButton::indicator-spacing 	= 2
  GtkComboBox	::appears-as-list	= TRUE # whether dropdowns should look like lists rather than menus
  #GtkToolbar    ::button-relief		= GTK_RELIEF_IN
  GtkRange	::trough-border 	= 0
  GtkRange	::slider-width 		= 11
  GtkRange	::stepper-size 		= 13
  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 	= 1
  GtkScrollbar  ::has-forward-stepper  	= 1
  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 = 1 

  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 		= 3.0
  #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 	= shade (0.985, @base_color) 
  GtkTreeView		::odd_row_color 	= shade (0.985, @base_color)
  #GtkTreeView		::even_row_color 	= shade (0.985, @base_color)
  #GtkTreeView		::even_col_color 	= @base_color
  GtkTreeView		::expander_size 	= 8
  GtkTreeView		::row_ending_details 	= 0
  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.80, @bg_color) 

  bg[NORMAL]       	=  @bg_color
  bg[ACTIVE]        	=  shade (1.00, @bg_color)
  bg[PRELIGHT]     	=  @bg_color
  bg[SELECTED]		=  shade (1.01, @selected_bg_color)
  bg[INSENSITIVE]  	=  darker (@base_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 (0.905, @base_color) 

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

  engine "aurora" 
  {
	  menubarstyle    = 0 		# 0 = flat, 1 = gradient
	  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

  } 
}

# 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"
{
  GtkNotebook::tab-curvature = 0.6 # bug? - cannot be override here :(
  xthickness = 3
  ythickness = 3
}

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

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

  bg[NORMAL]     =  @base_color # shade (1.505, @bg_color) 
  bg[ACTIVE]     =  shade (1.455, @bg_color) 	 
  bg[PRELIGHT]   =  shade (1.505, @bg_color) 	
  bg[SELECTED]   =  @base_color  	#active border color
  bg[INSENSITIVE]  	=  shade (1.455, @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]   =  @base_color  	#active border color
  text[SELECTED] =  @selected_fg_color
  #base[NORMAL]   =  "#FFFFC9" # custom color for box entry bg # @base_color  

  engine "aurora" 
  {
      curvature       = 0.6 
  } 
}
# frames
style "theme-frame" = "theme-wide"
{
  GtkWidget	::draw-border 	= { 0, 0, 0, 0 } 
  fg[SELECTED] =  @selected_bg_color
  bg[SELECTED] =  @bg_color
}
# 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]   =  @base_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]   =  shade (1.05, @text_color) 
  bg[PRELIGHT] =  shade (1.205, @selected_bg_color)
  bg[ACTIVE]   =  "black" # 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 (0.975,@base_color) 	#background
  bg[SELECTED] =  @bg_color  		#tab reflection shade 
  fg[ACTIVE]   =  @fg_color 			#inactive tab text color
  bg[ACTIVE]   =  shade (1.115,@bg_color) 	#inactive tab background
  fg[NORMAL]   =  @fg_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] = @bg_color
  text[NORMAL] = @fg_color
}

style "theme-menu-item" = "theme-wider"
{
  bg[SELECTED]     =  shade (1.01, @selected_bg_color)   # menu item selected background
  text[NORMAL]     =  @fg_color
  fg[NORMAL]       =  @fg_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 
  bg[PRELIGHT]  = lighter (@base_color) 
  bg[ACTIVE]    = @base_color # mix(0.955,  shade (1.05, @bg_color), @selected_bg_color)
  bg[SELECTED]  = @selected_bg_color

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

  bg[NORMAL]   =  @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]        =  lighter (@base_color) 	#background
  text[SELECTED]    =  lighter (@base_color) 		#top-left background color shade
  fg[NORMAL]        =  @bg_color  		#text color
  text[NORMAL]      =  lighter (@bg_color)  	#tooltip border
}

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

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

   xthickness = 4
   ythickness = 4

  bg[NORMAL]     =  shade (1.505, @bg_color) 
  #bg[ACTIVE]     =  shade (1.475, @base_color) 	 
  bg[PRELIGHT]   =  shade (1.505, @bg_color) 	
  bg[SELECTED]   =  @base_color  	#active border color
  #bg[INSENSITIVE]=  shade (1.155,@bg_color)
  fg[ACTIVE]     =  @fg_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]          =  lighter (@base_color) 				# uncheck active background
  base[PRELIGHT]        =  @base_color				# prelight uncheck active background
  bg[NORMAL]            =  darker (@bg_color) # @bg_color 				# active and inactive border 
  bg[SELECTED]          =  shade (1.015,@selected_bg_color) 	# bg_color of check and radio selected 
  text[SELECTED]        =  @bg_color				# check and radio fg selected color 
  text[INSENSITIVE]	=  shade (0.755,@bg_color)		# check and radio fg insensitive color
}

style "aurora-frame-title"
{
	fg[NORMAL]   	= lighter (@base_color)
  	fg[INSENSITIVE]      =  "#555555" 				
}

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

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


