style "theme-default"
{
  GtkButton      ::default_border    = { 0, 0, 0, 0 }
  GtkRange       ::trough_border     = 0
  GtkPaned       ::handle_size       = 8
  GtkRange       ::slider_width      = 15
  GtkRange       ::stepper_size      = 15
  GtkScrollbar   ::min_slider_length = 30
  GtkCheckButton ::indicator_size    = 14
  GtkMenuBar     ::internal-padding  = 0
  GtkTreeView    ::expander_size     = 12
  GtkExpander    ::expander_size     = 14

  xthickness = 2
  ythickness = 2

  fg[NORMAL]		= "#000000"
  fg[PRELIGHT]		= "#000000"
  fg[ACTIVE]		= "#000000"
  fg[SELECTED]		= "#000000"
  fg[INSENSITIVE]	= "#e5dfc4"
  
  bg[NORMAL]       	= "#fbfaf1"
  bg[ACTIVE]       	= "#e0dcc9"
  bg[PRELIGHT]     	= "#fbfaf1"
  bg[SELECTED]     	= "#b4de8f"
  bg[INSENSITIVE]  	= "#f1efde"

  base[NORMAL]     	= "#ffffff"
  base[ACTIVE]     	= "#dcf1cb"
  base[PRELIGHT]   	= "#b4de8f"
  base[INSENSITIVE]	= "#fbfaf1"
  base[SELECTED]   	= "#b4de8f"

  text[NORMAL]		= "#000000"
  text[PRELIGHT]	= "#000000"
  text[ACTIVE]		= "#000000"
  text[SELECTED]	= "#000000"
  text[INSENSITIVE]	= "#c2ba79"

engine "clearlooks"
   {
    menubarstyle      	= 2       # 0 = flat, 1 = sunken, 2 = flat gradient
    menuitemstyle     	= 1       # 0 = flat, 1 = 3d-ish (gradient), 2 = 3d-ish (button)
    listviewitemstyle 	= 1       # 0 = flat, 1 = 3d-ish (gradient)
    progressbarstyle    = 0       # 0 = candy bar, 1 = fancy candy bar, 2 = flat
  }
}

style "theme-wide" = "theme-default"
{
  xthickness = 3
  ythickness = 3
}

style "theme-notebook" = "theme-wide"
{
    #bg[NORMAL] = "#"
}

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

style "theme-menu" = "theme-default"
{
  xthickness = 3
  ythickness = 3
  bg[NORMAL] = "#ffffff"
}

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

style "theme-menu-itembar" = "theme-default"
{
  xthickness = 0
  ythickness = 0
}

style "theme-tree" = "theme-default"
{
  xthickness = 2
  ythickness = 2
  GtkTreeView::odd_row_color = "#f2faec"
  GtkTreeView::even_row_color = "#ffffff"
}

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

style "theme-panel" = "theme-default"
{
  xthickness = 3
  ythickness = 3
}

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

style "theme-progressbar" = "theme-default"
{
  xthickness = 1
  ythickness = 1
  fg[PRELIGHT]  = "#ffffff"
}

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

style "metacity-frame"
{
  # Normal base color
  #bg[NORMAL]  = "#dcf1cb"

  # Unfocused title background color
  #bg[INSENSITIVE]  = "#fbfaf1"

  # Unfocused title text color
  #fg[INSENSITIVE]  = "#453f15"

  # Focused icon color
  #fg[NORMAL]  = { 0.2, 0.2, 0.2 }

  # Focused title background color
  bg[SELECTED]  = "#8ec560"

  # Focused title text color
  fg[SELECTED]  = "#ffffff"
}

style "theme-button" = "theme-wide"
{
  bg[NORMAL] = "#fbfaf1"
  #bg[PRELIGHT] = "#555555"
}
style "theme-check" = "theme-button"
{
  text[NORMAL]      = "#222222"
  text[PRELIGHT]    = "#555555"
  bg[SELECTED]      = "#67a733"
}

style "theme-panel" = "theme-default"
{
    xthickness = 3
    ythickness = 3
}

style "theme-slab" = "theme-default"
{
    bg[SELECTED] = "#a2e159"    # Outline
    fg[INSENSITIVE] = "#ffffff" # Inner Stroke

    bg[NORMAL] = "#fdfbf7"      # Base bg color
    bg[ACTIVE] = "#f3f7e9"      # Right side bg color
    
    text[INSENSITIVE] = "#5c8dbf" # Right side caption text color
    text[ACTIVE] = "red" # Right side caption text color
    text[SELECTED] = "blue" # Right side caption text color
    text[PRELIGHT] = "orange" # Right side caption text color
    
    bg[ACTIVE] = "#f0f7e9"      # Right side bg color
}

style "theme-slab-group" = "theme-default" 
{
    bg[SELECTED] = "#99b78f"  # Slab group text
}

style "theme-shell" = "theme-default"
{
    bg[ACTIVE] = "#f3f7e9"      # Left side bg color
    #fg[NORMAL] = "#"            # Left side text color
    
    base[NORMAL] = "#fdfbf7"      # Base bg color
    #text[INSENSITIVE] = "#fdfbf7"      # Base text color
}

style "theme-panelbutton" = "theme-default"
{
    engine "pixmap" 
    {
        image
        {
            function		= BOX
            state			= PRELIGHT
            recolorable		= TRUE
            file			= "bg-prelight.png"
            border			= { 1, 1, 1, 1}
            stretch			= TRUE
        }
        image
        {
            function		= BOX
            state			= ACTIVE
            #recolorable	= TRUE
            recolorable		= TRUE
            file			= "bg-selected.png"
            border			= { 1, 1, 1, 1}
            stretch			= TRUE
        }
    }
    
    base[ACTIVE]      = "#96b9d5"
    bg[ACTIVE]      = "#ff0000"
    #fg[ACTIVE]      = "#fff"
}

style "theme-slab-bg-top" = "theme-default" {
}


style "theme-slab-switcherbutton" = "theme-default" {
    xthickness = 8
    ythickness = 1

    bg[NORMAL] = "#e0e8f1"
    bg[ACTIVE] = "#5083b9"
    #fg[ACTIVE] = "#ffffff"
    bg[PRELIGHT] = "#f7f9fc"

    engine "pixmap" 
    {
        image
        {
            function		= BOX
            state			= PRELIGHT
            recolorable		= TRUE
            file			= "button-prelight.png"
            border			= { 2, 2, 2, 2}
            stretch			= TRUE
        }
        image
        {
            function		= BOX
            state			= ACTIVE
            #recolorable	= TRUE
            recolorable		= TRUE
            file			= "button-selected.png"
            border			= { 2, 2, 2, 2}
            stretch			= TRUE
        }
        image
        {
            function		= BOX
            state			= NORMAL
            #recolorable	= TRUE
            recolorable		= TRUE
            file			= "button-normal.png"
            border			= { 2, 2, 2, 2}
            stretch			= TRUE
        }
    }
}

class "GtkCheckButton" style "theme-check"
class "GtkRadioButton" style "theme-check"
#class "GtkCheck*" style "theme-check"
#class "GtkRadio*" style "theme-check"
class "GtkWidget" style "theme-default"
class "GtkButton" style "theme-button"
class "GtkRange" style "theme-wide"
class "GtkFrame" style "theme-wide"
class "GtkStatusbar" style "theme-wide"
class "GtkMenu" style "theme-menu"
class "GtkMenuItem" style "theme-menu-item"
widget_class "*MenuItem.*" style "theme-menu-item"
class "GtkEntry" style "theme-wide"
widget_class "*.tooltips.*.GtkToggleButton" style "theme-tasklist"
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"
widget_class "*.GtkFrame.GtkLabel" style "theme-frame-title"
widget_class "BasePWidget.GtkEventBox.GtkTable.GtkFrame" style "theme-panel"
widget_class "*List" style "theme-tree"
widget_class "GtkCList" style "theme-tree"
widget "gtk-tooltips" style "theme-tooltips"
class "GtkNotebook" style "theme-notebook"
class "GtkProgressBar" style "theme-progressbar"
widget_class "*.GtkComboBox.GtkButton" style "theme-combo"
widget_class "*.GtkCombo.GtkButton" style "theme-combo"
class "MetaFrames" style "metacity-frame"
widget_class "BasePWidget.GtkEventBox.GtkTable.GtkFrame" style "theme-panel"

# GNOME-main-menu slab
class "SlabWindow" style "theme-slab"

# App Browser & Control Center
class "ShellWindow" style "theme-shell"
#widget_class "ShellWindow.*.GtkEventBox" style "theme-shell-highlight"

# panel clock / calendar
#class "GtkCalendar" style "theme-calendar"

# clock and slab buttons get a gradient when clicked
#widget "*clock-applet-button*" style "theme-panelbutton"
widget "*slab-main-menu-panel-button*" style "theme-panelbutton"

# slab specific tweaking (special switcher buttons)
widget "*slab-search-page-selector-pane*" style "theme-slab-bg-top"
widget "*slab-page-selector-toggle-button*" style "theme-slab-switcherbutton"
