# Aurora Smooth, created by zhuqin <zhuqin83@gmail.com>
# Aurora GTK Engine 1.4 required

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

#default color scheme
gtk_color_scheme = "fg_color:#262626\nbg_color:#E0E4E6\nbase_color:#FFFFFF\ntext_color:#262626\nselected_bg_color:#2CB2F5\nselected_fg_color:#FFFFFF"
gtk-menu-popup-delay = 50

style "theme-default"
{
  GtkButton::default_border 			            = { 0, 0, 0, 0 }
  GtkButton::default_outside_border         	= { 0, 0, 0, 0 }
  #GtkButton::inner-border 			              = { 0, 0, 0, 0 }
  GtkButton::outside-border 			            = { 0, 0, 0, 0 }
  GtkButton::button-relief 			              = GTK_RELIEF_NONE
  GtkButton::child-displacement               = 0
  GtkButton::child-displacement-y 	        	= 0
  #GtkEntry::inner-border 	              		= { 0, 0, 0, 0 }
  GtkRange::trough-border 		              	= 0
  GtkRange::slider-width 		                	= 12
  GtkRange::stepper-size 			                = 13
  GtkToolButton::icon-spacing 	          		= 0 # space between icon and text
  GtkToolbar::internal-padding 		          	= 0
  GtkToolbar::button-relief 			            = GTK_RELIEF_NONE
  GtkToolbar::shadow-type 			              = GTK_SHADOW_NONE
  GtkToolbar::space-size 			                = 0
  GtkScrollbar::min_slider_length 		        = 35
  GtkScrollbar::has-secondary-backward-stepper= 1
  GtkPaned::handle_size 			                = 4
  GtkMenuBar::internal-padding 		          	= 0
  GtkMenuBar::shadow_type 	              		= GTK_SHADOW_NONE
  GtkMenuBar::button-relief 		            	= GTK_RELIEF_NONE
  GtkTreeView::expander_size 		            	= 13
  GtkExpander::expander_size 		            	= 20
  GtkScale::slider-length 			              = 20
  GtkScale::slider-width 			                = 11
  GtkScale::trough-border 			              = 0
  GtkScale::value-spacing 			              = 0
  GtkStatusbar::shadow_type 			            = GTK_SHADOW_NONE
  GtkSpinButton::shadow_type 			            = GTK_SHADOW_NONE
  GtkWidget::focus-padding 			              = 1
  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
  GtkMenu::horizontal-offset			            = -1
  #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 			            = 4
  #set to the same as roundness, used for better hotspot selection of tabs
  GtkNotebook::tab-curvature 			            = 0
  GtkNotebook::tab-overlap 			              = 3
  GtkMenuItem::arrow-spacing 			            = 0 # space between label and arrow
  #Spacing between edge with indicator and text
  GtkOptionMenu::indicator-size 		          = { 14, 4 }
  #GtkOptionMenu::indicator-spacing 		      = { 4, 4, 4, 4 }
  GtkCheckButton::indicator-size 		          = 15
  GtkCheckButton::indicator-spacing 		      = 1
  GtkRadioButton::indicator-size 		          = 15
  GtkTreeView::horizontal_separator 		      = 2
  GtkTreeView::odd_row_color 			            = mix (0.8, @base_color, @selected_bg_color)
  GtkScrolledWindow::scrollbar-spacing 		    = 0
  GtkScrolledWindow::scrollbars-within-bevel 	= 1
  GtkScrolledWindow::shadow_type 		          = GTK_SHADOW_NONE
  BonoboUiToolbar::shadow-type 			          = GTK_SHADOW_NONE

  xthickness = 1
  ythickness = 1

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

  bg[NORMAL]        = @bg_color
  bg[ACTIVE]        = shade (1.1, @bg_color)
  bg[PRELIGHT]      = mix (0.8, @bg_color, @selected_bg_color)
  bg[SELECTED]      = @selected_bg_color
  bg[INSENSITIVE]   = shade (1.05, @bg_color)

  base[NORMAL]      = @base_color
  base[ACTIVE]      = mix (0.8, @bg_color, @selected_bg_color)
  base[PRELIGHT]    = @base_color
  base[SELECTED]    = @selected_bg_color
  base[INSENSITIVE] = shade (1.05, @bg_color)

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

  engine "aurora"
  {
    menubarstyle   = 0 # 0 = flat, 1 = gradient, 2 = sunken
    curvature      = 2.5
    arrowsize      = 1 # controls combo_arrow circle size.  Diameter set by (11 + 2 * arrowsize)
    old_arrowstyle = TRUE # set to TRUE for original circled arrows
    animation      = TRUE # FALSE = disabled, TRUE = enabled
    contrast	     = 1.1
  }
}

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

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-wider"
{
  bg[NORMAL]   = shade (1.1, @bg_color)
  bg[ACTIVE]   = mix (0.8, @bg_color, @selected_bg_color)
  bg[PRELIGHT] = mix (0.995, @base_color, shade (0.8, @selected_bg_color))
}
# entry
style "theme-entry" = "theme-widest"{}
# frame
style "theme-frame" = "theme-default"{}
# toolbar
style "theme-toolbar" = "theme-slim"{}

style "theme-handlebox" = "theme-default"
{
  bg[NORMAL] = @bg_color
}
# slider
style "theme-scale" = "theme-button"
{
  xthickness = 1
  ythickness = 1
  bg[NORMAL]   = mix (0.8, @bg_color, @selected_bg_color)
  bg[PRELIGHT] = shade (1.1, mix (0.8, @bg_color, @selected_bg_color))
}
# scrollbar
style "theme-range" = "theme-button"
{
  xthickness = 0
  ythickness = 0
  bg[NORMAL]   = mix (0.8, @bg_color, @selected_bg_color)
  bg[ACTIVE]   = shade (1.1, @bg_color)
  bg[PRELIGHT] = shade (1.1, mix (0.8, @bg_color, @selected_bg_color))
  # Arrows
  text[NORMAL] = shade (0.35, @selected_fg_color)
}

style "theme-notebook" = "theme-default"
{
  ythickness = 2
  bg[NORMAL] = shade (1.1, @bg_color)
  fg[ACTIVE] = lighter (@text_color)
  bg[ACTIVE] = shade (0.95, @bg_color)
}
# resizer
style "theme-paned" = "theme-default"
{
  bg[PRELIGHT] = mix (0.995, @base_color, shade (0.8, @selected_bg_color))
}
# menu
style "theme-menu" = "theme-default"
{
  bg[NORMAL] = @base_color
}

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

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

style "theme-tree" = "theme-slim"
{
  GtkWidget::focus-padding = 0
  # headers
  bg[NORMAL]   = shade (1.1, @bg_color)
  bg[PRELIGHT] = mix (0.8, @base_color, @selected_bg_color)
  bg[ACTIVE]   = mix (0.8, @base_color, @selected_bg_color)
}
# lists
style "theme-tree-arrow" = "theme-slim"
{
  bg[NORMAL] = @selected_bg_color
}
# tooltips
style "theme-tooltips" = "theme-widest"
{
  bg[NORMAL]   = @selected_bg_color
  fg[NORMAL]   = @selected_fg_color
  text[NORMAL] = @bg_color
}

style "theme-progressbar" = "theme-wide"
{
  bg[NORMAL] = @base_color
}

style "theme-combo" = "theme-button"
{
  GtkButton::inner-border = { 0, 2, 0, 0 }
  xthickness = 4
  ythickness = 4
}

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

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

style "theme-check-radio-buttons" = "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 "GtkMenuBar"      style "theme-menubar"
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 "GtkSeparator"    style "theme-wide"
class "GtkArrow"        style "theme-combo-arrow"

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

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

# combobox stuff
widget_class "*.GtkCombo*"    				              style "theme-combo"
widget_class "*.GtkComboBox*"    			              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"

# notebook stuff
widget_class "*<GtkNotebook>"    			              style "theme-notebook"
widget_class "*.GtkNotebook.*GtkEventBox" 		      style "theme-notebook"
widget_class "*.GtkNotebook.*GtkViewport" 		      style "theme-notebook"
widget_class "*.GtkNotebook.GtkLabel*" 			        style "theme-notebook" #for tabs
widget_class "*<GtkNotebook>*<GtkDrawingArea>" 		  style "theme-notebook"
widget_class "*<GtkNotebook>*<GtkLayout>" 		      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"

# 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 # higher value for bigger size panels
}

# Work around the evolution "New" button bug by making the toolbar flat.
# http://bugzilla.gnome.org/show_bug.cgi?id=446953
# Maybe remove this workaround in unstable releases.
widget_class "*Panel*GtkToggleButton*" style "panelbuttons"

style "clearlooks-evo-new-button-workaround"
{
  engine "clearlooks"
  {
    toolbarstyle = 0
  }
}
widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "clearlooks-evo-new-button-workaround"
