#
# Ksenos, GTK+ Theme
#
# By Ville Eriksson
#


style "ksenos-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 = 0
  ythickness = 0

        fg[NORMAL]        = "#101010"
        fg[PRELIGHT]      = "#101010"
        fg[ACTIVE]        = "#101010"
        fg[SELECTED]      = "#101010"
        fg[INSENSITIVE]   = "#48487f"

        bg[NORMAL]        = "#d1dfee"
        bg[PRELIGHT]      = "#e0efff"
        bg[ACTIVE]        = "#eaf4ff"
        bg[SELECTED]      = "#b5cde7"
        bg[INSENSITIVE]   = "#d1dfee"

        base[NORMAL]      = "#ffffff"
        base[PRELIGHT]    = "#ffffff"
        base[ACTIVE]      = "#dddddd"	# Listview unfocused win highlight
        base[SELECTED]    = "#acb8c4"	#Listview focused win highlight
        base[INSENSITIVE] = "#e7e7ef"

        text[NORMAL]      = "#1f1f3d"
        text[PRELIGHT]    = "#1f1f3d"
        text[ACTIVE]      = "#1f1f3d" 	# Selected text in unfocused win
        text[SELECTED]    = "#1f1f3d"	# Selected text in focused win
        text[INSENSITIVE] = "#1f1f3d"

  engine "ubuntulooks" 
  {
    menubarstyle      = 2       # 0 = flat, 1 = sunken, 2 = flat gradient
    menuitemstyle     = 3       # 0 = flat, 1 = 3d-ish (gradient), 2 = 3d-ish (button)
    listviewitemstyle = 1       # 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 "ksenos-wide" = "ksenos-default"
{
  xthickness = 2
  ythickness = 2
}

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

style "ksenos-button" = "ksenos-wider"
{
  #bg[PRELIGHT] = "#f7f7fc"
  bg[NORMAL] = "#d1dfee"
  bg[PRELIGHT] = "#fffdea"
  bg[ACTIVE] = "#a1bfdf"
  bg[SELECTED] = "#a1bfdf"
  
#  fg[ACTIVE] = "#ffffff"
}

style "ksenos-notebook" = "ksenos-wide"
{
  bg[NORMAL]      = "#f1f1f5"
  bg[INSENSITIVE] = "#f0f0f5"
}

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

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

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

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

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

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

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

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

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

style "metacity-frame" = "ksenos-default"
{
  bg[SELECTED] = "#4c4c54"
}

style "ksenos-scrollbar" = "ksenos-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" = "ksenos-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 "ksenos-default"
class "GtkButton" style "ksenos-button"
#class "GtkScale"  style "ksenos-button"
class "GtkCombo"  style "ksenos-button"
class "GtkRange"  style "ksenos-wide"
class "GtkFrame"  style "ksenos-wide"
class "GtkMenu"   style "ksenos-menu"
class "GtkEntry"  style "ksenos-wider"
class "GtkMenuItem"    style "ksenos-menu-item"
class "GtkNotebook"    style "ksenos-notebook"
class "GtkProgressBar" style "ksenos-progressbar"
class "GtkScrollBar" style "ksenos-scrollbar"
class "MetaFrames" style "metacity-frame"
 
#class "GtkMenuBar" style "ksenos-menubar"

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

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

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

# notebook stuff
widget_class "*.GtkNotebook.*.GtkEventBox" style "ksenos-notebook"
widget_class "*.GtkNotebook.*.GtkViewport" style "ksenos-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"
