# Theme by - Patrick Yavitz / pyavitz@gmail.com

style "default"
{

    GtkCheckButton::indicator_size    = 11
    GtkCheckMenuItem::indicator_size    = 11
    GtkRadioButton::indicator_size    = 11
    GtkRadioMenuItem::indicator_size    = 11
    GtkMenuItem::selected_shadow_type = etched-in
    GtkPaned::handle_full_size        = 1
    GtkPaned::handle_size             = 1
    GtkScale       ::slider-length        = 23
    GtkScale       ::trough-side-details  = 1
    GtkScrollbar   ::min-slider-length    = 30
    GtkRange       ::trough-border        = 0
    GtkRange       ::slider-width         = 15
    GtkRange       ::stepper-size         = 15
    GtkSpinButton::shadow_type        = none
    #GtkWidget::internal_padding       = 0
    GtkWidget::focus_padding          = 0
    GtkWidget::interior_focus         = 0
    GtkWidget::focus-line-width =    0
    GtkWidget::focus-line-pattern =  ""
    GtkScale::value_spacing = 0
    #GtkArrow::shadow_type 		= in
    #GtkMenuBar::internal-padding      = 1
    GtkMenuBar::shadow_type           = etched-in
    Menu::shadow_type           = etched-in
    GtkToolbar::shadow_type           = none
    GtkButton::child_displacement_x   = 0
    GtkButton::child_displacement_y   = 1
    GtkButton::indicator_size = 0
    GtkOptionMenu::indicator_size = { 6, 6 }
    GtkOptionMenu::indicator_spacing = { 0, 4, 0, 0 }
    WnckTasklist   ::fade-overlay-rect    = 0

	xthickness = 1
	ythickness = 1

  fg[NORMAL]       	= "#353535"
  fg[ACTIVE]       		= "#353535"
  fg[PRELIGHT]     	= "#000000"
  fg[SELECTED]     	= "#000000"
  fg[INSENSITIVE]  	= "#9B9B9B"

  bg[NORMAL]       	= "#e7e7e7"
  bg[ACTIVE]       		= "#e7e7e7"
  bg[PRELIGHT]     	= "#FFFFFF"
  bg[SELECTED]     	= "#A3A3A3"
  bg[INSENSITIVE]  	= "#ffffff"

  base[NORMAL]     	= "#ffffff"
  base[ACTIVE]     	= "#C5C5C5"
  base[PRELIGHT]   	= "#FFFFFF"
  base[INSENSITIVE]= "#f4f4f4"
  base[SELECTED]   = "#C5C5C5"

  text[INSENSITIVE]	= "#9B9B9B"
  text[SELECTED]   	= "#353535"
  text[ACTIVE]     	= "#353535"
  text[PRELIGHT]   	= "#353535"

engine "murrine" 
  {
	scrollbar_color = "#373737"
	scrollbarstyle = 3
	contrast = 1.05
	menustyle = 1
	glazestyle = 2 # 0 = flat hilight, 1 = curved hilight, 2 = concave style
	menubarstyle = 1 # 0 = flat, 1 = glassy, 2 = gradient, 3 = striped
	menubaritemstyle = 0 # 0 = menuitem look, 1 = button look
	menuitemstyle = 2 # 0 = flat, 1 = glassy, 2 = striped
	listviewheaderstyle = 1 # 0 = flat, 1 = glassy
	roundness = 0 # 0 = squared, 1 = old default, more will increase roundness
    	animation = TRUE # FALSE = disabled, TRUE = enabled
 	
      hilight_ratio = 1.0
        gradients = TRUE
        listviewstyle = 1
   }
}
style "wide"
{
    bg[SELECTED]      = "#373737"
	xthickness = 2
	ythickness = 2
}

style "wider"
{
	xthickness = 3
	ythickness = 3
}

style "button"
{
	xthickness   = 2
	ythickness   = 2
	engine  "murrine" {
	}

}

style "notebook"
{
	xthickness = 2
	ythickness = 2
}

style "tasklist"
{
	xthickness = 5
	ythickness = 3
	engine  "murrine"  {
	}
}

style "menu"
{
	xthickness = 0
	ythickness = 0
	bg[NORMAL] = "#FFFFFF"
	engine  "murrine"  {
	}
}

style "menu-item"
{
	xthickness = 2
	ythickness = 2

}


style "menu-bar"
{
  xthickness = 2
  ythickness = 1
  bg[NORMAL] = "#A3A3A3"
  fg[NORMAL] = "#000000"
  text[NORMAL] = "#000000"
  fg[PRELIGHT] = "#404040"
  fg[ACTIVE] = "#404040"
  fg[INSENSITIVE] = "#DDE4FF"
  text[PRELIGHT] = "#DDE4FF"
  
}

widget_class "*MenuBar*" style "menu-bar"
class "*MenuBar*" style "menu-bar"

# Based on the default style so that the colors from the button
# style are overriden again.
style "treeview-header" = "default"
{
	xthickness = 2
	ythickness = 1
}

style "frame-title"
{

}

style "tooltips"
{
	xthickness = 4
	ythickness = 4
  bg[NORMAL]		= "#568DA1"
}

style "progressbar"
{
   # bg[SELECTED]      =  "#A3A3A3"
	xthickness = 1
	ythickness = 1

}

style "nautilus-location" {

}

####### Panel

style "panel"
{
  xthickness = 1
  ythickness = 1
  }
widget_class "*Panel*" style "panel"
class "*Panel*" style "panel"
widget_class "*Panel*GtkToggleButton" style "panel"
class "*Panel*GtkToggleButton" style "panel"
widget_class "*Panel*GtkButton" style "panel"
class "*Panel*GtkButton" style "panel"
widget_class "*Tray*" style "panel"
class "*Tray*" style "panel"

#########################################
# Matches
#########################################

#  default style is applied to every widget
class "GtkWidget"    style "default"

# Increase the x/ythickness in some widgets
class "GtkToolbar"   style "default" 
class "GtkRange"     style "wide"
class "GtkFrame"     style "wide"
class "GtkSeparator" style "wide"
class "GtkEntry"     style "wider"

# General matching following, the order is choosen so that the right styles override each other
# eg. progressbar needs to be more important then the menu match.

widget_class "*<GtkButton>"      style "button"
widget_class "*<GtkNotebook>"    style "notebook"
widget_class "*<GtkProgressBar>" style "progressbar"

widget_class "*<GtkMenu>*"       style "menu"
widget_class "*<GtkMenuItem>*"      style "menu-item"

widget_class "*.<GtkFrame>.<GtkLabel>" style "frame-title"

# Treeview header
widget_class "*.<GtkTreeView>.<GtkButton>" style "treeview-header"
widget_class "*.<GtkCTree>.<GtkButton>"    style "treeview-header"
widget_class "*.<GtkList>.<GtkButton>"     style "treeview-header"
widget_class "*.<GtkCList>.<GtkButton>"    style "treeview-header"

# The window of the tooltip is called "gtk-tooltip"
################################
# FIXME:
# This will not work if one embeds eg. a button into the tooltip.
# As far as I can tell right now we will need to rework the theme
# quite a bit to get this working correctly.
# (It will involve setting different priorities, etc.)
################################
widget "gtk-tooltip*" style "tooltips"



###################################################
# Special cases and work arounds
###################################################

# Special case the nautilus-extra-view-widget
# ToDo: A more generic approach for all applications that have a widget like this.
widget "*.nautilus-extra-view-widget" style : highest "nautilus-location"

# Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
# Note that the work around assumes that the combobox is _not_ in
# appears-as-list mode.
# Similar hack also in the menuitem style.
style "combobox-text-color-workaround"
{
  text[INSENSITIVE]	= "#9B9B9B"
  text[SELECTED]   	= "#353535"
  text[ACTIVE]     	= "#353535"
  text[PRELIGHT]   	= "#353535"
}
widget_class "*.GtkComboBox"   style "combobox-text-color-workaround"

####### Xfwm4

style "titlebar"
{
    bg[SELECTED]      = "#373737"
    fg[SELECTED]      = "#FFFFFF"
    bg[INSENSITIVE]   = "#E7E7E7"
    #fg[INSENSITIVE]   = "#628BC0"
}
class "xfwm"                 style "titlebar"
widget "xfwm"                style "titlebar"
class "MetaFrames"           style "titlebar"
widget "MetaFrames"          style "titlebar"
