#
# Silicon, GTK+ Theme
#
# By Mikkel Kamstrup Erlandsen, March 2006
#
# Based on Heat, by Efbie :
# Simple color variation from the ubuntu human theme
#


style "clearlooks-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 = 35
  GtkCheckButton ::indicator_size    = 14
  GtkMenuBar     ::internal-padding  = 0
  GtkTreeView    ::expander_size     = 14
  GtkExpander    ::expander_size     = 16
  GtkScale       ::slider-length     = 31

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

  xthickness = 1
  ythickness = 1

        fg[NORMAL]        = "#101010"
        fg[PRELIGHT]      = "#101010"
        fg[ACTIVE]        = "#000000"
        fg[SELECTED]      = "#ffffff"
        fg[INSENSITIVE]   = "#b5b3ac"

        bg[NORMAL]        = "#efebe7"
        bg[PRELIGHT]      = "#f5f3f0"
        bg[ACTIVE]        = "#d0c8c1"
        bg[SELECTED]      =  "#8B7E79"
        bg[INSENSITIVE]   = "#efebe7"

        base[NORMAL]      = "#ffffff"
        base[PRELIGHT]    = "#ffffff"
        base[ACTIVE]      = "#dddddd"	# Listview unfocused win highlight
        base[SELECTED]    ="#8B7E79"	#Listview focused win highlight
        base[INSENSITIVE] = "#efebe7"

        text[NORMAL]      = "#000000"
        text[PRELIGHT]    = "#000000"
        text[ACTIVE]      = "#050505" 	# Selected text in unfocused win
        text[SELECTED]    = "#ffffff"		# Selected text in focused win
        text[INSENSITIVE] ="#b5b3ac"

  engine "ubuntulooks" 
  {
    menubarstyle      = 2       # 0 = flat, 1 = sunken, 2 = flat gradient
    menuitemstyle     = 1       # 0 = flat, 1 = 3d-ish (gradient), 2 = 3d-ish (button)
    listviewitemstyle = 0       # 0 = flat, 1 = 3d-ish (gradient)
    progressbarstyle  = 2       # 0 = candy bar, 1 = fancy candy bar, 2 = flat
    animation         = FALSE
    #contrast = 0.2 # Unsupported (but hopefully comming up!)
  }
}


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

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

style "clearlooks-button" = "clearlooks-wider"
{
  #bg[PRELIGHT] = "#fcfaf7"
  bg[NORMAL]        = "#f5f1f2"
  bg[PRELIGHT] = "#f5f3f0"
  bg[ACTIVE] = "#d9d3cc"
  bg[SELECTED] = "#8E8A88"
  
#  fg[ACTIVE] = "#ffffff"
}

style "clearlooks-notebook" = "clearlooks-wide"
{
  bg[NORMAL]      = "#efebe5"
  bg[INSENSITIVE] = "#efebe5"
}

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

style "clearlooks-menu" = "clearlooks-default"
{
  xthickness = 2
  ythickness = 1
  bg[NORMAL] = "#fdfcfa"
}

style "clearlooks-menubar-item" = "clearlooks-button"
{
}

style "clearlooks-menu-item" = "clearlooks-default"
{
  xthickness = 2
  ythickness = 3
  fg[PRELIGHT] = "#ffffff"
  text[PRELIGHT] = "#000000"
}

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

style "clearlooks-frame-title" = "clearlooks-default"
{
  fg[NORMAL] = "#404040"
}

style "clearlooks-tooltips" = "clearlooks-default"
{
  xthickness = 4
  ythickness = 4
  bg[NORMAL] = { 1.0,1.0,0.75 }
}

style "clearlooks-progressbar" = "clearlooks-wide"
{
  xthickness = 2
  ythickness = 2
  fg[PRELIGHT]  = "#ffffff"
}

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

style "metacity-frame" = "clearlooks-default"
{
  bg[SELECTED] = "#544F4C"
}

style "clearlooks-scrollbar" = "clearlooks-default"
{
  bg[NORMAL] = "#ffffff"
  bg[PRELIGHT] = "#ffffff"
}

# Evolution uses bg and fg for its ETree instead of base and text like it should
style "evolution-hack" = "clearlooks-default"
{
  bg[ACTIVE]   = "#dddddd"
  bg[SELECTED] = "#8B7E79"
  fg[ACTIVE]   = "#000000"
  fg[SELECTED] = "#ffffff"
}

style "extra-view-widgets"
{
  # Fx. The special header in Nautilus Search and CD Creator
  bg[NORMAL] = "#9DA3B2"
}

widget "*.nautilus-extra-view-widget" style:highest "extra-view-widgets"



# widget styles
class "GtkWidget" style "clearlooks-default"
class "GtkButton" style "clearlooks-button"
#class "GtkScale"  style "clearlooks-button"
class "GtkCombo"  style "clearlooks-button"
class "GtkRange"  style "clearlooks-wide"
class "GtkFrame"  style "clearlooks-wide"
class "GtkMenu"   style "clearlooks-menu"
class "GtkEntry"  style "clearlooks-wider"
class "GtkMenuItem"    style "clearlooks-menu-item"
class "GtkNotebook"    style "clearlooks-notebook"
class "GtkProgressBar" style "clearlooks-progressbar"
class "GtkScrollBar" style "clearlooks-scrollbar"
class "MetaFrames" style "metacity-frame"
 
#class "GtkMenuBar" style "clearlooks-menubar"

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

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

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

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

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