# pixmap_path "<dir 1>:<dir 2>:<dir 3>:..."
#
# include "rc-file"
#
# style <name> [= <name>]
# {
#   <option>
# }
#
# widget <widget_set> style <style_name>
# widget_class <widget_class_set> style <style_name>

# testgtkrc2 sets all the buttons in the main window to blue by default
#include "testgtkrc2"

#module_path ".:/home/raster/themes"

style "eventbox" {
  bg_pixmap[NORMAL] = "<parent>"
  bg_pixmap[INSENSITIVE] = "<parent>"
  bg_pixmap[PRELIGHT] = "<parent>"
  bg_pixmap[SELECTED] = "<parent>"
  bg_pixmap[ACTIVE] = "<parent>"
}

class "GtkEventBox" style "eventbox"


#
# Buttons
#

style "checkradiobutton" {
  engine "pixmap" {
    image 
      {
        function        = FLAT_BOX
	recolorable     = TRUE
	file            = "highlight.png"
	border          = { 0, 0, 0, 0 }
	stretch         = TRUE
      }
  }
}

class "GtkRadioButton" style "checkradiobutton"
class "GtkCheckButton" style "checkradiobutton"

style "togglebutton"
{
   engine "pixmap" {
    image 
      {
        function        = BOX
	recolorable     = TRUE
	shadow          = IN
	file            = "button_active.png"
	border          = { 2, 3, 2, 3 }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state		= PRELIGHT
	shadow          = IN
	file            = "button_active_prelight.png"
	border          = { 2, 3, 2, 3 }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state			= PRELIGHT
	shadow          = OUT
	file            = "button_prelight.png"
	border          = { 2, 3, 2, 3 }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state			= INSENSITIVE
	shadow          = IN
	file            = "button_active.png"
	border          = { 2, 3, 2, 3 }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state			= INSENSITIVE
	shadow          = OUT
	file            = "button_normal.png"
	border          = { 3, 2, 3, 2 }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	shadow          = OUT
	file            = "button_normal.png"
	border          = { 3, 2, 3, 2 }
	stretch         = TRUE
      }
  }
}

class "GtkToggleButton" style "togglebutton"

style "button"
{
  engine "pixmap" 
    {
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state           = NORMAL
	detail          = "buttondefault"
	shadow          = IN
	file            = "button_active.png"
	border          = { 2, 3, 2, 3 }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state           = NORMAL
	shadow          = OUT
	file            = "button_normal.png"
	border          = { 3, 2, 3, 2 }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state           = PRELIGHT
	shadow          = OUT
	file            = "button_prelight.png"
	border          = { 3, 2, 3, 2 }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state           = NORMAL
	shadow          = IN
	file            = "button_active.png"
	border          = { 2, 3, 2, 3 }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state           = INSENSITIVE
	shadow          = IN
	file            = "button_active.png"
	border          = { 2, 3, 2, 3 }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state           = INSENSITIVE
	shadow          = OUT
	file            = "button_normal.png"
	border          = { 3, 2, 3, 2 }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state           = SELECTED
	shadow          = IN
	file            = "selected.png"
	border          = { 0, 0, 0, 0 }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state           = ACTIVE
	shadow          = IN
	file            = "button_active.png"
	border          = { 2, 3, 2, 3 }
	stretch         = TRUE
      }
   }
}

class "GtkButton" style "button"

style "clist"
{
  bg[PRELIGHT] = "#ffffff"
  fg[PRELIGHT] = "#000000"
  base[NORMAL] = "#ffffff"
}

class "GtkCList" style "clist"

style "notebook"
{
  engine "pixmap" 
    {
    image 
      {
        function        = EXTENSION
	recolorable     = TRUE
	state           = ACTIVE
	file            = "tab_active.png"
	border          = { 1, 3, 3, 1 }
	stretch         = TRUE
      }
    image 
      {
        function        = EXTENSION
	recolorable     = TRUE
	file            = "tab_top.png"
	border          = { 1, 3, 3, 0 }
	stretch         = TRUE
	gap_side        = BOTTOM
      }
    image 
      {
        function        = EXTENSION
	recolorable     = TRUE
	file            = "tab_bottom.png"
	border          = { 2, 2, 1, 2 }
	stretch         = TRUE
	gap_side        = TOP
      }
    image 
      {
        function        = EXTENSION
	recolorable     = TRUE
	file            = "tab_left.png"
	border          = { 2, 1, 2, 2 }
	stretch         = TRUE
	gap_side        = RIGHT
      }
    image 
      {
        function        = EXTENSION
	recolorable     = TRUE
	file            = "tab_right.png"
	border          = { 1, 2, 2, 2 }
	stretch         = TRUE
	gap_side        = LEFT
      }
#
# How to draw boxes with a gap on one side (ie the page of a notebook)
#
    image 
      {
        function        = BOX_GAP
	recolorable     = TRUE
	file            = "button_normal.png"
	border          = { 3, 2, 3, 2 }
	stretch         = TRUE
	gap_file        = "notebook_gap_topleft.png"
	gap_border      = { 0, 0, 0, 0 }
	gap_start_file  = "notebook_gap_top_start.png"
	gap_start_border= { 1, 0, 0, 0 }
	gap_end_file    = "notebook_gap_top_end.png"
	gap_end_border  = { 0, 1, 0, 0 }
	gap_side        = TOP
      }
    image 
      {
        function        = BOX_GAP
	recolorable     = TRUE
	file            = "button_normal.png"
	border          = { 3, 2, 3, 2 }
	stretch         = TRUE
	gap_file        = "notebook_gap_bottomright.png"
	gap_border      = { 0, 0, 0, 0 }
	gap_start_file  = "notebook_gap_bottom_start.png"
	gap_start_border= { 1, 0, 0, 0 }
	gap_end_file    = "notebook_gap_right_end.png"
	gap_end_border  = { 0, 1, 0, 0 }
	gap_side        = BOTTOM
      }
    image 
      {
        function        = BOX_GAP
	recolorable     = TRUE
	file            = "button_normal.png"
	border          = { 3, 2, 3, 2 }
	stretch         = TRUE
	gap_file        = "notebook_gap_topleft.png"
	gap_border      = { 0, 0, 0, 0 }
	gap_start_file  = "notebook_gap_top_start.png"
	gap_start_border= { 0, 0, 1, 0 }
	gap_end_file    = "notebook_gap_left_end.png"
	gap_end_border  = { 0, 0, 0, 2 }
	gap_side        = LEFT
      }
    image 
      {
        function        = BOX_GAP
	recolorable     = TRUE
	file            = "button_normal.png"
	border          = { 3, 2, 3, 2 }
	stretch         = TRUE
	gap_file        = "notebook_gap_bottomright.png"
	gap_border      = { 0, 0, 0, 0 }
	gap_start_file  = "notebook_gap_right_start.png"
	gap_start_border= { 0, 0, 1, 0 }
	gap_end_file    = "notebook_gap_right_end.png"
	gap_end_border  = { 0, 0, 0, 1 }
	gap_side        = RIGHT
      }
#
# How to draw the box of a notebook when it isnt attached to a tab
#
    image 
      {
        function        = BOX
	recolorable     = TRUE
	file            = "window_bg.png"
	border          = { 0, 0, 0, 0 }
	stretch         = TRUE
	gap_side        = TOP
      }
  }
}

class "GtkNotebook" style "notebook"

style "menu"
{
  engine "pixmap" {
    image 
      {
        function        = BOX
	recolorable     = TRUE
	file            = "button_normal.png"
	border          = { 3, 2, 3, 2 }
	stretch         = TRUE
      }
  }
}

class "GtkMenu" style "menu"

style "menuitem"
{
  engine "pixmap" {
    image
      {
	function		= ARROW
	recolorable		= TRUE
	state			= NORMAL
	file			= "arrow_left_normal.png"
	stretch			= FALSE
	arrow_direction = LEFT
      }
    image
      {
	function		= ARROW
	recolorable		= TRUE
	state			= PRELIGHT
	file			= "arrow_left_menu_active.png"
	stretch			= FALSE
	arrow_direction = LEFT
      }
    image
      {
	function		= ARROW
	recolorable		= TRUE
	shadow			= IN
	file			= "arrow_left_menu_active.png"
	stretch			= FALSE
	arrow_direction = LEFT
      }
    image
      {
	function		= ARROW
	recolorable		= TRUE
	state			= NORMAL
	file			= "arrow_right_normal.png"
	stretch			= FALSE
	arrow_direction = RIGHT
      }
    image
      {
	function		= ARROW
	recolorable		= TRUE
	state			= PRELIGHT
	file			= "arrow_right_menu_active.png"
	stretch			= FALSE
	arrow_direction = RIGHT
      }
    image
      {
	function		= ARROW
	recolorable		= TRUE
	shadow			= IN
	file			= "arrow_right_menu_active.png"
	stretch			= FALSE
	arrow_direction = RIGHT
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	file            = "button_prelight.png"
	border          = { 3, 2, 3, 2 }
	stretch         = TRUE
      }
  }
}

class "GtkMenuItem" style "menuitem"

style "menubar"
{
  engine "pixmap" {
    image 
      {
        function        = BOX
	recolorable     = TRUE
	file            = "button_normal.png"
	border          = { 3, 2, 3, 2 }
	stretch         = TRUE
      }
  }
}

class "GtkMenuBar" style "menubar"

style "optionmenu"
{
  engine "pixmap" {
    image 
      {
        function        = BOX
	recolorable     = TRUE
	state           = PRELIGHT
	file            = "button_prelight.png"
	border          = { 3, 2, 3, 2 }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	file            = "button_normal.png"
	border          = { 3, 2, 3, 2 }
	stretch         = TRUE
      }
  }
}

class "GtkOptionMenu" style "optionmenu"

style "progressbar"
{
  engine "pixmap" 
    {
    image 
      {
        function        = BOX
	recolorable     = TRUE
	detail          = "bar"
	file            = "button_prelight.png"
	border          = { 3, 2, 3, 2 }
	stretch         = TRUE
      }
    }
}

class "GtkProgressBar" style "progressbar"

style "ruler"
{
  engine "pixmap" {
    image 
      {
        function        = BOX
	recolorable     = TRUE
	detail          = "vruler"
	file            = "button_normal.png"
	border          = { 3, 2, 3, 2 }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	detail          = "hruler"
	file            = "button_normal.png"
	border          = { 3, 2, 3, 2 }
	stretch         = TRUE
      }
  }
}

class "GtkRuler" style "ruler"

style "item" 
{
  engine "pixmap" {
    image 
      {
        function        = FLAT_BOX
	recolorable     = TRUE
	state           = INSENSITIVE
	file            = "window_bg.png"
	border          = { 0, 0, 0, 0 }
	stretch         = TRUE
      }
    image 
      {
        function        = FLAT_BOX
	recolorable     = TRUE
	file            = "selected.png"
	border          = { 0, 0, 0, 0 }
	stretch         = TRUE
      }
  }
}

class "GtkTreeItem" style "item"
class "GtkListItem" style "item"

style "window" 
{
  engine "pixmap" {
    image 
      {
	function        = FLAT_BOX
	recolorable     = TRUE
	file            = "window_bg.png"
	border          = { 0, 0, 0, 0 }
	stretch			= TRUE
      }
  }
}

class "GtkWindow" style "window"

style "curve"
{
  engine "pixmap" {
    image 
      {
        function        = FLAT_BOX
	recolorable     = TRUE
	detail          = "curve_bg"
	file            = "window_bg.png"
	border          = { 0, 0, 0, 0 }
	stretch         = TRUE
      }
  }
}

class "GtkCurve" style "curve"

style "default"
{
  font = "-*-verdana-medium-r-normal--11-*-*-*-*-*-*-*"
  fg[NORMAL]      = "#000000"
  fg[PRELIGHT]    = "#000000"
  fg[ACTIVE]      = "#000000"
  fg[SELECTED]    = "#ffffff"
  fg[INSENSITIVE] = "#a8a8a8"
  bg[NORMAL]      = "#d6d6d6"
  bg[PRELIGHT]    = "#eaeaea"
  bg[ACTIVE]      = "#c2c2c2"
  bg[SELECTED]    = "#0000c2"
  bg[INSENSITIVE] = "#d6d6d6"
  base[NORMAL]    = "#ffffff"
  engine "pixmap" 
  {
    image 
      {
        function        = BOX
	recolorable     = TRUE
	detail          = "slider"
	state           = PRELIGHT
	file            = "button_prelight.png"
	border          = { 3, 2, 3, 2 }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	detail          = "slider"
	file            = "button_normal.png"
	border          = { 3, 2, 3, 2 }
	stretch         = TRUE
      }
#
# Any trough....
#
    image 
      {
        function        = BOX
	recolorable     = TRUE
	detail          = "trough"
	file            = "button_active.png"
	border          = { 2, 3, 2, 3 }
	stretch         = TRUE
      }
#
# Handlebox
#
    image 
      {
        function        = BOX
	recolorable     = TRUE
	detail          = "handlebox_bin"
	file            = "button_normal.png"
	border          = { 3, 2, 3, 2 }
	stretch         = TRUE
      }
#
# Paned widget
#
    image 
      {
        function        = BOX
	recolorable     = TRUE
	detail          = "paned"
	state			= NORMAL
	file            = "button_normal.png"
	border          = { 3, 2, 3, 2 }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	detail          = "paned"
	state			= PRELIGHT
	file            = "button_prelight.png"
	border          = { 3, 2, 3, 2 }
	stretch         = TRUE
      }
#
# Tooltips
#
    image 
      {
        function        = FLAT_BOX
	recolorable     = TRUE
	detail          = "tooltip"
	file            = "button_prelight.png"
	border          = { 3, 2, 3, 2 }
	stretch         = TRUE
      }
#      
# Selected text in entries, text widget, lists and trees      
#
    image 
      {
        function        = FLAT_BOX
	recolorable     = TRUE
	state           = INSENSITIVE
	detail          = "selected"
	file            = "window_bg.png"
	border          = { 0, 0, 0, 0 }
	stretch         = TRUE
      }
    image 
      {
        function        = FLAT_BOX
	recolorable     = TRUE
	detail          = "selected"
	file            = "selected.png"
	border          = { 0, 0, 0, 0 }
	stretch         = TRUE
      }
    image 
      {
        function        = FLAT_BOX
	recolorable     = TRUE
	state           = INSENSITIVE
	detail          = "text"
	file            = "window_bg.png"
	border          = { 0, 0, 0, 0 }
	stretch         = TRUE
      }
    image 
      {
        function        = FLAT_BOX
	recolorable     = TRUE
	detail          = "text"
	file            = "selected.png"
	border          = { 0, 0, 0, 0 }
	stretch         = TRUE
      }
    image 
      {
        function        = FLAT_BOX
	recolorable     = TRUE
	detail          = "viewportbin"
	file            = "window_bg.png"
	border          = { 0, 0, 0, 0 }
	stretch         = TRUE
      }
#
# Hline and Vline widgets
#
    image 
      {
        function        = HLINE
	recolorable     = TRUE
	file            = "hline.png"
	border          = { 0, 0, 0, 0 }
	stretch         = TRUE
      }
    image 
      {
        function        = VLINE
	recolorable     = TRUE
	file            = "vline.png"
	border          = { 0, 0, 0, 0 }
	stretch         = TRUE
      }
#
# Check marks
#
    image 
      {
        function        = CHECK
	recolorable     = TRUE
	shadow          = OUT
	overlay_file    = "check_out.png"
	overlay_stretch = FALSE
      }
    image 
      {
        function        = CHECK
	recolorable     = TRUE
	state		= PRELIGHT
	shadow          = OUT
	overlay_file    = "check_out_prelight.png"
	overlay_stretch = FALSE
      }
    image 
      {
        function        = CHECK
	recolorable     = TRUE
	shadow          = IN
	overlay_file    = "check_in.png"
	overlay_stretch = FALSE
      }
#
# Option marks
#
    image 
      {
        function        = OPTION
	recolorable     = TRUE
	shadow          = OUT
	overlay_file    = "radio_out.png"
	overlay_stretch = FALSE
      }
    image 
      {
        function        = OPTION
	recolorable     = TRUE
	shadow          = IN
	overlay_file    = "radio_in.png"
	overlay_stretch = FALSE
      }
#
# The "tab" on the OptionMenu
#
    image 
      {
        function        = TAB
	recolorable     = TRUE
	overlay_file    = "optionmenu_tab_normal.png"
	overlay_stretch = FALSE
      }
    image 
      {
        function        = TAB
	recolorable     = TRUE
	state		= PRELIGHT
	overlay_file    = "optionmenu_tab_prelight.png"
	overlay_stretch = FALSE
      }
#
# Fun with Scrollbars
#      
    image 
      {
        function        = SLIDER
	recolorable     = TRUE
	file            = "button_normal.png"
	border          = { 3, 2, 3, 2 }
	stretch         = TRUE
      }
    image 
      {
        function        = SLIDER
	recolorable     = TRUE
	state		= PRELIGHT
	file            = "button_prelight.png"
	border          = { 3, 2, 3, 2 }
	stretch         = TRUE
      }
#
# The handle on Handleboxes
#
    image 
      {
        function        = HANDLE
	recolorable     = TRUE
	file            = "button_normal.png"
	border          = { 3, 2, 3, 2 }
	stretch         = TRUE
	overlay_file    = "handle.png"
	overlay_stretch = FALSE
	orientation     = VERTICAL
      }
#
# How to draw shadows in general
#
    image 
      {
        function        = SHADOW
	recolorable     = TRUE
	shadow          = IN
	file            = "shadow_in.png"
	border          = { 2, 2, 2, 2 }
	stretch         = TRUE
      }
    image 
      {
        function        = SHADOW
	recolorable     = TRUE
	shadow          = OUT
	file            = "shadow_out.png"
	border          = { 2, 2, 2, 2 }
	stretch         = TRUE
      }
    image 
      {
        function        = SHADOW
	recolorable     = TRUE
	shadow          = ETCHED_IN
	file            = "frame_inset.png"
	border          = { 2, 2, 2, 2 }
	stretch         = TRUE
      }
    image 
      {
        function        = SHADOW
	recolorable     = TRUE
	shadow          = ETCHED_OUT
	file            = "frame_outset.png"
	border          = { 2, 2, 2, 2 }
	stretch         = TRUE
      }
#
# How to draw shadows with a gap on one side
#
    image 
      {
        function        = SHADOW_GAP
	recolorable     = TRUE
	file            = "frame_inset.png"
	border          = { 2, 2, 2, 2 }
	stretch         = TRUE
	gap_start_file  = "frame_gap_top_start.png"
	gap_start_border= { 1, 0, 0, 0 }
	gap_end_file    = "frame_gap_top_end.png"
	gap_end_border  = { 0, 2, 0, 0 }
	gap_side        = TOP
      }
#
# Arrows defaults
#
    image 
      {
        function        = ARROW
	recolorable     = TRUE
	state           = NORMAL
	file            = "arrow_up_normal.png"
	stretch         = TRUE
	arrow_direction = UP
      }
    image 
      {
        function        = ARROW
	recolorable     = TRUE
	state           = PRELIGHT
	file            = "arrow_up_prelight.png"
	stretch         = TRUE
	arrow_direction = UP
      }
    image 
      {
        function        = ARROW
	recolorable     = TRUE
        shadow          = IN
	file            = "arrow_up_active.png"
	stretch         = TRUE
	arrow_direction = UP
      }
    image 
      {
        function        = ARROW
	recolorable     = TRUE
	state           = NORMAL
	file            = "arrow_down_normal.png"
	stretch         = TRUE
	arrow_direction = DOWN
      }
    image 
      {
        function        = ARROW
	recolorable     = TRUE
	state           = PRELIGHT
	file            = "arrow_down_prelight.png"
	stretch         = TRUE
	arrow_direction = DOWN
      }
    image 
      {
        function        = ARROW
	recolorable     = TRUE
        shadow          = IN
	file            = "arrow_down_active.png"
	stretch         = TRUE
	arrow_direction = DOWN
      }
    image 
      {
        function        = ARROW
	recolorable     = TRUE
	state           = NORMAL
	file            = "arrow_left_normal.png"
	stretch         = TRUE
	arrow_direction = LEFT
      }
    image 
      {
        function        = ARROW
	recolorable     = TRUE
	state           = PRELIGHT
	file            = "arrow_left_prelight.png"
	stretch         = TRUE
	arrow_direction = LEFT
      }
    image 
      {
        function        = ARROW
	recolorable     = TRUE
        shadow          = IN
	file            = "arrow_left_active.png"
	stretch         = TRUE
	arrow_direction = LEFT
      }
    image
      {
        function        = ARROW
	recolorable     = TRUE
	state           = NORMAL
	file            = "arrow_right_normal.png"
	stretch         = TRUE
	arrow_direction = RIGHT
      }
    image
      {
        function        = ARROW
	recolorable     = TRUE
	state           = PRELIGHT
	file            = "arrow_right_prelight.png"
	stretch         = TRUE
	arrow_direction = RIGHT
      }
    image
      {
        function        = ARROW
	recolorable     = TRUE
        shadow          = IN
	file            = "arrow_right_active.png"
	stretch         = TRUE
	arrow_direction = RIGHT
      }
# 
# Focuses
# 
    image 
      {
        function        = FOCUS
	recolorable     = TRUE
	overlay_file    = "focus.png"
	overlay_border  = { 1, 1, 1, 1 }
	overlay_stretch = TRUE
      }
#
# Otherwise Defaults
#
    image 
      {
        function        = BOX
	recolorable     = TRUE
	shadow          = IN
	file            = "button_active.png"
	border          = { 2, 3, 2, 3 }
	stretch         = TRUE
      }
    image 
      {
        function        = BOX
	recolorable     = TRUE
	file            = "button_normal.png"
	border          = { 3, 2, 3, 2 }
	stretch         = TRUE
      }
   }
}


# common default
class "GtkWidget" style "default"

#
# Entry Boxes
#

style "entry"
{
  engine "pixmap" {
    image 
      {
	function        = FLAT_BOX
	recolorable     = TRUE
	state           = INSENSITIVE
        detail          = "entry_bg"
	file            = "window_bg.png"
	stretch         = TRUE
      }
    image 
      {
	function        = FLAT_BOX
	recolorable     = TRUE
        detail          = "entry_bg"
	file            = "entry_bg.png"
	stretch         = TRUE
      }
  }
}

class "GtkEntry" style "entry"
