include "../icons/iconrc"
#include "fix-librsvg-engine-with-pixmap-engine"

style "default"
{
    font = "-*-helvetica-medium-r-normal--10-*-*-*-*-*-*-*"
    #fg[NORMAL]      = { 0.00, 0.00, 0.00 }
    fg[PRELIGHT]    = { 0.00, 0.00, 0.00 }
    fg[ACTIVE]      = { 0.00, 0.00, 0.00 }
    fg[SELECTED]    = { 1.00, 1.00, 1.00 }
    fg[INSENSITIVE] = { 0.70, 0.70, 0.70 }
                                                                                                                            
    bg[NORMAL]      = "#ffffff"
    bg[PRELIGHT]    = "#ffffff"
    bg[ACTIVE]      = "#ffffff"
    bg[INSENSITIVE] = "#ffffff"
    bg[SELECTED]    = "#1376d3"
                                                                                                                            
    base[NORMAL]    = "#ffffff"
    base[SELECTED]  = "#1376d3"
    base[ACTIVE]    = "#5e7ab7"
                                                                                                                            
    #fg[NORMAL]  = "#ffffff"
    text[SELECTED]  = "#ffffff"
    text[ACTIVE]    = "#ffffff"
  bg_pixmap[NORMAL]     = "menubar_background.png"
  bg_pixmap[PRELIGHT]   = "menubar_background.png"
  bg_pixmap[ACTIVE]     = "menubar_background.png"
  bg_pixmap[INSENSITIVE]= "menubar_background.png"

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


    engine "pixmap"
    {


        image {
            function        = ARROW
            recolorable     = TRUE
            state           = NORMAL
            overlay_file    = "arrow_up_normal.png"
            overlay_stretch = FALSE
            arrow_direction = UP
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = PRELIGHT
            overlay_file    = "arrow_up_normal.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_normal.png"
            overlay_stretch = FALSE
            arrow_direction = UP
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = NORMAL
            overlay_file    = "arrow_down_normal.png"
            overlay_stretch = FALSE
            arrow_direction = DOWN
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = PRELIGHT
            overlay_file    = "arrow_down_normal.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_normal.png"
            overlay_stretch = FALSE
            arrow_direction = DOWN
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = NORMAL
            overlay_file    = "arrow_left_normal.png"
            overlay_stretch = FALSE
            arrow_direction = LEFT
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = PRELIGHT
            overlay_file    = "arrow_left_normal.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_normal.png"
            overlay_stretch = FALSE
            arrow_direction = LEFT
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = NORMAL
            overlay_file    = "arrow_right_normal.png"
            overlay_stretch = FALSE
            arrow_direction = RIGHT
        }
        image {
            function        = ARROW
            recolorable     = TRUE
            state           = PRELIGHT
            overlay_file    = "arrow_right_normal.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_normal.png"
            overlay_stretch = FALSE
            arrow_direction = RIGHT
        }
    }
}


style "button"
{
	engine "pixmap" 
	{
               image {
                    function        = CHECK
                    recolorable     = TRUE
                    shadow          = OUT
                    overlay_file    = "checkbox_unchecked.png"
		    overlay_border  = { 22, 22, 6, 6 }
                    overlay_stretch = FALSE
                }
                image {
                    function        = CHECK
                    recolorable     = TRUE
                    shadow          = IN
                    overlay_file    = "checkbox_checked.png"
		    overlay_border  = { 22, 22, 6, 6 }
                    overlay_stretch = FALSE
                }
	        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
	        }

		image 
      		{
		        function        	= BOX
			recolorable     	= TRUE
			state           	= PRELIGHT
			shadow          	= OUT
			file			= "button.png"
			border         	= {7,7,7,7}
			stretch         	= TRUE
		}
		image 
		{
		        function        	= BOX
			recolorable     	= TRUE
			state           	= NORMAL
			shadow          	= OUT
			file			= "buttonNorm.png"
			border         	= {7,7,7,7}
			stretch         	= TRUE
		}
		image 
		{
		        function		= BOX
			recolorable     	= TRUE
			state		= INSENSITIVE
			file            	= "buttonPressed.png"
			border          	= { 7,7,7,7 }
			stretch         	= TRUE
		}
		image 
		{
		        function        	= BOX
			recolorable     	= TRUE
			state		= PRELIGHT
			file            	= "buttonPressed.png"
			border          	= { 7,7,7,7 }
			stretch         	= TRUE
		}
		image
		{
		        function       	= BOX
			recolorable     	= TRUE
			state		= ACTIVE
			file            	= "buttonPressed.png"
			border          	= { 7,7,7,7 }
			stretch         	= TRUE
		}
		image
		{
		        function       	= BOX
			recolorable     	= TRUE
			shadow 		= IN
			state		= SELECTED
			file            	= "buttonPressed.png"
			border          	= { 7,7,7,7 }
			stretch         	= TRUE
		}
	}	
}

style "togglebuttons" = "default"
{
#	engine "mist" { }
}

style "CheckRadioButton" {
    engine "pixmap" {
        image {
            function        = FLAT_BOX
            recolorable     = TRUE
        }
    }
}



style "thin"
{
	ythickness = 1
	xthickness = 1
}

style "menubar" 
{
	ythickness=0
	xthickness=0
	GtkContainer::border_width=0
	#bg[NORMAL]              = "#e9eaec" #MenuBarbackgroundcolor
	#bg[NORMAL] = "#ffffff"

}

style "optionmenu"
{
	engine "pixmap" 
	{

		image 
		{
			function      = BOX
			recolorable  = TRUE
			state           = NORMAL
			file              = "pullDownMenu.png"
			border         = { 6,20,6,6 }
			stretch        = TRUE
      		}
                image
                {
                        function      = BOX
                        recolorable  = TRUE
                        state           = PRELIGHT
                        file              = "pullDownMenu.png"
                        border         = { 6,20,6,6 }
                        stretch        = TRUE
                }
	        image {
	            	function        = TAB
	            	recolorable     = TRUE
	            	overlay_file    = "menubar_option_arrow.png"
	            	overlay_stretch = FALSE
	        }
	        image {
	            	function        = TAB
	            	recolorable     = TRUE
	            	state           = INSENSITIVE
	            	overlay_file    = "menubar_option_arrow.png"
	            	overlay_stretch = FALSE
	        }

	}
}

style "Notebook" {
                                                                                                                                              
  xthickness = 1
  ythickness = 1

    engine "pixmap" {
        image {
            function        = EXTENSION
            recolorable     = TRUE
            state           = ACTIVE
            file            = "notebook_inactive.png"
            border          = { 10, 10, 10, 10 }
            stretch         = TRUE
            gap_side        = BOTTOM
        }
        image {
            function        = EXTENSION
            recolorable     = TRUE
            file            = "notebook_active.png"
            border          = { 10, 10, 10, 10 }
            stretch         = TRUE
            gap_side        = BOTTOM 
        }
    image
      {
        function                        = BOX_GAP
        recolorable             = TRUE
        file                            = "notebook.png"
        border                  = { 10, 10, 10, 10 }
        stretch                 = TRUE

      }
    image
      {
        function                        = BOX
        recolorable             = TRUE
        file                            = "notebook.png"
        border                  = { 9, 9, 9, 9 }
        stretch                 = TRUE
        #gap_side                       = TOP
      }

    }
}



style "Scrollbar" {
    engine "pixmap" {
        image {
            function        = BOX
            recolorable     = TRUE
            detail          = "trough"
            file            = "vertical_trough.png"
            border          = { 2, 2, 1, 1 }
            stretch         = TRUE
            orientation     = VERTICAL
        }
        image {
            function        = BOX
            recolorable     = TRUE
            detail          = "trough"
            file            = "horizontal_trough.png"
            border          = { 1, 1, 2, 2 }
            stretch         = TRUE
            orientation     = HORIZONTAL
        }
        image {
            function        = SLIDER
            recolorable     = TRUE
            state           = NORMAL
            file            = "scroll_horizontal.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
            orientation     = HORIZONTAL
        }
        image {
            function        = SLIDER 
            recolorable     = TRUE
            state           = PRELIGHT
            file            = "scroll_horizontal.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
            orientation     = HORIZONTAL
        }
        image {
            function        = SLIDER
            recolorable     = TRUE
            state           = NORMAL
            file            = "scroll_vertical.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
            orientation     = VERTICAL
        }
        image {
            function        = SLIDER 
            recolorable     = TRUE
            state           = PRELIGHT
            file            = "scroll_vertical.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
            orientation     = VERTICAL
        }
        image {
            function        = BOX
            recolorable     = TRUE
            state           = NORMAL 
            file            = "button_up_normal.png"
            border          = { 0, 0, 0, 0 }
            stretch         = TRUE
        }
        image {
            function        = BOX
            recolorable     = TRUE
            state           = PRELIGHT
            file            = "button_up_normal.png"
            border          = { 0, 0, 0, 0 }
            stretch         = TRUE
        }
        image {
            function        = BOX
            recolorable     = TRUE
            state           = ACTIVE
            file            = "button_up_normal.png"
            border          = { 0, 0, 0, 0 }
            stretch         = TRUE
        }
    }
}


style "Scale" {
    engine "pixmap" {
        image {
            function        = BOX
            recolorable     = TRUE
            detail          = "trough"
            file            = "vertical_trough.png"
            border          = { 2, 2, 1, 1 }
            stretch         = TRUE
            orientation     = VERTICAL
        }
        image {
            function        = BOX
            recolorable     = TRUE
            detail          = "trough"
            file            = "horizontal_trough.png"
            border          = { 1, 1, 2, 2 }
            stretch         = TRUE
            orientation     = HORIZONTAL
        }
        image {
            function        = SLIDER
            recolorable     = TRUE
            state           = NORMAL
            file            = "scroll_horizontal.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
            orientation     = HORIZONTAL
        }   
        image {
            function        = SLIDER 
            recolorable     = TRUE
            state           = PRELIGHT
            file            = "scroll_horizontal.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
            orientation     = HORIZONTAL
        }
        image {
            function        = SLIDER
            recolorable     = TRUE
            state           = INSENSITIVE
            file            = "scroll_horizontal.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
            orientation     = HORIZONTAL
        }   
        image {
            function        = SLIDER
            recolorable     = TRUE
            state           = NORMAL
            file            = "scroll_vertical.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
            orientation     = VERTICAL
        }
        image {
            function        = SLIDER
            recolorable     = TRUE
            state           = PRELIGHT
            file            = "scroll_vertical.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
            orientation     = VERTICAL
        }
        image {
            function        = SLIDER
            recolorable     = TRUE
            state           = INSENSITIVE
            file            = "scroll_vertical.png"
            border          = { 2, 2, 2, 2 }
            stretch         = TRUE
            orientation     = VERTICAL
        }
    }
}



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

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


style "Window" {
    engine "pixmap" {
        image {
            function        = FLAT_BOX
            recolorable     = TRUE
            file            = "window_background.png"
            stretch         = FALSE
        }
    }
}

style "tooltips"		= "default"
{
  bg[NORMAL]		= "#fffcdb"

engine "pixmap" {
    image 
      {
        function			= FLAT_BOX
	recolorable		= TRUE
	
	file				= "tooltips.png"
	border			= { 2, 2, 2, 2 }
	stretch			= TRUE
      }
}

}

style "panelbg"
{
  xthickness            			= 0
  ythickness            			= 1
 bg_pixmap[NORMAL]					= "window_background.png"
 


}

style "toolbar"
{
	xthickness = 0
  ythickness = 0
	bg_pixmap[NORMAL]					= "window_background.png"
	engine "pixmap" {
	

		image 
		{
			function        		= SHADOW
			shadow						= OUT
			recolorable     	= TRUE
			file            					= "up2.png"
			border							= { 2,2,2,2 }
			stretch         			= TRUE
		}
		
		image 
		{
			function        		= SHADOW
			shadow						= IN
			recolorable     	= TRUE
			file            					= "in.png"
			border							= { 1,1,1,1 }
			stretch         			= TRUE
		}
			
	}
}

class "*GtkToolbar*" style "toolbar"

class "*HButtonBox*" style "toolbar"
class "*VButtonBox*" style "toolbar"
class "GtkContainer" style "toolbar"
widget_class "GtkViewport" style "toolbar"

### now I have to set the thickness of the container back to 2 pixels

style "containerthickness"
{

  xthickness = 1
  ythickness = 1
    

}
class "GtkContainer" style "containerthickness"

class "*Panel*" style "panelbg"

class "GtkWindow" style "Window"                                                               
class "GtkMenuItem" style "MenuItem"
class "GtkOptionMenu" style "optionmenu"
#class "GtkMenu" style "menu"
class "GtkScale" style "Scale"
class "GtkMenuBar" style "menubar"
class "GtkScrollbar" style "Scrollbar"
class "GtkNotebook" style "Notebook"
class "GtkProgressBar" style "ProgressBar"
class "GtkCheckButton" style "CheckRadioButton"
class "GtkRadioButton" style "CheckRadioButton"
class "GtkScrolledWindow" style "thin"
class "GtkCheckBox" style "thin"
class "GtkButton" style "button"
class "GtkWidget" style "default"
widget "gtk-tooltips"  			style "tooltips"
