# ===[ 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)

############################################################
#Aurora Black Panther is based on Aurora GTK-Engine
#It is written by undercover90
#Licence: Gnu/GPL
#Date: 13-06-07
#Published: www.gnome-look.org
###########################################################

#default color scheme
gtk_color_scheme = "fg_color:#D4D4D4\nbg_color:#191919\nbase_color:#191919\ntext_color:#767171\nselected_bg_color:#C3C3C3\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 = 1
  
  GtkRange::trough_border = 0
  GtkRange::slider_width = 19
  GtkRange::stepper_size = 17

  GtkScrollbar::min_slider_length = 30
  GtkScrollbar::has-secondary-backward-stepper = 1
  
  GtkPaned::handle_size  = 8
    
  GtkMenuBar::internal-padding  = 0
  GtkTreeView::expander_size     = 13 #15
  GtkExpander::expander_size     = 13 #17
  
  GtkScale::slider-length = 25
  GtkScale::slider-width  = 19
  GtkScale::trough-border = 0

  GtkWidget::link-color = "#009bf9" # blue
  GtkWidget::visited-link-color = "#8c00dc" #purple

  WnckTasklist::fade-overlay-rect = 0
  WnckTasklist::fade-loop-time = 5.0 # 5 seconds
  WnckTasklist::fade-opacity = 1.0 # 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 = 3
  #set to roundness -1, for "best" appearance
  GtkNotebook::tab-overlap = 4

  GtkMenuItem::arrow-spacing = 10

  #Spacing between edge with indicator and text
  GtkOptionMenu  ::indicator-size = {9, 5}
  GtkOptionMenu  ::indicator-spacing = {6, 5, 2, 2}

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

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

  GtkTreeView::horizontal_separator = 0

  GtkEntry::cursor_color = "#ffffff"
  GtkTextView::cursor_color = "#ffffff"

  xthickness = 1
  ythickness = 1

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

  bg[NORMAL]       	=  @bg_color
  bg[ACTIVE]        	=  shade (1.025,@bg_color)
  bg[PRELIGHT]     	=  shade (1.10,@bg_color)
  bg[SELECTED]	    	=  @selected_bg_color
  bg[INSENSITIVE]  	=  shade (1.02,@bg_color) 

  bg_pixmap[NORMAL]      = "bkg/brushed.png"
  bg_pixmap[PRELIGHT]    = "bkg/brushed.png"
  bg_pixmap[ACTIVE]      = "bkg/brushed.png"
  bg_pixmap[SELECTED]    = "bkg/brushed.png"
  bg_pixmap[INSENSITIVE] = "bkg/brushed.png"

  base[NORMAL]     	=  @base_color
  base[ACTIVE]     	=  shade (0.65,@base_color) 
  base[PRELIGHT]   	=  @base_color
  base[SELECTED]	=  @selected_bg_color
  base[INSENSITIVE]	=  shade (1.025,@bg_color)
 
  text[NORMAL]     	=  @text_color
  text[ACTIVE]		=  shade (0.90,@base_color)
  text[PRELIGHT]   	=  @text_color
  text[SELECTED]   	=  @selected_fg_color
  text[INSENSITIVE]	=  mix (0.65,@bg_color,@fg_color)

  engine "aurora" 
  {
    	contrast		= 0.5
	menubarstyle    	= 0 # 0 = flat, 1 = gradient
	curvature 		= 5
	arrowsize 		= 1 # controls combo_arrow circle size.  Diameter set by (11 + 2 * arrowsize)
	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"
{
  bg[NORMAL]   =  shade (1.35,@bg_color)
  bg[ACTIVE]   =  shade (0.85,@bg_color)
  bg[PRELIGHT] =  mix(0.70, shade (1.35,@bg_color), @selected_bg_color)

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

style "theme-entry" = "theme-button" { }

style "theme-toolbar" 
{
	fg[PRELIGHT] = "#000000"
	fg[ACTIVE]   = "#ffffff"

	xthickness = 2
	ythickness = 0

	engine "pixmap"
	{
   # Menubar background
		image
		{
			function = BOX
			state = NORMAL
			file = "bkg/brushed.png"
			#border	= { 2, 2, 2, 2 }
			stretch	= FALSE
    		}
 	}
}

style "theme-scale" = "theme-default"
{
  bg[NORMAL]   =  shade (1.30,@bg_color)
  bg[PRELIGHT] =  shade (1.60,@bg_color)
}

style "theme-range" = "theme-wide"
{
  bg[NORMAL]   =  shade (1.35,@bg_color)
  bg[PRELIGHT] =  mix(0.70, shade (1.35,@bg_color), @selected_bg_color)

  #Arrows

  text[PRELIGHT] =  @selected_fg_color
  text[ACTIVE]   =  shade (0.30,@selected_fg_color)
  text[INSENSITIVE]	=  shade (0.60,@bg_color)
}

style "theme-notebook" = "theme-wider"
{
  bg[NORMAL] =  shade (1.10,@bg_color)
  fg[ACTIVE] =  shade (0.6,@fg_color)
  bg[ACTIVE] =  shade (0.95,@bg_color)
}

style "theme-paned" = "theme-default" {
  bg[NORMAL] =  shade (1.1,@bg_color)
  bg[PRELIGHT] =  shade (1.2,@bg_color)
}

style "theme-tasklist" = "theme-default"
{
  xthickness = 5
  ythickness = 3
}

style "theme-menu" = "theme-menubar"
{
  xthickness = 0
  ythickness = 0
  bg[NORMAL] = shade (1.11627907,@bg_color)
}

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

style "theme-menubar"		
{
	fg[PRELIGHT] = "#ffffff"
	fg[ACTIVE]   = "#000000"

	xthickness = 2
	ythickness = 0

engine "pixmap"
{
	# Menubar background
	image
	{
		function = BOX
		state = NORMAL
		file = "bkg/brushed.png"
		#border	= { 2, 2, 2, 2 }
		stretch	= FALSE
    	}
    	
    	
 }
}
style "theme-menubar-item" = "theme-menu-item" {}

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

  bg[NORMAL]   =  shade (1.1,@bg_color)
  bg[PRELIGHT] = shade (1.75,@bg_color)
  bg[ACTIVE]   =  mix(0.65, shade (1.1,@bg_color), @selected_bg_color)

}

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

  bg[NORMAL]   =  mix(0.85, @bg_color, @selected_bg_color)
  bg[PRELIGHT] =  mix(0.80, @bg_color, @selected_bg_color)

}

style "theme-tooltips" = "theme-widest"
{
  bg[NORMAL]   =  @selected_bg_color
  bg[SELECTED] =  shade (0.40,@selected_bg_color)
  fg[NORMAL]   =  "#ffffff"


}

style "theme-progressbar" 
{
  bg[NORMAL]			= "#000000"
  bg[SELECTED]			= "#C3C3C3"
}

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

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


style "theme-status" = "theme-wider" { }

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

style "theme-check-radio-buttons" = "theme-button"
{
  GtkWidget ::interior-focus = 0
  text[SELECTED] =  @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 "GtkButton"      style "theme-button"
class "GtkCheckButton" style "theme-check-radio-buttons"
class "GtkRadioButton" style "theme-check-radio-buttons"
class "GtkScale"       style "theme-scale"
class "GtkRange"       style "theme-range"
class "GtkPaned"       style "theme-paned"
class "GtkFrame"       style "theme-widest"
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 "GtkMenuBar"     style "theme-menubar"
class "GtkStatusbar"   style "theme-status"
#class "GtkViewport"   style "theme-view"

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

#For arrow bg
widget_class "*.GtkCombo.*GtkArrow"    style "theme-combo-arrow"
widget_class "*.<GtkButton>.*GtkArrow"    style "theme-combo-arrow"
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"

# tooltips stuff
widget_class "*.tooltips.*.GtkToggleButton" style "theme-tooltips"
widget "gtk-tooltips*"  style "theme-tooltips"


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


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

# menus
widget_class "*MenuItem.*" style "theme-menu-item"

# ColorButton Frame
widget_class	"*Color*Frame*"  style "theme-wide"

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

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


