# Aurora Grainsboro 0.1 GTK+2.0 Theme
# Author: Peter Polonkai <polesz@nedudu.hu>
#
# Description:
#   Modified Grainsboro theme, required Aurora engine
#
# History:
#   2009-10-31.   * 0.1 initial release
#
# License: GPLv3
#

#default color scheme
gtk_color_scheme = "fg_color:#000000\nbg_color:#dcdcdc\nbase_color:#eaeaea\ntext_color:#000000\nselected_bg_color:#a9a9a9\nselected_fg_color:#000000\ntooltip_bg_color:#dcdcdc\ntooltip_fg_color:#2f2f2f"
gtk-menu-popup-delay = 50

style "theme-default"
{
  GtkButton::default_border = { 0, 0, 0, 0 }
  GtkButton::child-displacement-x = 0
  GtkButton::child-displacement-y = 0
  GtkWidget::focus-padding        = 0

  GtkRange::trough-border = 0
  GtkRange::slider-width  = 13
  GtkRange::stepper-size  = 13

  GtkScrollbar::min_slider_length = 30
  GtkScrollbar::has-secondary-backward-stepper = 1

  GtkPaned::handle_size  = 8

  GtkMenuBar::internal-padding   = 0
  GtkTreeView::expander_size     = 13
  GtkExpander::expander_size     = 13

  GtkScale::slider-length = 25
  GtkScale::slider-width  = 13
  GtkScale::trough-border = 1

  GtkWidget::link-color         = "#35447d"
  GtkWidget::visited-link-color = "#631313"

  WnckTasklist::fade-overlay-rect = 0
  WnckTasklist::fade-loop-time    = 5.0 # 5 seconds
  WnckTasklist::fade-opacity      = 0.5 # final opacity

  #makes menu only overlap border
  GtkMenu::horizontal-offset = -1

  #removes extra padding at top and bottom of menus.  Makes menuitem overlap border
  GtkMenu::vertical-padding  = 1

  #set to the same as roundness, used for better hotspot selection of tabs
  GtkNotebook::tab-curvature = 1
  GtkNotebook::tab-overlap   = 3

  GtkMenuItem::arrow-spacing = 10
  #Spacing between edge with indicator and text
  GtkOptionMenu  ::indicator-size    = {11, 5}
  GtkOptionMenu  ::indicator-spacing = {6, 5, 4, 4}

  GtkCheckButton ::indicator-size    = 15
  GtkCheckButton ::indicator-spacing = 0
  GtkRadioButton ::indicator-size    = 15

  GtkTreeView::horizontal_separator = 1
  GtkTreeView::odd_row_color        = mix(0.98, shade (0.93,@base_color), @selected_bg_color)

  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]	    = @selected_bg_color
  bg[INSENSITIVE]   = @bg_color
  bg[ACTIVE]        = shade (0.9, @bg_color)

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

  text[NORMAL]      = @text_color
  text[PRELIGHT]    = @text_color
  text[ACTIVE]      = @selected_fg_color
  text[SELECTED]    = @selected_fg_color
  text[INSENSITIVE] = darker (@bg_color)

  engine "aurora" {
    menubarstyle    = 1 # 0 = flat, 1 = gradient
    curvature       = 2.5
    arrowsize       = 0.2 # controls combo_arrow circle size.  Diameter set by (11 + 2 * arrowsize)
    old_arrowstyle  = FALSE #set to TRUE for original circled arrows
    animation       = TRUE # FALSE = disabled, TRUE = enabled
  }
}


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

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

style "theme-widest" = "theme-default" {
  xthickness = 4
  ythickness = 4
}

style "theme-button" = "theme-wider" {
  bg[NORMAL]      = shade (1.02, @bg_color)
  bg[PRELIGHT]    = shade (0.97, @bg_color)
  bg[ACTIVE]      = shade (0.97, @bg_color)
  bg[INSENSITIVE] = shade (1.01, @bg_color)
}

style "theme-entry" = "theme-button" { }

style "theme-frame" = "theme-default" {
  GtkWidget::draw-border = {0,0,0,0}
}

style "theme-toolbar" = "theme-default" {
  bg[NORMAL] = shade(1.075, @bg_color)
}

style "theme-handlebox" = "theme-default" {
  xthickness = 0
  ythickness = 0
  bg[NORMAL] = shade (0.95,@bg_color)
}

style "theme-scale" = "theme-default" {
  bg[NORMAL]   = shade (0.75,@bg_color)
  bg[PRELIGHT] = shade (0.90,@bg_color)
}

style "theme-range" = "theme-default"
{
  bg[NORMAL]   = shade (1.05, @selected_fg_color)
  bg[ACTIVE]   = @selected_fg_color
  bg[PRELIGHT] = shade (1.25, @selected_fg_color)

  #Arrows
  text[NORMAL]      = shade(0.275, @selected_fg_color)
  text[PRELIGHT]    = @selected_fg_color
  text[ACTIVE]      = shade(0.10, @selected_fg_color)
  text[INSENSITIVE] = mix(0.80, shade(0.90, @bg_color), @fg_color)
}

style "theme-notebook" = "theme-wider"
{
  bg[NORMAL] = shade (1.05, @bg_color)
  fg[ACTIVE] = shade (0.30, @bg_color)
  bg[ACTIVE] = shade (1.05, @bg_color)
}

style "theme-paned" = "theme-default"
{
  bg[PRELIGHT] = shade (1.1, @bg_color)
}

style "theme-menu" = "theme-default"
{
  bg_pixmap[NORMAL] = "menu-bg.png"
  bg[NORMAL]   = mix(0.80, shade (1.20, @bg_color), @selected_bg_color)
}

style "theme-menu-item" = "theme-menu"
{
  xthickness = 3
  ythickness = 3

  fg[PRELIGHT] = @selected_fg_color
  bg[SELECTED] = @selected_bg_color

  engine "aurora" {
    curvature = 2.0
  }
}

style "theme-menubar" = "theme-wider"
{ 
  bg_pixmap[NORMAL] = "menu-theme.png"
  bg_pixmap[ACTIVE] = "menu-theme.png"
#  bg[NORMAL]        = mix(0.70, shade (1.40, @selected_bg_color), @selected_bg_color)
}

style "theme-menubar-item" = "theme-menubar"
{
  fg[PRELIGHT] = @selected_fg_color
  bg[SELECTED] = @selected_bg_color

  engine "murrine" {
    roundness = 2
  }

}

style "theme-tree" = "theme-wide"
{
  GtkWidget::focus-padding = 0

  bg[NORMAL]   = shade (1.10,@bg_color)
  bg[PRELIGHT] = shade (1.30,@bg_color)
  bg[ACTIVE]   = mix(0.90, shade (1.05,@bg_color), @selected_bg_color)
}

style "theme-tree-arrow" = "theme-default"
{
  bg[NORMAL]   = mix(0.70, shade (0.75,@bg_color), shade(0.80,@selected_bg_color))
  bg[PRELIGHT] = mix(0.80, @bg_color, @selected_bg_color)
}

style "theme-tooltips" = "theme-widest"
{
  bg[NORMAL]   = shade (0.95, @tooltip_bg_color)
  fg[NORMAL]   = shade (1.10, @tooltip_fg_color)
}

style "theme-progressbar" = "theme-wide"
{
  bg[NORMAL]   = shade (1.10, @bg_color)
  fg[PRELIGHT] = @selected_fg_color
}

style "theme-combo" = "theme-button" {
  GtkButton::inner-border = { 0, 1, 0, 0 }
}

style "theme-combo-arrow" = "theme-button"
{
  xthickness = 0
  ythickness = 0
}

style "theme-view" = "theme-default"
{
  xthickness = 0
  ythickness = 0
}

style "theme-check-radio-buttons" = "theme-button"
{
  GtkWidget::interior-focus = 0
  GtkWidget::focus-padding  = 1

  text[SELECTED]    = @selected_fg_color
  text[INSENSITIVE] = shade(0.625,@bg_color)
  base[PRELIGHT]    = mix(0.80, @base_color, @selected_bg_color)
}

style "theme-scrollbar" = "theme-default"
{
  bg_pixmap[NORMAL] = "panel-bg.png"
  bg[NORMAL] = mix(0.70, shade (1.10, @selected_bg_color), @selected_bg_color)
  fg[NORMAL] = shade(1.25, @text_color)
  engine "aurora" {
    curvature = 0.5
  }
}

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


#nautilus search stripe
widget "*.nautilus-extra-view-widget" style:highest "extra-view"
widget "*.nautilus-extra-view-widget.*.GtkLabel*" style:highest "extra-view"
widget "*.nautilus-extra-view-widget.*Button*.GtkLabel*" style:highest "theme-button"

# widget styles
class "GtkWidget"       style "theme-default"
class "GtkCheckButton"  style "theme-check-radio-buttons"
class "GtkButton"       style "theme-button"
class "GtkScale"        style "theme-scale"
class "GtkRange"        style "theme-range"
class "GtkPaned"        style "theme-paned"
class "GtkFrame"        style "theme-frame"
class "GtkMenu"         style "theme-menu"
class "GtkEntry"        style "theme-entry"
class "GtkMenuItem"     style "theme-menu-item"
class "GtkNotebook"     style "theme-notebook"
class "GtkProgressBar"  style "theme-progressbar"
class "GtkToolbar"      style "theme-toolbar"
class "GtkHandleBox*"   style "theme-handlebox"
class "GtkMenuBar"      style "theme-menubar"
class "GtkSeparator"    style "theme-wide"
class "GtkArrow"        style "theme-combo-arrow"
class "GtkScrollbar"    style "theme-scrollbar"

# menus
widget_class "*.<GtkMenuItem>.*"          style "theme-menu-item"

# combobox stuff
widget_class "*.GtkComboBoxEntry*"        style "theme-combo"
widget_class "*.GtkCombo.GtkButton"       style "theme-combo"

# tooltips stuff
widget "gtk-tooltips*"                    style "theme-tooltips"
widget "gtk-tooltip*"                     style "theme-tooltips"

widget_class "*.GtkNotebook.*GtkEventBox" style "theme-notebook"
widget_class "*.GtkNotebook.*GtkViewport" style "theme-notebook"
widget_class "*.GtkNotebook.GtkLabel*"    style "theme-notebook" #for tabs

# treeview stuff
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 "*.ETree*"                   style "theme-tree" #evolution

#For arrow bg
widget_class "*.<GtkTreeView>.GtkButton.*GtkArrow" style "theme-tree-arrow"
widget_class "*.GtkCTree.GtkButton.*GtkArrow"      style "theme-tree-arrow"
widget_class "*.GtkList.GtkButton.*GtkArrow"       style "theme-tree-arrow"

style "panel" = "theme-default"
{
  bg[NORMAL]      = mix(0.60, shade (1.40, @bg_color), @selected_bg_color)
  bg[SELECTED]    = mix(0.10, shade (1.80, @bg_color), @selected_bg_color)
  bg[ACTIVE]      = mix(0.70, shade (1.30, @selected_bg_color), @selected_bg_color)
  bg[PRELIGHT]    = mix(0.10, shade (1.40, @bg_color), @selected_bg_color)
  bg_pixmap[NORMAL] = "panel-bg.png"
  engine "aurora" {
     curvature = 5.5
  }
}

class "*Mail*"                         style "panel"
class "*notif*"                        style "panel"
class "*Notif*"                        style "panel"
widget_class "*Panel*GtkToggleButton"  style "panel"
widget_class "*Panel*GtkButton"        style "panel"
widget_class "*.Panel*Button*GtkLabel" style "panel"
widget_class "*.Panel*GtkLabel"        style "panel"
widget_class "*Netstatus*"             style "panel"
widget_class "*Tomboy*Tray*"           style "panel"
widget "*fast-user-switch*"            style "panel"
widget_class "*PanelToplevel*"         style "panel"
class "Xfce*Panel*"                    style "panel"
widget "*PanelWidget*"                 style "panel"
class "*PanelApplet*"                  style "panel"
widget_class "*Xfce*Panel*"            style "panel"
widget_class "*Panel*Applet*"          style "panel"
widget_class "*Mail*"                  style "panel"
widget_class "*notif*"                 style "panel"
widget_class "*Notif*"                 style "panel"
widget_class "*Tray*"                  style "panel"
widget_class "*tray*"                  style "panel"
class "*Tray*"                         style "panel"
class "*tray*"                         style "panel"

#uncommented lines below results in a black navigation bar in file-roller
widget_class "*BonoboDockItem"         style "panel"
class "*BonoboDockItem"                style "panel"

style "panelbuttons" = "panel"
{
  ythickness= 3
  fg[ACTIVE] = @text_color
  bg_pixmap[PRELIGHT] = "panel-bg.png"
}

widget_class "*Panel*GtkToggleButton"  style "panelbuttons"
widget "*.tasklist-button"             style "panelbuttons"
widget_class "*Panel*GtkButton"        style "panelbuttons"
widget_class "*.Panel*Button*GtkLabel" style "panelbuttons"
widget "*.clock-applet-button"         style "panelbuttons"
