# Clearlooks-DarkLime
# version 0.1
# Hacked by Ulisse Perusin <uli.peru@gmail.com>

# based on Darkilouche by Jakub Steiner <jimmac@gmail.com>


#define tiny icon sizes
gtk-icon-sizes = "gtk-menu=16,16:panel-menu=32,32:panel=16,16"
gtk-icon-sizes = "gtk-button=16,16:gtk-large-toolbar=22,22"

#default color scheme
gtk_color_scheme = "fg_color:#0e0e0e\nbg_color:#888a85\nbase_color:#babdb6\ntext_color:#000\nselected_bg_color:#C8FF63\nselected_fg_color:#fff\ntooltip_bg_color:#D9F8A1\ntooltip_fg_color:#000"

#widget class horrors from now on
style "darkilouche-default"
{
  GtkButton      ::default_border    = { 0, 0, 0, 0 }
  GtkRange       ::trough_border     = 0
  GtkPaned       ::handle_size       = 6
  GtkRange       ::slider_width      = 15
  GtkRange       ::stepper_size      = 15

  GtkScrollbar   ::min_slider_length = 30
  GtkCheckButton ::indicator_size    = 14
  GtkMenuBar     ::internal-padding  = 0
  GtkTreeView    ::expander_size     = 14
  GtkExpander    ::expander_size     = 16
  GtkScale       ::slider-length     = 27

  GtkButton      ::child-displacement-x = 1
  GtkButton      ::child-displacement-y = 1

  WnckTasklist   ::fade-overlay-rect = 0
  
  GtkMenu::vertical_padding = 4
  GtkMenu::horizontal_padding = 3
  xthickness = 1
  ythickness = 1


  fg[NORMAL]        = @fg_color 
  fg[PRELIGHT]      = @fg_color 
  fg[SELECTED]      = @selected_fg_color 
  fg[ACTIVE]        = @fg_color 
  fg[INSENSITIVE]   = darker (@bg_color) 

  bg[NORMAL]        = @bg_color
  bg[PRELIGHT]      = shade (1.02, @bg_color) 
  bg[SELECTED]	     = shade (0.5, @bg_color) 
  bg[INSENSITIVE]   = @bg_color 
  bg[ACTIVE]        = shade (0.9, @bg_color) 

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

  text[NORMAL]      = @text_color 
  text[PRELIGHT]    = @text_color 
  text[ACTIVE]      = @text_color 
  text[SELECTED]    = @text_color 
  text[INSENSITIVE] = @text_color

  engine "clearlooks" 
  {
    #scrollbar_color   = "#76acde"
    menubarstyle      = 2       # 0 = flat, 1 = sunken, 2 = flat gradient
    toolbarstyle      = 0       # 0 = flat, 1 = enable effects
    animation         = TRUE
    style             = GUMMY
    radius            = 3.0
    colorize_scrollbar = TRUE
  }

}


style "darkilouche-wide" = "darkilouche-default"
{
  xthickness = 2
  ythickness = 2
}

style "darkilouche-wider" = "darkilouche-default"
{
  xthickness = 3
  ythickness = 3
}

style "darkilouche-button" = "darkilouche-wider"
{
  bg[NORMAL]        = shade (1.05, @bg_color) 
  bg[INSENSITIVE]   = shade (1.04, @bg_color) 
  bg[PRELIGHT]      = shade (1.08, @bg_color) 
  fg[PRELIGHT]		  = shade (0.9, @selected_fg_color)
}

style "darkilouche-radiobutton" = "darkilouche-wider"
{
	  bg[SELECTED]   = @selected_bg_color
  base[NORMAL]      = shade(0.50,@selected_bg_color)
  base[PRELIGHT]    = shade (0.55, @selected_bg_color) 
  base[ACTIVE]      = shade (0.75, @selected_bg_color) 
  base[SELECTED]    = shade (0.75, @selected_bg_color) 
  base[INSENSITIVE] = shade (0.50, @selected_bg_color  )
}

style "darkilouche-notebook" = "darkilouche-wide"
{
  bg[SELECTED]      = shade (0.8, @selected_bg_color)
  bg[NORMAL] =  shade (1.1, @bg_color)
}

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





# File, Edit ...
style "darkilouche-menubar" = "darkilouche-default"
{
  bg[NORMAL]   = shade (0.74, @bg_color)
}


style "darkilouche-menubar-item" = "darkilouche-button"
{
    #fg[PRELIGHT] = shade (0.8, @selected_fg_color) 
}




#individual menus

style "darkilouche-menu" = "darkilouche-default"
{
  xthickness = 0
  ythickness = 0
  bg[NORMAL] = shade (0.6, @bg_color)   
}

style "darkilouche-menu-item" = "darkilouche-default"
{
  xthickness = 2
  ythickness = 3
  #fg[PRELIGHT] = shade (0.5, @bg_color)   
  fg[NORMAL] = shade (0.95, @selected_fg_color) 
  text[PRELIGHT] = @bg_color
  	bg[SELECTED] = @selected_bg_color    
	bg[NORMAL] = shade (0.6, @bg_color) #separator
	bg[INSENSITIVE] = shade (0.5, @bg_color) #inactive highlight arrows 
}

style "darkilouche-frame-title" = "darkilouche-default"
{
  fg[NORMAL] = lighter (@fg_color)
}

style "darkilouche-tooltips" = "darkilouche-default"
{
  xthickness = 4
  ythickness = 4
	bg[NORMAL] = @tooltip_bg_color
	fg[NORMAL] = @tooltip_fg_color
  #bg[NORMAL] = shade (1.2, @selected_bg_color)
}

style "darkilouche-progressbar" = "darkilouche-wide" 
{
  xthickness = 1
  ythickness = 1
  bg[SELECTED]  = shade (1.1, @selected_bg_color)

}


style "darkilouche-combo" = "darkilouche-button"
{
}

style "darkilouche-scale" = "darkilouche-button"
{
	GtkRange::trough-side-details = 1
}	

style "darkilouche-dialogbutton" = "darkilouche-default"
{

	#gtk-button-images = 0
	#GtkButton::inner-border = {4,4,4,4}

	bg[NORMAL]        = shade (.5, @bg_color) # normal bcg
	fg[NORMAL]        = @selected_fg_color
  bg[INSENSITIVE]   = shade (.8, @bg_color) # disabled bcg
	fg[INSENSITIVE]   = @selected_fg_color
  bg[PRELIGHT]      = shade (.65, @bg_color) # hover bcg
	fg[PRELIGHT]      = @selected_fg_color
  bg[ACTIVE]        = shade (.4, @bg_color) # pushed bcg
}

style "darkilouche-tree" = "darkilouche-default"
{
  xthickness = 2
  ythickness = 2
}



#special case panel menus
style "panel-menu" = "darkilouche-default"
{
	bg[NORMAL] = @bg_color
}

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

style "evolution-hack" = "darkilouche-default"
{
        bg[ACTIVE]   = @selected_bg_color  
        bg[SELECTED] = @selected_bg_color  
        fg[ACTIVE]   = @text_color
        fg[SELECTED] = shade (0.5, @bg_color)
}

style "fspot-photos" = "darkilouche-default"
{
         base[NORMAL] = shade (0.5, @bg_color)
         fg[NORMAL] = "#000000"
}








# widget styles
class "GtkWidget"    style "darkilouche-default"
class "GtkButton"    style "darkilouche-button"
class "GtkScale"     style "darkilouche-scale"
class "GtkCombo"     style "darkilouche-button"
class "GtkRange"     style "darkilouche-wide"
class "GtkFrame"     style "darkilouche-wide"
class "GtkSeparator" style "darkilouche-wide"
class "GtkMenu"      style "darkilouche-menu"
class "GtkEntry"     style "darkilouche-wider"
class "GtkMenuItem"    style "darkilouche-menu-item"
class "GtkNotebook"    style "darkilouche-notebook"
class "GtkProgressBar" style "darkilouche-progressbar"
class "GtkMenuBar" style "darkilouche-menubar"

class "GtkCheckButton" style "darkilouche-radiobutton"

widget_class "*MenuItem.*" style "darkilouche-menu-item"
#widget_class "*.GtkMenuBar.*MenuItem.*" style "darkilouche-menubar-item"

#dialog button
widget_class "*.Gtk*ButtonBox.*Button*" style "darkilouche-dialogbutton"

#menu stripe (but not on the panel)
widget_class "*MenuItem.*" style "darkilouche-menu-item"
class "PanelMenuBar" style "panel-menu"

# combobox stuff
widget_class "*.GtkComboBox.GtkButton" style "darkilouche-combo"
widget_class "*.GtkCombo.GtkButton"    style "darkilouche-combo"
# tooltips stuff
widget_class "*.tooltips.*.GtkToggleButton" style "darkilouche-tasklist" ####darkilouche-tasklist
widget "gtk-tooltip*" style "darkilouche-tooltips"

# treeview stuff
widget_class "*.GtkTreeView.GtkButton" style "darkilouche-tree"
widget_class "*.GtkCTree.GtkButton" style "darkilouche-tree"
widget_class "*.GtkList.GtkButton" style "darkilouche-tree"
widget_class "*.GtkCList.GtkButton" style "darkilouche-tree"
widget_class "*.GtkFrame.GtkLabel" style "darkilouche-frame-title"

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

#nautilus search stripe
widget "*.nautilus-extra-view-widget" style:highest "extra-view"

#f-spot stuff
class "__gtksharp_*_IconView" style "fspot-photos"
widget_class "*.__gtksharp_*_PhotoView.*.GtkEventBox*" style "fspot-photos"


# Evolution
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 "menu_color"
{
fg[NORMAL] = @fg_color
fg[PRELIGHT] = @fg_color
fg[SELECTED] = @selected_fg_color
fg[ACTIVE] = @fg_color
fg[INSENSITIVE] = darker (@bg_color)
bg[NORMAL] = @bg_color
bg[PRELIGHT] = shade (1.02, @bg_color)
bg[SELECTED] = shade (1.5, @bg_color)
bg[INSENSITIVE] = @bg_color
bg[ACTIVE] = shade (0.9, @bg_color)
}

widget_class "Menu" style "menu_color" 
