# Moblin Netbook GTK+ theme

gtk_button_images = 0
gtk_menu_images = 0
gtk-auto-mnemonics = 1

gtk-icon-sizes = "gtk-menu=16,16:panel-menu=24,24:panel=16,16:gtk-button=16,16:gtk-large-toolbar=24,24"

gtk_color_scheme = "bg_color:#fbfbfb;fg_color:#2b2b2b;text_color:#2b2b2b;base_color:#fff;selected_bg_color:#44c5e5;selected_fg_color:#fff;grey:#8d8d8d;blue:#44c5e5;toolbar_color:#f1f1f1;menubar_color:#464646;frame_color:#333333;inactive_frame_color:#414141;"

style "default"
{

	# Link colors
  GtkWidget::link_color = @blue
  GtkWidget::visited_link_color = @blue
  GtkWidget::cursor-color    = @blue
  GtkWidget::secondary-cursor-color = @blue
  GtkHTML::link_color = @blue
  GtkHTML::alink_color = @blue
  GtkHTML::vlink_color = @blue

	# Spell check underline color
  GtkHTML::spell_error_color = @blue  

  GtkWidget::focus-padding = 0
  GtkWidget::focus-line-width = 2

  GtkExpander::expander-size = 16
  GtkTreeView::expander-size = 16

  GtkTextView::error-underline-color = "#febf00"

  xthickness = 4
  ythickness = 4

  GtkRange::trough_border = 2

  fg [NORMAL] = @fg_color
  fg [PRELIGHT] = @fg_color
  fg [ACTIVE] = @fg_color
  fg [INSENSITIVE] = shade (1.3, @grey)
  fg [SELECTED] = @selected_fg_color

  bg [NORMAL] = @bg_color
  bg [PRELIGHT] = @bg_color
  bg [ACTIVE] = @bg_color
  bg [INSENSITIVE] = "#f1f1f1"
  bg [SELECTED] = @blue

  text [NORMAL] = @text_color
  text [PRELIGHT] = @selected_fg_color
  text [SELECTED] = @selected_fg_color
  text [ACTIVE] = @selected_fg_color
  text [INSENSITIVE] = shade (1.3, @grey)

  base [NORMAL] = @base_color
  base [PRELIGHT] = @base_color
  base [SELECTED] = @selected_bg_color
  base [ACTIVE] = @selected_bg_color
  base [INSENSITIVE] = "#f1f1f1"

  engine "moblin-netbook-engine"
  {
    radius = 3
    border [NORMAL] = @grey
    border [PRELIGHT] = @menubar_color
    border [SELECTED] = @menubar_color
    border [ACTIVE] = @menubar_color
    border [INSENSITIVE] = "#d7d9d4"
  }

}
class "GtkWidget" style "default"


style "button"
{
  GtkButton::default_border = {0, 0, 0, 0}

  # Allow for bottom shadow in buttons
  GtkButton::inner-border = { 0, 0, 0, 0 }
  bg [NORMAL] = "#ffffff"
  bg [PRELIGHT] = "#ffffff"
  bg [ACTIVE] = "#ffffff"
  bg [INSENSITIVE] = "#f1f1f1"
  GtkButton::child-displacement-x = 1
  GtkButton::child-displacement-y = 1
  GtkButton::displace-focus = 1
  GtkButton::inner-border = { 4, 4, 4, 4 }
  bg [SELECTED] = shade (1.5, @blue)
  fg [NORMAL] = @fg_color
  fg [PRELIGHT] = @fg_color
  text [NORMAL] = @fg_color
  text [PRELIGHT] = @fg_color

  xthickness = 4
  ythickness = 1

  engine "moblin-netbook-engine"
  {
    radius = 3
    border [PRELIGHT] = shade (0.85, @blue)
    border [ACTIVE] = @blue
    border [INSENSITIVE] = "#d7d9d4"
  }
}
widget_class "*Button*" style "button"
widget_class "*InfoBar*" style "button"


style "nautilus-icon-container"
{
  base [SELECTED] = @blue
  NautilusIconContainer::selection_box_color = @blue
  NautilusIconContainer::dark_info_color = shade (0.6, @blue)
  NautilusIconContainer::light_info_color = shade (0.6, @blue)
  NautilusIconContainer::prelight_icon_color = "#ff0000"
  NautilusIconContainer::prelight_icon_brightness = 150
}
class "NautilusIconContainer" style "nautilus-icon-container"


style "checkbutton"
{
  GtkCheckButton::indicator_size = 15

  base [SELECTED] = @blue
  base [INSENSITIVE] = "#f1f1f1"

  text [INSENSITIVE] = shade (1.3, @grey)
  text [SELECTED] = "#fff"

  bg [PRELIGHT] = "#fff"

  engine "moblin-netbook-engine"
  {
    radius = 1
    shadow = 0.0
    border [PRELIGHT] = @menubar_color
		border [SELECTED] = shade (0.6, @blue)
    border [INSENSITIVE] =  shade (1.3, @grey)
  }

}
widget_class "*CheckButton*" style "checkbutton"
widget_class "*RadioButton*" style "checkbutton"
widget_class "*ToolButton*" style "checkbutton"


style "menuitem"
{
  GtkCheckMenuItem::indicator_size = 15
  GtkMenuItem::arrow-scaling = 0.4
  fg [PRELIGHT] = "white"
  bg [PRELIGHT] = @blue

  fg [INSENSITIVE] = "#bbb"
  base [SELECTED] = @blue

  xthickness = 6
  ythickness = 6

  engine "moblin-netbook-engine"
  {
    radius = 0
  }

}
widget_class "*MenuItem*" style "menuitem"


style "progressbar"
{
  GtkProgressBar::xspacing = 0
  GtkProgressBar::yspacing = 0

  xthickness = 3
  ythickness = 3
  bg [NORMAL] = "white"
  fg [NORMAL] = "blue"
  base [NORMAL] = "orange"
  bg [PRELIGHT] = @blue
  engine "moblin-netbook-engine"
  {
    border [PRELIGHT] = @blue
    radius = 3
  }
}
class "GtkProgressBar" style "progressbar"


style "scrollbar"
{

  GtkScrollbar::slider_width = 28
  GtkScrollbar::stepper_size = 28
  GtkScrollbar::arrow-scaling = 0.4
  GtkScrollbar::trough-border = 0
  GtkScrollbar::min-slider-length = 32

  fg [NORMAL] = @grey
  fg [INSENSITIVE] = @grey
  fg [PRELIGHT] = @blue
  fg [ACTIVE] = @blue

  # stepper colours
  bg [ACTIVE] = @bg_color
  bg [INSENSITIVE] = @bg_color

  # trough color
  base [ACTIVE] = "#e5e5e5"

  engine "moblin-netbook-engine"
  {
    radius = 3
    border [PRELIGHT] = @blue
    border [INSENSITIVE] = @grey
    border [ACTIVE] = @blue
  }
}
class "GtkScrollbar" style "scrollbar"


style "paned"
{
  GtkPaned::handle-size = 8

  engine "moblin-netbook-engine"
  {
    border [NORMAL] = lighter (@grey)
    border [PRELIGHT] = lighter (@grey)
  }
}
class "GtkPaned" style "paned"


style "scale"
{
  GtkScale::slider_length = 27
  GtkScale::slider_width = 16
  GtkWidget::focus-line-width = 0

  # handle colour
  bg [NORMAL] = "#fff"
  bg [PRELIGHT] = @blue

  #trough color
  bg [ACTIVE] = @blue
  bg [SELECTED] = @blue
  bg [INSENSITIVE] = "#f1f1f1"

  engine "moblin-netbook-engine"
  {
    radius = 3
    border [ACTIVE] = shade (0.8, @blue)
    border [PRELIGHT] = shade (0.8, @blue)
    border [SELECTED] = "red"
    
  }
}
class "GtkScale" style "scale"


style "treeview_headers"
{
  bg [NORMAL] = @bg_color
  fg [NORMAL] = @fg_color
}
widget_class "*.GtkTreeView.GtkButton*" style "treeview_headers"


style "treeview"
{
  text [SELECTED] = @selected_fg_color
  xthickness = 10
}
widget_class "*.GtkTreeView*" style "treeview"


style "menu"
{
	bg [NORMAL] = "#fff"
  GtkMenu::vertical_padding = 0
  xthickness = 1
  ythickness = 6
  engine "moblin-netbook-engine"
  {
    radius = 1
  }
}
class "GtkMenu" style "menu"


style "menu-separator"
{
  engine "moblin-netbook-engine"
  {
    border [NORMAL] = "#dddddd"
  }
}
widget_class "*Menu*.*Sepa*"  style "menu-separator"


style "toolbar"
{
  GtkToolbar::internal_padding = 2
  GtkToolbar::shadow_type = GTK_SHADOW_NONE
  xthickness = 0

  bg [NORMAL] = "#f1f1f1"

  engine "moblin-netbook-engine"
  {
    radius = 0
  }
}
widget_class "*Toolbar*" style "toolbar"


style "menubar"
{
  bg [NORMAL] = @menubar_color
  fg [NORMAL] = "#ffffff"
  bg [PRELIGHT] = @blue
	fg [PRELIGHT] = "#ffffff"
	fg [INSENSITIVE] = mix(0.5, @menubar_color, "black")

  GtkMenuBar::shadow_type = GTK_SHADOW_NONE

  engine "moblin-netbook-engine"
  {
    radius = 1
    border [NORMAL] = "red"
  }
}
# Strange magic, two classes needed to style everything properly
widget_class "*.GtkMenuBar.*" style "menubar"
class "GtkMenuBar" style "menubar"


# Toolbar Handleboxes
style "toolbar-handlebox"
{
  bg [NORMAL] = @toolbar_color

  engine "moblin-netbook-engine"
  {
    radius = 0
    border [NORMAL] = @toolbar_color
  }
}
class "GtkHandleBox" style "toolbar-handlebox"


style "toolbar-arrow"
{
  fg [NORMAL] = @blue
  fg [PRELIGHT] = @blue
}
widget_class "*<GtkToolbar>.*GtkArrow*"  style "toolbar-arrow"

style "infobar"
{
  bg [NORMAL] = @blue
  bg [NORMAL] = @blue
  base [NORMAL] = @blue
  text [NORMAL] = @blue
  
}
widget_class "GtkInfobar"  style "infobar"
widget_class "GtkInfoBar"  style "infobar"


style "toolbar-button" = "button"
{
	fg [NORMAL] = @fg_color
	fg [PRELIGHT] = @fg_color
	fg [ACTIVE] = @fg_color
	fg [SELECTED] = @fg_color
	
  xthickness = 2
  ythickness = 2
  
  engine "moblin-netbook-engine"
  {

    border [PRELIGHT] = shade(0.85, @blue)
    border [ACTIVE] = shade(0.85, @blue)
    border [SELECTED] = shade(0.85, @blue)
    radius = 3
  }
}
widget_class "*<GtkToolbar>.*utton*"  style "toolbar-button"


style "nautilus-pathbar-arrow-button" = "toolbar-button"
{
  bg [NORMAL] = mix(0.88, @toolbar_color, "white")
  xthickness = 2
  ythickness = 2
  engine "moblin-netbook-engine"
  {
    border [NORMAL] = mix(0.88, @toolbar_color, "white")
    border [PRELIGHT] = mix(0.88, @toolbar_color, "white")
    border [ACTIVE] = mix(0.88, @toolbar_color, "white")
    border [SELECTED] = mix(0.88, @toolbar_color, "white")
    radius = 3
  }
}
widget_class "*.NautilusPathBar.GtkButton" style "nautilus-pathbar-arrow-button"


style "spinbutton" = "button"
{
  text [PRELIGHT] = @fg_color
  text [NORMAL] = @fg_color
  fg [NORMAL] = @blue
  fg [PRELIGHT] = @blue

  xthickness = 4
  ythickness = 4
  
  engine "moblin-netbook-engine"
  {
    border [NORMAL] = @grey
    border [PRELIGHT] = @blue
    border [ACTIVE] = @blue
    border [SELECTED] = @blue
    radius = 3
  }

}
widget_class "*Spin*"  style "spinbutton"


style "togglebutton" = "button"
{

  bg [NORMAL] =  "#fbfbfb"
  bg [ACTIVE] =  "#fff"

  engine "moblin-netbook-engine"
  {
    border [NORMAL] = "#b3b6b7"
    border [PRELIGHT] = shade (0.8, @blue)
    border [ACTIVE] = shade (0.8, @blue)
    border [SELECTED] = shade (0.8, @blue)
    radius = 3
  }

}
widget_class "*Toggle*"  style "togglebutton"


style "arrow"
{
  fg [NORMAL] = @blue
}
class "GtkArrow" style "arrow"


style "combo-box-entry-arrow"
{
  fg [PRELIGHT] = @blue
  fg [ACTIVE] = @blue
  fg [NORMAL] = @blue
}
widget_class "*.GtkComboBox*GtkArrow" style "combo-box-entry-arrow"


style "notebook"
{
  GtkNotebook::tab-overlap = 1
  GtkNotebook::tab-curvature = 12
  GtkNotebook::focus-line-width = 0
  ythickness = 4
  xthickness = 4

  engine "moblin-netbook-engine"
  {
    radius = 3
    border [ACTIVE] = lighter (@grey)
  }
}
class "GtkNotebook" style "notebook"


style "mux-banner"
{
  base [NORMAL] = "#eeeeec"
  text [NORMAL] = "#2b2b2b"
}
class "MuxBanner" style "mux-banner"


style "mux-frame"
{
  bg [NORMAL] = "#ffffff"
}
class "MuxFrame" style "mux-frame"


style "mux-banner"
{
  base [NORMAL] = "#eeeeec"
  text [NORMAL] = "#2b2b2b"
}
class "MuxBanner" style "mux-banner"


style "combobox" = "button"
{
  xthickness = 5
  ythickness = 5

  text [PRELIGHT] = @fg_color
  text [NORMAL] = @fg_color
  fg [NORMAL] = @blue
  fg [PRELIGHT] = @blue
  
  engine "moblin-netbook-engine"
  {
    border [NORMAL] = @grey
    border [PRELIGHT] = @blue
    border [ACTIVE] = @blue
    radius = 3
  }
}
widget_class "*Combo*"  style "combobox"




style "optionbox" = "combobox"
{
  fg [NORMAL] = @fg_color
  fg [PRELIGHT] = @fg_color

  engine "moblin-netbook-engine"
  {
    border [NORMAL] = @grey
    border [PRELIGHT] = @blue
    border [ACTIVE] = @blue
    radius = 3
  }
}
widget_class "*Option*"  style "optionbox"


style "nautilus_location" {
	bg [NORMAL] = shade(1.5, @grey)
	text [NORMAL] = @selected_fg_color
}
widget "*.*nautilus-extra-view-widget" style : highest "nautilus_location"


style "separator"
{
  engine "moblin-netbook-engine"
  {
    border [NORMAL] = "#dddddd"
    radius = 3
  }
}
widget_class "*Separator*"  style "separator"


style "toolbar-separator"
{
  engine "moblin-netbook-engine"
  {
    border [NORMAL] = mix(0.2, @menubar_color, "white")
  }
}
widget_class "*<GtkToolbar>.*eparator*"  style "toolbar-separator"


style "window"
{
  bg [NORMAL] = "#f9f9f9"
}
widget_class "GtkWindow" style "window"


style "statusbar-resize"
{
  bg [ACTIVE] = shade (0.8, @bg_color)
}
class "GtkStatusbar" style "statusbar-resize"


style "statusbar"
{
  xthickness = 4
  ythickness = 4
  fg [NORMAL] = @fg_color
  fg [PRELIGHT] = @fg_color

  engine "moblin-netbook-engine"
  {
    radius = 3
    border [NORMAL] = @bg_color
  }
}
widget_class "*<GtkStatusbar>*" style "statusbar"


style "tooltip"
{
  xthickness = 7
  ythickness = 7

  text [NORMAL]        = "#fff"
  text [PRELIGHT]      = "#fff"
  text [SELECTED]      = "#fff"
  text [ACTIVE]        = "#fff"
  text [INSENSITIVE]   = "#fff"

  bg [NORMAL]          = @menubar_color
  fg [NORMAL]          = "#fff"

  bg [ACTIVE]          = @menubar_color
  fg [ACTIVE]          = "#fff"

  bg [SELECTED]        = @menubar_color
  fg [SELECTED]        = "#fff"

}
widget_class "*.*tooltips*.*.GtkToggleButton" style "tooltip"
widget "*.*gtk-tooltips*" style "tooltip"
widget "*gtk-tooltip*" style "tooltip"

# The GNOME Panel
widget_class "*Panel*" style "toolbar"
style "panel-button" = "toolbar-button"
{
  xthickness = 4
  ythickness = 4
}
widget_class "*Panel*Button*"  style "panel-button"


# 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.
# This style does not affect GtkComboBoxEntry, it does have an effect
# on comboboxes in appears-as-list mode though.

style "clearlooks-text-is-fg-color-workaround"
{
  text [NORMAL]      = @fg_color
  text [PRELIGHT]    = @fg_color
  text [SELECTED]    = @fg_color
  text [ACTIVE]      = @fg_color
  text [INSENSITIVE] = darker (@bg_color)
}
widget_class "*.<GtkComboBox>.<GtkCellView>"   style "clearlooks-text-is-fg-color-workaround"

style "clearlooks-menuitem-text-is-fg-color-workaround"
{
  text [NORMAL]        = @fg_color
  text [PRELIGHT]      = @selected_fg_color
  text [SELECTED]      = @selected_fg_color
  text [ACTIVE]        = @fg_color
  text [INSENSITIVE]   = darker (@bg_color)
}
widget "*.gtk-combobox-popup-menu.*"   style "clearlooks-menuitem-text-is-fg-color-workaround"


style "moblin-toolbar"
{
	bg[NORMAL] = "#333"
	fg[NORMAL] = "#fff"
	xthickness = 6
	ythickness = 6
}
widget "*moblin-toolbar" style "moblin-toolbar"


style "moblin-toolbar-child"
{
	xthickness = 6
	ythickness = 6
	bg[NORMAL] = "#333"
	fg[NORMAL] = "#fff"
	bg[PRELIGHT] = "#666"
	fg[PRELIGHT] = "#fff"

	engine "moblin-netbook-engine" {
		border [NORMAL] = "#333"
		border [PRELIGHT] = "#666"
	}
}
widget "*moblin-toolbar.*" style "moblin-toolbar-child"


style "entry"
{
  GtkEntry::state-hint = 1

  text [ACTIVE] = @text_color
  base [ACTIVE] = @base_color

  xthickness = 4
  ythickness = 4

  engine "moblin-netbook-engine"
  {
    radius = 3
    border [ACTIVE] = @blue
  }
}
class "GtkEntry" style "entry"
widget_class "*GtkEntry*"  style "entry"
