###################################################################
#								  #
# GTK2-Step						  #
# Author : Jean Philippe Guillemin [ jp.guillemin@free.fr ]	  #
# GNU GENERAL PUBLIC LICENSE http://www.gnu.org/copyleft/gpl.html #
#								  #
###################################################################


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


###########################################
# Buttons
###########################################
#

style "CheckRadioButton" {
    engine "pixmap" {
        image {
            function        = FLAT_BOX
            recolorable     = TRUE
            #file            = "menu_hi-light.png"
            #border          = { 10, 10, 10, 10 }
            #stretch         = TRUE
        }
    }
}

class "GtkRadioButton" style "CheckRadioButton"
class "GtkCheckButton" style "CheckRadioButton"


###########################################


style "ToggleButton" {
    engine "pixmap" {
        image {
            function        = BOX
            recolorable     = TRUE
            shadow          = IN
            file            = "button_normal_in.png"
            border          = { 5, 5, 5, 5 }
            stretch         = TRUE
        }
        image {
            function        = BOX
            recolorable     = TRUE
            shadow          = OUT
            file            = "button_normal_out.png"
            border          = { 5, 5, 5, 5 }
            stretch         = TRUE
        }
    }
}

class "GtkToggleButton" style "ToggleButton"



###########################################

style "Button" {
    engine "pixmap" {
        image {
            function        = BOX
            recolorable     = TRUE
            state           = NORMAL
            shadow          = IN
            file            = "button_normal_in.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
        }
        image {
            function        = BOX
            recolorable     = TRUE
            state           = NORMAL
            shadow          = OUT
            file            = "button_normal_out.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
        }
        image {
            function        = BOX
            recolorable     = TRUE
            state           = INSENSITIVE
            shadow          = IN
            file            = "button_insensitive_in.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
        }
        image {
            function        = BOX
            recolorable     = TRUE
            state           = INSENSITIVE
            shadow          = OUT
            file            = "button_insensitive_out.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
        }
        image {
            function        = BOX
            recolorable     = TRUE
            state           = PRELIGHT
            shadow          = OUT
            file            = "button_normal_out.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
        }
        image {
            function        = BOX
            recolorable     = TRUE
            state           = SELECTED
            shadow          = IN
            file            = "button_selected_in.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
        }
        image {
            function        = BOX
            recolorable     = TRUE
            state           = ACTIVE
            shadow          = IN
            file            = "button_active_in.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
        }
    }
}

class "GtkButton" style "Button"


###########################################
# Menu
###########################################


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

class "GtkMenu" style "menu"

style "menuitem"
{
  engine "pixmap" {
      image 
      {
        function        = BOX
	recolorable     = TRUE
	file            = "text_menu_highlight.png"
        border          = { 2, 2, 2, 2 }
	stretch         = TRUE
      }
      image 
	{
            function        = CHECK
            recolorable     = TRUE
            shadow          = OUT
            overlay_file    = "menu_uncheck.png"
            overlay_stretch = FALSE
        }
        image 
	{
            function        = CHECK
            recolorable     = TRUE
            shadow          = IN
            overlay_file    = "menu_check.png"
            overlay_stretch = FALSE
        }

        image 
	{
            function        = OPTION
            recolorable     = TRUE
            shadow          = OUT
            overlay_file    = "menu_uncheck.png"
            overlay_border  = { 0, 0, 0, 0 }
            overlay_stretch = FALSE
        }
        image 
	{
            function        = OPTION
            recolorable     = TRUE
            shadow          = IN
            overlay_file    = "menu_check.png"
            overlay_border  = { 0, 0, 0, 0 }
            overlay_stretch = FALSE
        }
  }
}

class "GtkMenuItem" style "menuitem"

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

class "GtkMenuBar" style "menubar"


style "OptionMenu" {
    engine "pixmap" {
        
        image {
            function        = TAB
            recolorable     = TRUE
            overlay_file    = "list_button.png"
            overlay_stretch = FALSE
        }
        image {
            function        = TAB
            recolorable     = TRUE
            state           = INSENSITIVE
            overlay_file    = "list_button.png"
            overlay_stretch = FALSE
        }
    }
}

class "GtkOptionMenu" style "OptionMenu"



#
###########################################
#  ProgressBar
###########################################
#

style "ProgressBar" {
    engine "pixmap" {
        image {
            function        = BOX
            recolorable     = TRUE
            detail          = "bar"
            file            = "progressbar.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
        }
        image {
            function        = BOX
            recolorable     = TRUE
            detail          = "trough"
            file            = "trough.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
            orientation     = HORIZONTAL
        }
    }
}
class "GtkProgressBar" style "ProgressBar"


###########################################
# Scrollbars 
###########################################
#

style "Scrollbar" {
    engine "pixmap" {
        image {
            function        = BOX
            recolorable     = TRUE
            detail          = "trough"
            file            = "trough.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
            orientation     = VERTICAL
        }
        image {
            function        = BOX
            recolorable     = TRUE
            detail          = "trough"
            file            = "trough.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
            orientation     = HORIZONTAL
        }
        image {
             function        = SLIDER
	     recolorable     = TRUE
	     state           = NORMAL
	     file            = "scrollbar_horizontal.png"
	     border          = { 2, 2, 2, 2 }
	     stretch         = TRUE
	     overlay_file    = "scrollbar_thumb.png"
	     overlay_border  = { 1, 1, 1, 1 }
	     overlay_stretch = FALSE
	     orientation     = HORIZONTAL
	}
	
        image {
            function        = SLIDER 
            recolorable     = TRUE
            state           = PRELIGHT
            file            = "scrollbar_horizontal.png"
            border          = { 4, 4, 4, 4 }
            stretch         = TRUE
            overlay_file    = "scrollbar_thumb.png"
	    overlay_border  = { 1, 1, 1, 1 }
	    overlay_stretch = FALSE
	    orientation     = HORIZONTAL
        }
        image {
            function        = SLIDER
            recolorable     = TRUE
            state           = NORMAL
            file            = "scrollbar_vertical.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
            overlay_file    = "scrollbar_thumb.png"
	    overlay_border  = { 1, 1, 1, 1 }
	    overlay_stretch = FALSE
	    orientation     = VERTICAL
        }
        image {
            function        = SLIDER 
            recolorable     = TRUE
            state           = PRELIGHT
            file            = "scrollbar_vertical.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
            overlay_file    = "scrollbar_thumb.png"
	    overlay_border  = { 1, 1, 1, 1 }
	    overlay_stretch = FALSE
  	    orientation     = VERTICAL
        }
        image {
            function        = BOX
            recolorable     = TRUE
            state           = NORMAL 
            file            = "clear.png"
            border          = { 0, 0, 0, 0 }
            stretch         = TRUE
        }
        image {
            function        = BOX
            recolorable     = TRUE
            state           = PRELIGHT
            file            = "clear.png"
            border          = { 0, 0, 0, 0 }
            stretch         = TRUE
        }
        image {
            function        = BOX
            recolorable     = TRUE
            state           = ACTIVE
            file            = "clear.png"
            border          = { 0, 0, 0, 0 }
            stretch         = TRUE
        }
    	image {
            function        = ARROW
            recolorable     = TRUE
            state           = NORMAL
            overlay_file    = "arrow_up.png"
            overlay_stretch = FALSE
            arrow_direction = UP
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = ACTIVE
            overlay_file    = "arrow_up_clicked.png"
            overlay_stretch = FALSE
            arrow_direction = UP
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = PRELIGHT
            overlay_file    = "arrow_up.png"
            overlay_stretch = FALSE
            arrow_direction = UP
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            shadow          = IN
            overlay_file    = "arrow_up_clicked.png"
            overlay_stretch = FALSE
            arrow_direction = UP
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = INSENSITIVE
            overlay_file    = "arrow_up.png"
            overlay_stretch = FALSE
            arrow_direction = UP
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = NORMAL
            overlay_file    = "arrow_down.png"
            overlay_stretch = FALSE
            arrow_direction = DOWN
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = ACTIVE
            overlay_file    = "arrow_down_clicked.png"
            overlay_stretch = FALSE
            arrow_direction = DOWN
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = PRELIGHT
            overlay_file    = "arrow_down.png"
            overlay_stretch = FALSE
            arrow_direction = DOWN
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            shadow          = IN
            overlay_file    = "arrow_down_clicked.png"
            overlay_stretch = FALSE
            arrow_direction = DOWN
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = INSENSITIVE
            overlay_file    = "arrow_down.png"
            overlay_stretch = FALSE
            arrow_direction = DOWN
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = NORMAL
            overlay_file    = "arrow_left.png"
            overlay_stretch = FALSE
            arrow_direction = LEFT
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = PRELIGHT
            overlay_file    = "arrow_left.png"
            overlay_stretch = FALSE
            arrow_direction = LEFT
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            shadow          = IN
            overlay_file    = "arrow_left_clicked.png"
            overlay_stretch = FALSE
            arrow_direction = LEFT
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = INSENSITIVE
            overlay_file    = "arrow_left.png"
            overlay_stretch = FALSE
            arrow_direction = LEFT
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = NORMAL
            overlay_file    = "arrow_right.png"
            overlay_stretch = FALSE
            arrow_direction = RIGHT
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = PRELIGHT
            overlay_file    = "arrow_right.png"
            overlay_stretch = FALSE
            arrow_direction = RIGHT
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            shadow          = IN
            overlay_file    = "arrow_right_clicked.png"
            overlay_stretch = FALSE
            arrow_direction = RIGHT
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = INSENSITIVE
            overlay_file    = "arrow_right.png"
            overlay_stretch = FALSE
            arrow_direction = RIGHT
        }
    }
}

class "GtkScrollbar" style "Scrollbar"


###########################################
# Scales
###########################################
#

style "Scale" {
    engine "pixmap" {
        image {
            function        = BOX
            recolorable     = TRUE
            detail          = "trough"
            file            = "trough.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
            orientation     = VERTICAL
        }
        image {
            function        = BOX
            recolorable     = TRUE
            detail          = "trough"
            file            = "trough.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
            orientation     = HORIZONTAL
        }
############################################
# Sliders
############################################

	image {
             function        = SLIDER
	     recolorable     = TRUE
	     state           = NORMAL
	     file            = "scrollbar_horizontal.png"
	     border          = { 2, 2, 2, 2 }
	     stretch         = TRUE
	     overlay_file    = "slider_thumb_horizontal.png"
	     overlay_border  = { 1, 1, 1, 1 }
	     overlay_stretch = FALSE
	     orientation     = HORIZONTAL
	}
	
	image {
            function        = SLIDER 
            recolorable     = TRUE
            state           = PRELIGHT
            file            = "scrollbar_horizontal.png"
	    border          = { 2, 2, 2, 2 }
	    stretch         = TRUE
	    overlay_file    = "slider_thumb_horizontal.png"
	    overlay_border  = { 1, 1, 1, 1 }
	    overlay_stretch = FALSE
	    orientation     = HORIZONTAL
        }
        image {
            function        = SLIDER 
            recolorable     = TRUE
            state           = INSENSITIVE
            file            = "scrollbar_horizontal.png"
	    border          = { 2, 2, 2, 2 }
	    stretch         = TRUE
	    overlay_file    = "slider_thumb_horizontal.png"
	    overlay_border  = { 1, 1, 1, 1 }
	    overlay_stretch = FALSE
	    orientation     = HORIZONTAL
        }
        image {
            function        = SLIDER
            recolorable     = TRUE
            state           = NORMAL
            file            = "scrollbar_vertical.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
            overlay_file    = "slider_thumb_vertical.png"
	    overlay_border  = { 1, 1, 1, 1 }
	    overlay_stretch = FALSE
	    orientation     = VERTICAL
        }
        image {
            function        = SLIDER 
            recolorable     = TRUE
            state           = PRELIGHT
            file            = "scrollbar_vertical.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
            overlay_file    = "slider_thumb_vertical.png"
	    overlay_border  = { 1, 1, 1, 1 }
	    overlay_stretch = FALSE
  	    orientation     = VERTICAL
        }
        image {
            function        = SLIDER 
            recolorable     = TRUE
            state           = INSENSITIVE
            file            = "scrollbar_vertical.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
            overlay_file    = "slider_thumb_vertical.png"
	    overlay_border  = { 1, 1, 1, 1 }
	    overlay_stretch = FALSE
  	    orientation     = VERTICAL
        }
    }
}

class "GtkScale" style "Scale"


#
###########################################
# Default
###########################################
#

style "Default" {   
font = "-*-helvetica-medium-r-normal--12-*-*-*-*-*-*-*"
bg[ACTIVE]        = "#909090"
bg[INSENSITIVE]   = "#a8a8a8"
bg[NORMAL]        = "#a8a8a8"
bg[PRELIGHT]      = "#f6f7ec"
bg[SELECTED]      = "#909090"


fg[ACTIVE]        = "#000000"
fg[INSENSITIVE]   = "#909090"
fg[NORMAL]        = "#000000"
fg[PRELIGHT]      = "#000000"
fg[SELECTED]      = "#f6f7ec"

base[ACTIVE]      = "#909090"	
base[INSENSITIVE] = "#a8a8a8"
base[NORMAL]      = "#f6f7dd"
base[PRELIGHT]    = "#c6c7b5"
base[SELECTED]    = "#909090"

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

GtkRange::slider_width = 15
GtkRange::stepper_size = 15
GtkScrollbar::min_slider_length = 15
GtkCheckButton::indicator_size=16
GtkRadioButton::indicator_size=15
#GtkStatusbar::shadow_type = none

#GtkWidget::interior_focus         = 5
#GtkButton::default_border         = {5, 5, 5, 5}
#GtkButton::default_outside_border = {5, 5, 5, 5}
#GtkButton::default_spacing        = 5

GtkRange::trough_border           = 1
#GtkRange::stepper_spacing         = 0
GtkPaned::handle_size  = 10

GtkScrollbar::has_backward_stepper = 0
GtkScrollbar::has_secondary_forward_stepper = 0

GtkScrollbar::has_forward_stepper = 1
GtkScrollbar::has_secondary_backward_stepper = 1

engine "pixmap" {

        ############################################
        # Handlebox
        ############################################

        image {
            function        = BOX
            recolorable     = TRUE
            detail          = "handlebox_bin"
            file            = "button_normal_out.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
        }

        ############################################
        # The Handle on Handleboxes
        ############################################

        image {
            function        = HANDLE
            recolorable     = TRUE
            file            = "handle_bar.png"
            border          = { 10, 5, 5, 10 }
            stretch         = TRUE
            overlay_file    = "scrollbar_thumb.png"
            overlay_border  = { 0, 0, 0, 0 }
            overlay_stretch = FALSE
            orientation     = VERTICAL
        }
	image {
            function        = HANDLE
            recolorable     = TRUE
            file            = "handle_bar.png"
            border          = { 10, 5, 5, 10 }
            stretch         = TRUE
            overlay_file    = "scrollbar_thumb.png"
            overlay_border  = { 0, 0, 0, 0 }
            overlay_stretch = FALSE
            orientation     = HORIZONTAL
        }
        

        ############################################
        # Arrows 
        ############################################

        image {
            function        = ARROW
            recolorable     = TRUE
            state           = NORMAL
            overlay_file    = "arrow_up_small.png"
            overlay_stretch = FALSE
            arrow_direction = UP
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = ACTIVE
            overlay_file    = "arrow_up_small.png"
            overlay_stretch = FALSE
            arrow_direction = UP
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = PRELIGHT
            overlay_file    = "arrow_up_small.png"
            overlay_stretch = FALSE
            arrow_direction = UP
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            shadow          = IN
            overlay_file    = "arrow_up_small.png"
            overlay_stretch = FALSE
            arrow_direction = UP
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = INSENSITIVE
            overlay_file    = "arrow_up_small.png"
            overlay_stretch = FALSE
            arrow_direction = UP
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = NORMAL
            overlay_file    = "arrow_down_small.png"
            overlay_stretch = FALSE
            arrow_direction = DOWN
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = ACTIVE
            overlay_file    = "arrow_down_small.png"
            overlay_stretch = FALSE
            arrow_direction = DOWN
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = PRELIGHT
            overlay_file    = "arrow_down_small.png"
            overlay_stretch = FALSE
            arrow_direction = DOWN
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            shadow          = IN
            overlay_file    = "arrow_down_small.png"
            overlay_stretch = FALSE
            arrow_direction = DOWN
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = INSENSITIVE
            overlay_file    = "arrow_down_small.png"
            overlay_stretch = FALSE
            arrow_direction = DOWN
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = NORMAL
            overlay_file    = "arrow_left_small.png"
            overlay_stretch = FALSE
            arrow_direction = LEFT
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = PRELIGHT
            overlay_file    = "arrow_left_small.png"
            overlay_stretch = FALSE
            arrow_direction = LEFT
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            shadow          = IN
            overlay_file    = "arrow_left_small.png"
            overlay_stretch = FALSE
            arrow_direction = LEFT
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = INSENSITIVE
            overlay_file    = "arrow_left_small.png"
            overlay_stretch = FALSE
            arrow_direction = LEFT
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = NORMAL
            overlay_file    = "arrow_right_small.png"
            overlay_stretch = FALSE
            arrow_direction = RIGHT
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = PRELIGHT
            overlay_file    = "arrow_right_small.png"
            overlay_stretch = FALSE
            arrow_direction = RIGHT
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            shadow          = IN
            overlay_file    = "arrow_right_small.png"
            overlay_stretch = FALSE
            arrow_direction = RIGHT
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = INSENSITIVE
            overlay_file    = "arrow_right_small.png"
            overlay_stretch = FALSE
            arrow_direction = RIGHT
        }

        ############################################
        # Hline and Vline Widgets 
        ############################################

        image {
            function        = HLINE
            recolorable     = TRUE
            file            = "horizontal_line.png"
            border          = { 0, 0, 1, 1 }
            stretch         = TRUE
        }
        image {
            function        = VLINE
            recolorable     = TRUE
            file            = "vertical_line.png"
            border          = { 1, 1, 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
            shadow          = IN
            overlay_file    = "check_in.png"
            overlay_stretch = FALSE
        }

        ############################################
        # Option Marks 
        ############################################

        image {
            function        = OPTION
            recolorable     = TRUE
            shadow          = OUT
            overlay_file    = "option_out.png"
            overlay_border  = { 0, 0, 0, 0 }
            overlay_stretch = FALSE
        }
        image {
            function        = OPTION
            recolorable     = TRUE
            shadow          = IN
            overlay_file    = "option_in.png"
            overlay_border  = { 0, 0, 0, 0 }
            overlay_stretch = FALSE
        }

  

        ############################################
        # How to draw shadows in general 
        ############################################

        image {
            function        = SHADOW
            recolorable     = TRUE
            shadow          = IN
            file            = "shadow_in.png"
            border          = { 1, 1, 1, 1 }
            stretch         = TRUE
        }
        image {
            function        = SHADOW
            recolorable     = TRUE
            shadow          = OUT
            file            = "shadow_out.png"
            border          = { 1, 1, 1, 1 }
            stretch         = TRUE
        }
        image {
            function        = SHADOW
            recolorable     = TRUE
            shadow          = ETCHED_IN
            file            = "etched.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
        }
        image {
            function        = SHADOW
            recolorable     = TRUE
            shadow          = ETCHED_OUT
            file            = "etched.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
        }
	
    }
}

class "GtkWidget" style "Default"
