# Author:       ScionicSpectre
# Theme:        Breezy
# Description:  Breeze theme for GTK+2.0

gtk-color-scheme = "bg_color:#EFF0F1\nselected_bg_color:#3DAEE9\nbase_color:#FCFCFC" # Background, base.
gtk-color-scheme = "fg_color:#31363B\nselected_fg_color:#FFFFFF\ninsensitive_fg_color:#BDC3C7\ntext_color:#31363B" # Foreground, text.
gtk-color-scheme = "tooltip_bg_color:#31363B\ntooltip_fg_color:#FCFCFC" # Tooltips.

gtk-auto-mnemonics	= 1

style "default"
{
	xthickness	= 1
	ythickness	= 1

	# Style Properties

	GtkScrollbar::activate-slider	= 1
	GtkWidget::focus-line-width	= 0
	GtkWidget::new-tooltip-style	= 1
	GtkWidget::tooltip-alpha	= 230
	GtkWidget::tooltip-radius	= 2
	GtkMenuBar::window-dragging	= 1
	GtkToolbar::window-dragging	= 1
	GtkToolbar::internal-padding	= 5

	GtkSeparatorMenuItem::horizontal-padding 	= 3
	GtkSeparatorMenuItem::wide-separators 		= 1
	GtkSeparatorMenuItem::separator-height 		= 1

	GtkCheckMenuItem::indicator-size 			= 18
	GtkRadioMenuItem::indicator-size 			= 18

	GtkButton::child-displacement-y	= 0
	GtkButton::default-border	= { 0, 0, 0, 0 }
	GtkButton::default-outside_border	= { 0, 0, 0, 0 }

	GtkScrollbar::trough-border	= 5
	GtkScrollbar::slider-width	= 10
	GtkRange::trough-border		= 0
	GtkRange::slider-width		= 7
	GtkRange::stepper-size		= 0

	GtkScrollbar::has-backward-stepper		= 1
	GtkScrollbar::has-forward-stepper		= 1
	GtkScrollbar::stepper-size			= 10
	GtkScrollbar::stepper-spacing			= 0
	GtkScrolledWindow ::scrollbar-spacing		= 0
	GtkScrolledWindow ::scrollbars-within-bevel	= 1

	GtkVScale::slider_length 	= 18
	GtkVScale::slider_width 	= 18
	GtkHScale::slider_length 	= 18
	GtkHScale::slider_width 	= 18

	GtkStatusbar::shadow_type	= GTK_SHADOW_NONE
	GtkSpinButton::shadow_type 	= GTK_SHADOW_NONE
	GtkMenuBar::shadow-type		= GTK_SHADOW_NONE
	GtkMenuBar::internal-padding	= 3
	GtkMenu::horizontal-padding	= 2
	GtkMenu::vertical-padding	= 2

	GtkNotebook::tab-overlap	= 7
	GtkNotebook::tab-curvature	= 7

	GtkCheckButton::indicator_spacing	= 3
	GtkOptionMenu::indicator_spacing	= { 8, 2, 0, 0 }

	GtkTreeView::row_ending_details 	= 0
	GtkTreeView::expander-size		= 12
	GtkTreeView::vertical-separator		= 1
	GtkTreeView::horizontal-separator	= 4
	GtkTreeView::allow-rules		= 1

	GtkProgressBar::min-horizontal-bar-height	= 8
	GtkProgressBar::min-vertical-bar-width 		= 8

	GtkEntry::state-hint            			= 1

	GtkWidget::link-color		= "#1998DA"
	GtkWidget::visited-link-color	= "#1478AC"

	# Colors

	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)

	fg[NORMAL]		= @text_color
	fg[PRELIGHT]		= @fg_color
	fg[SELECTED]		= @selected_fg_color
	fg[INSENSITIVE]		= @insensitive_fg_color
	fg[ACTIVE]			= @fg_color

	text[NORMAL]		= @text_color
	text[PRELIGHT]		= @text_color
	text[SELECTED]		= @selected_fg_color
	text[INSENSITIVE]	= @insensitive_fg_color
	text[ACTIVE]		= @selected_fg_color

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

	# All pixmap options are consolidated below this point

	engine "pixmap"
	{

	# Check Buttons

	image 
	{
            function        		= CHECK
            recolorable     		= TRUE
            state 			= NORMAL
            shadow          		= OUT
            overlay_file    		= "Check-Radio/checkbox-unchecked.png"
            overlay_stretch 		= FALSE
        }
	image 
	{
            function        		= CHECK
            recolorable     		= TRUE
            state 			= PRELIGHT
            shadow          		= OUT
            overlay_file    		= "Check-Radio/checkbox-unchecked.png"
            overlay_stretch 		= FALSE
        }
	image 
	{
            function        		= CHECK
            recolorable     		= TRUE
            state 			= ACTIVE
            shadow          		= OUT
            overlay_file    		= "Check-Radio/checkbox-unchecked.png"
            overlay_stretch 		= FALSE
        }
	image
	{
            function        		= CHECK
            recolorable     		= TRUE
            state			= SELECTED
            shadow          		= OUT
            overlay_file    		= "Check-Radio/checkbox-unchecked.png"
            overlay_stretch 		= FALSE
        }
	image 
	{
            function        		= CHECK
            recolorable     		= TRUE
            state 			= INSENSITIVE
            shadow          		= OUT
            overlay_file    		= "Check-Radio/checkbox-unchecked-insensitive.png"
            overlay_stretch 		= FALSE
        }
	image 
	{
            function        		= CHECK
            recolorable     		= TRUE
	    state	 		= NORMAL
            shadow          		= IN
            overlay_file    		= "Check-Radio/checkbox-checked.png"
            overlay_stretch	 	= FALSE
        }
	image 
	{
            function        		= CHECK
            recolorable     		= TRUE
	    	  state 		= PRELIGHT
            shadow          		= IN
            overlay_file    		= "Check-Radio/checkbox-checked.png"
            overlay_stretch 		= FALSE
        }
	image 
	{
            function        		= CHECK
            recolorable     		= TRUE
	    	state 		        = ACTIVE
            shadow          		= IN
            overlay_file    		= "Check-Radio/checkbox-checked.png"
            overlay_stretch 		= FALSE
        }
	image
	{
            function        		= CHECK
            recolorable     		= TRUE
	    state 		        = SELECTED
            shadow          		= IN
            overlay_file    		= "Check-Radio/checkbox-checked.png"
            overlay_stretch 		= FALSE
        }
	image 
  	{
            function        		= CHECK
            recolorable     		= TRUE
            state 			= INSENSITIVE
            shadow          		= IN
            overlay_file		= "Check-Radio/checkbox-checked-insensitive.png"
            overlay_stretch 		= FALSE
	}

	# Radio Buttons

	image 
	{
            function        		= OPTION
            state 			= NORMAL
            shadow          		= OUT
            overlay_file    		= "Check-Radio/option-unchecked.png"
            overlay_stretch 		= FALSE
        }
	image 
	{
            function        		= OPTION
            state 			= PRELIGHT
            shadow          		= OUT
            overlay_file    		= "Check-Radio/option-unchecked.png"
            overlay_stretch 		= FALSE
        }
	image 
	{
            function        		= OPTION
            state 			= ACTIVE
            shadow          		= OUT
            overlay_file    		= "Check-Radio/option-unchecked.png"
            overlay_stretch 		= FALSE
        }
	image
	{
            function        		= OPTION
            state 			= SELECTED
            shadow          		= OUT
            overlay_file    		= "Check-Radio/option-unchecked.png"
            overlay_stretch 		= FALSE
        }
	image 
	{
            function        		= OPTION
            state 			= INSENSITIVE
            shadow         		= OUT
            overlay_file    		= "Check-Radio/option-unchecked-insensitive.png"
            overlay_stretch 		= FALSE
        }
	image 
	{
            function        		= OPTION
	    state 			= NORMAL
            shadow          		= IN
            overlay_file    		= "Check-Radio/option-checked.png"
            overlay_stretch 		= FALSE
        }
 	image 
	{
            function        		= OPTION
	    state			= PRELIGHT
            shadow          		= IN
            overlay_file    		= "Check-Radio/option-checked.png"
            overlay_stretch 		= FALSE
        }
	image 
	{
            function        		= OPTION
	    state			= ACTIVE
            shadow          		= IN
            overlay_file    		= "Check-Radio/option-checked.png"
            overlay_stretch	 	= FALSE
        }
	image
	{
            function        		= OPTION
	    state			= SELECTED
            shadow          		= IN
            overlay_file    		= "Check-Radio/option-checked.png"
            overlay_stretch	 	= FALSE
        }
	image 
	{
            function        		= OPTION
	    state 			= INSENSITIVE
            shadow          		= IN
            overlay_file    		= "Check-Radio/option-checked-insensitive.png"
            overlay_stretch 		= FALSE
        }

	# Arrows

	image
	{
	  function			= ARROW
	  state				= NORMAL
	  overlay_file			= "Arrows/arrow-up.png"
	  overlay_border		= { 0, 0, 0, 0 }
	  overlay_stretch		= FALSE
	  arrow_direction		= UP
	}
	image
	{
	  function			= ARROW
	  state				= PRELIGHT
	  overlay_file			= "Arrows/arrow-up-prelight.png"
	  overlay_border		= { 0, 0, 0, 0 }
	  overlay_stretch		= FALSE
	  arrow_direction		= UP
	}
	image
	{
	  function			= ARROW
	  state				= ACTIVE
	  overlay_file			= "Arrows/arrow-up-prelight.png"
	  overlay_border		= { 0, 0, 0, 0 }
	  overlay_stretch		= FALSE
	  arrow_direction		= UP
	}
	image
	{
	  function			= ARROW
	  state				= INSENSITIVE
	  overlay_file			= "Arrows/arrow-up-insens.png"
	  overlay_border		= { 0, 0, 0, 0 }
	  overlay_stretch		= FALSE
	  arrow_direction		= UP
	}

	image
	{
        function			= ARROW
	  state				= NORMAL
	  overlay_file			= "Arrows/arrow-down.png"
	  overlay_border		= { 0, 0, 0, 0 }
	  overlay_stretch		= FALSE
	  arrow_direction		= DOWN
	}
	image
	{
	  function			= ARROW
	  state				= PRELIGHT
	  overlay_file			= "Arrows/arrow-down-prelight.png"
	  overlay_border		= { 0, 0, 0, 0 }
	  overlay_stretch		= FALSE
	  arrow_direction		= DOWN
	}
	image
	{
	  function			= ARROW
	  state				= ACTIVE
	  overlay_file			= "Arrows/arrow-down-prelight.png"
	  overlay_border		= { 0, 0, 0, 0 }
	  overlay_stretch		= FALSE
	  arrow_direction		= DOWN
	}

	image
	{
	  function			= ARROW
	  state				= INSENSITIVE
	  overlay_file			= "Arrows/arrow-down-insens.png"
	  overlay_border		= { 0, 0, 0, 0 }
	  overlay_stretch		= FALSE
	  arrow_direction		= DOWN
	}

	image
	{
	  function			= ARROW
	  state				= NORMAL
	  overlay_file			= "Arrows/arrow-left.png"
	  overlay_border		= { 0, 0, 0, 0 }
	  overlay_stretch		= FALSE
	  arrow_direction		= LEFT
	}
	image
	{
	    function			= ARROW
	    state			= PRELIGHT
	    overlay_file		= "Arrows/arrow-left-prelight.png"
	    overlay_border		= { 0, 0, 0, 0 }
	    overlay_stretch		= FALSE
	    arrow_direction		= LEFT
	}
	image
	{
	    function			= ARROW
	    state			= ACTIVE
	    overlay_file		= "Arrows/arrow-left-prelight.png"
	    overlay_border		= { 0, 0, 0, 0 }
	    overlay_stretch		= FALSE
	    arrow_direction		= LEFT
	}
	image
	{
	    function			= ARROW
	    state			= INSENSITIVE
	    overlay_file		= "Arrows/arrow-left-insens.png"
	    overlay_border		= { 0, 0, 0, 0 }
	    overlay_stretch		= FALSE
	    arrow_direction		= LEFT
	}

	image
	{
	    function			= ARROW
	    state			= NORMAL
	    overlay_file		= "Arrows/arrow-right.png"
	    overlay_border		= { 0, 0, 0, 0 }
	    overlay_stretch		= FALSE
	    arrow_direction		= RIGHT
	}
	image
	{
	    function			= ARROW
	    state			= PRELIGHT
	    overlay_file		= "Arrows/arrow-right-prelight.png"
	    overlay_border		= { 0, 0, 0, 0 }
	    overlay_stretch		= FALSE
	    arrow_direction		= RIGHT
	}
	image
	{
	    function			= ARROW
	    state			= ACTIVE
	    overlay_file		= "Arrows/arrow-right-prelight.png"
	    overlay_border		= { 0, 0, 0, 0 }
	    overlay_stretch		= FALSE
	    arrow_direction		= RIGHT
	}
	image
	{
	    function			= ARROW
	    state			= INSENSITIVE
	    overlay_file		= "Arrows/arrow-right-insens.png"
	    overlay_border		= { 0, 0, 0, 0 }
	    overlay_stretch		= FALSE
	    arrow_direction		= RIGHT
	}


	# Option Menu Arrows

	image
	{
	  function		= TAB
	  state			= INSENSITIVE
	  overlay_file		= "Arrows/arrow-down-insens.png"
	  overlay_stretch	= FALSE
	}
	image
	{
	  function			= TAB
	  state				= NORMAL
	  overlay_file			= "Arrows/arrow-down.png"
	  overlay_border		= { 0, 0, 0, 0 }
	  overlay_stretch		= FALSE
	}
	image
	{
	  function			= TAB
	  state				= PRELIGHT
	  overlay_file			= "Arrows/arrow-down-prelight.png"
	  overlay_border		= { 0, 0, 0, 0 }
	  overlay_stretch		= FALSE
	}

	#Lines

	image
	{
	   function			= VLINE
	   file				= "Lines/line-v.png"
	   border			= { 0, 0, 0, 0 }
	   stretch			= TRUE
	}
	image
	{
	  function			= HLINE
	  file				= "Lines/line-h.png"
	  border			= { 0, 0, 0, 0 }
	  stretch			= TRUE
	}

	# Handles

	image
	{
	  function			= HANDLE
	  overlay_file			= "Handles/handle-h.png"
	  overlay_stretch		= FALSE
	  orientation			= HORIZONTAL
	}
	image
	{
	  function			= HANDLE
	  overlay_file			= "Handles/handle-v.png"
	  overlay_stretch		= FALSE
	  orientation			= VERTICAL
	}

	# Expanders

	image
	{
		function	= EXPANDER
		expander_style	= COLLAPSED
		file		= "Expanders/plus.png"
	}

	image
	{
		function	= EXPANDER
		expander_style	= EXPANDED
		file		= "Expanders/minus.png"
	}

	image
	{
	    	function	= EXPANDER
	   	expander_style	= SEMI_EXPANDED
	    	file		= "Expanders/minus.png"
	}

	image
	{
		function	= EXPANDER
		expander_style	= SEMI_COLLAPSED
		file		= "Expanders/plus.png"
	}

	image
	{
		function	= RESIZE_GRIP
		state		= NORMAL
		detail		= "statusbar"
		overlay_file	= "Others/null.png"	
		overlay_border	= { 0,0,0,0 }
		overlay_stretch	= FALSE
	}

	# Shadows ( this area needs help :P )

    image
    {
       function			= SHADOW_GAP
       file			= "Others/null.png"
       border			= { 4, 4, 4, 4 }
       stretch			= TRUE
    }
  }
}

style "scrollbar"
{
  engine "pixmap" 
  {
    image 
    {
      function			= BOX
      detail			= "trough"
      file			= "Scrollbars/trough-scrollbar-horiz.png"
      border			= { 25,25, 5, 5 }   #large borders while LibreOffice won't use GtkScrollbar::stepper-spacing=1
      stretch			= TRUE
      orientation		= HORIZONTAL
    }
    image 
    {
      function			= BOX
      detail			= "trough"
      file			= "Scrollbars/trough-scrollbar-vert.png"
      border			= { 5, 5, 25, 25 }
      stretch			= TRUE
      orientation		= VERTICAL
    }

# Sliders

  image 
    {
      function				= SLIDER
      state           			= NORMAL
      file				= "Scrollbars/slider-scrollbar-horiz.png" 
      border				= { 5, 5, 5, 5 }
      stretch				= TRUE
      orientation			= HORIZONTAL

    }
  image 
    {
      function				= SLIDER
      state           			= ACTIVE
      file				= "Scrollbars/slider-scrollbar-horiz-active.png" 
      border				= { 5, 5, 5, 5 }
      stretch				= TRUE
      orientation			= HORIZONTAL

    }
    image 
    {
      function				= SLIDER
      state           			= PRELIGHT
      file				= "Scrollbars/slider-scrollbar-horiz-prelight.png" 
      border				= { 5, 5, 5, 5 }
      stretch				= TRUE
      orientation			= HORIZONTAL

    }
    image 
    {
      function				= SLIDER
      state           			= INSENSITIVE
      file				= "Scrollbars/slider-scrollbar-horiz-insens.png"
      border				= { 5, 5, 5, 5 }
      stretch				= TRUE
      orientation			= HORIZONTAL

    }

# X Verticals

 image 
    {
      function				= SLIDER
      state           			= NORMAL
      file				= "Scrollbars/slider-scrollbar-vert.png" 
      border				= { 5, 5, 5, 5 }
      stretch				= TRUE
      orientation			= VERTICAL

    }
   image 
    {
      function				= SLIDER
      state           			= ACTIVE
      file				= "Scrollbars/slider-scrollbar-vert-active.png" 
      border				= { 5, 5, 5, 5 }
      stretch				= TRUE
      orientation			= VERTICAL

    }
    image 
    {
      function				= SLIDER
      state           			= PRELIGHT
      file				= "Scrollbars/slider-scrollbar-vert-prelight.png" 
      border				= { 5, 5, 5, 5 }
      stretch				= TRUE
      orientation			= VERTICAL

    }
    image 
    {
      function				= SLIDER
      state           			= INSENSITIVE
      file				= "Scrollbars/slider-scrollbar-vert-insens.png"
      border				= { 5, 5, 5, 5 }
      stretch				= TRUE
      orientation			= VERTICAL

    }
  }
}

style "menubar"
{
	bg[PRELIGHT]	= "#FFF"
	fg[SELECTED]	= @text_color

	xthickness	= 0
	ythickness	= 0

	engine "pixmap"
	{
	  image
	    {
	      function		= BOX
	      recolorable	= TRUE
	      state		= PRELIGHT
	      file		= "Menubar/menubar-button.png"

	      border		= { 4, 4, 4, 4 }
	      stretch		= TRUE
	    }
	}
}

style "menu"
{
	xthickness	= 0
	ythickness	= 0

	GtkMenuItem::arrow-scaling	= 0.4
}

style "menu_item"
{
	xthickness	= 2
	ythickness	= 3

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

	GtkMenuItem::toggle-spacing	= 10

	engine "pixmap"
	{

	# Check Buttons

	image 
	{
            function        		= CHECK
            recolorable     		= TRUE
            state 			= NORMAL
            shadow          		= OUT
            overlay_file    		= "Check-Radio/menu-checkbox-unchecked.png"
            overlay_stretch 		= TRUE  #needed for LibreOffice
        }
	image 
	{
            function        		= CHECK
            recolorable     		= TRUE
            state 			= PRELIGHT
            shadow          		= OUT
            overlay_file    		= "Check-Radio/menu-checkbox-unchecked-prelight.png"
            overlay_stretch 		= TRUE
        }
	image 
	{
            function        		= CHECK
            recolorable     		= TRUE
            state 			= ACTIVE
            shadow          		= OUT
            overlay_file    		= "Check-Radio/menu-checkbox-checked.png"
            overlay_stretch 		= TRUE
        }
	image 
	{
            function        		= CHECK
            recolorable     		= TRUE
            state 			= INSENSITIVE
            shadow          		= OUT
            overlay_file    		= "Check-Radio/menu-checkbox-unchecked-insensitive.png"
            overlay_stretch 		= TRUE
        }
	image 
	{
            function        		= CHECK
            recolorable     		= TRUE
	    state	 		= NORMAL
            shadow          		= IN
            overlay_file    		= "Check-Radio/menu-checkbox-checked.png"
            overlay_stretch	 	= TRUE
        }
	image 
	{
            function        		= CHECK
            recolorable     		= TRUE
	    	  state 		= PRELIGHT
            shadow          		= IN
            overlay_file    		= "Check-Radio/menu-checkbox-checked-prelight.png"
            overlay_stretch 		= TRUE
        }
	image 
	{
            function        		= CHECK
            recolorable     		= TRUE
	    	  state 		= ACTIVE
            shadow          		= IN
            overlay_file    		= "Check-Radio/menu-checkbox-checked.png"
            overlay_stretch 		= TRUE
        }
	image 
  	{
 	function        		= CHECK
   	recolorable     		= TRUE
       	state 				= INSENSITIVE
       	shadow          		= IN
       	overlay_file   			= "Check-Radio/menu-checkbox-checked-insensitive.png"
       	overlay_stretch 		= TRUE
	}

	# Radio Buttons

	image 
	{
            function        		= OPTION
            state 			= NORMAL
            shadow          		= OUT
            overlay_file    		= "Check-Radio/menu-option-unchecked.png"
            overlay_stretch 		= TRUE
        }
	image 
	{
            function        		= OPTION
            state 			= PRELIGHT
            shadow          		= OUT
            overlay_file    		= "Check-Radio/menu-option-unchecked-prelight.png"
            overlay_stretch 		= TRUE
        }
	image 
	{
            function        		= OPTION
            state 			= ACTIVE
            shadow          		= OUT
            overlay_file    		= "Check-Radio/menu-option-checked.png"
            overlay_stretch 		= TRUE
        }
	image 
	{
            function        		= OPTION
            state 			= INSENSITIVE
            shadow         		= OUT
            overlay_file    		= "Others/null.png"
            overlay_stretch 		= FALSE
        }
	image 
	{
            function        		= OPTION
	    state 			= NORMAL
            shadow          		= IN
            overlay_file    		= "Check-Radio/menu-option-checked.png"
            overlay_stretch 		= TRUE
        }
 	image 
	{
            function        		= OPTION
	    state			= PRELIGHT
            shadow          		= IN
            overlay_file    		= "Check-Radio/menu-option-checked-prelight.png"
            overlay_stretch 		= TRUE
        }
	image 
	{
            function        		= OPTION
	    state			= ACTIVE
            shadow          		= IN
            overlay_file    		= "Check-Radio/menu-option-checked.png"
            overlay_stretch	 	= TRUE
        }
	image 
	{
            function        		= OPTION
	    state 			= INSENSITIVE
            shadow          		= IN
            overlay_file    		= "Check-Radio/menu-option-checked-insensitive.png"
            overlay_stretch 		= TRUE
        }
	image 
      	{
        	function		= SHADOW # This fixes boxy Qt menu items
		file        		= "Others/null.png"
		border      		= { 10, 10, 10, 10 }
		stretch         	= TRUE
      	}

	# Arrow Buttons

	image
	{
	  function			= ARROW
	  state				= NORMAL
	  overlay_file			= "Arrows/menu-arrow.png"
	  overlay_border		= { 0, 0, 0, 0 }
	  overlay_stretch		= FALSE
	  arrow_direction		= RIGHT
	}
	image
	{
	  function			= ARROW
	  state				= PRELIGHT
	  overlay_file			= "Arrows/menu-arrow-prelight.png"
	  overlay_border		= { 0, 0, 0, 0 }
	  overlay_stretch		= FALSE
	  arrow_direction		= RIGHT
	}
	image
	{
	  function			= ARROW
	  state				= INSENSITIVE
	  overlay_file			= "Arrows/menu-arrow-insens.png"
	  overlay_border		= { 0, 0, 0, 0 }
	  overlay_stretch		= FALSE
	  arrow_direction		= RIGHT
	}
    }
}

style "menubar_item"
{
	xthickness	= 2
	ythickness	= 2
	bg[PRELIGHT]	= @selected_fg_color
	fg[PRELIGHT]	= @selected_fg_color
}

style "toolbar"
{
	engine "pixmap"
	{
		image
		{
			function	= BOX
			file		= "Toolbar/toolbar-bg.png"
			stretch		= TRUE
    		}
 	}
}

style "button"
{
	xthickness	= 4
	ythickness	= 4

  engine "pixmap"
  {
    image
    {
      function			= BOX
      state			= NORMAL
      file			= "Buttons/button-default.png"
      border			= {4, 4, 4, 4 }
      stretch			= TRUE
    }
    image
    {
      function			= BOX
      state			= PRELIGHT
      file			= "Buttons/button-prelight.png"
      border			= { 4, 4, 4, 4 }
      stretch			= TRUE
    }
    image
    {
      function			= BOX
      state			= ACTIVE
      file			= "Buttons/button-pressed.png"
      border			= { 4, 4, 4, 4 }
      stretch			= TRUE
    }	
    image 
   {
     function			= BOX
     state			= INSENSITIVE
     file			= "Buttons/button-insensitive.png"
     border			= { 4, 4, 4, 4 }
     stretch			= TRUE
    }
  }
}

style "toolbuttons"
{
	ythickness	= 1
	GtkWidget::focus_padding = 2

	engine "pixmap" {
      
image
		{
			function        		= BOX
			state				= NORMAL
			file            		= "Toolbar/toolbutton-normal.png"
			border          		= { 4, 4, 4, 4 }
			stretch         		= TRUE
		}
image
		{
			function        		= BOX
			state				= PRELIGHT
			file            		= "Toolbar/toolbutton-prelight.png"
			border          		= { 4, 4, 4, 4 }
			stretch         		= TRUE
		}
image
		{
			function        		= BOX
			state				= ACTIVE
			file            		= "Toolbar/toolbutton-pressed.png"
			border          		= { 4, 4, 4, 4 }
			stretch         		= TRUE
		}  
image
		{
			function        		= BOX
			state				= INSENSITIVE
			file            		= "Toolbar/toolbutton-normal.png"
			border          		= { 4, 4, 4, 4 }
			stretch         		= TRUE
		}  
	}
}

style "tooltoggle_buttons"
{
	engine "pixmap"
	{
		image
			{
			function			= BOX
			state				= ACTIVE
			file 				= "Toolbar/toolbutton-toggled.png"
			border				= { 4, 4, 4, 4}
			stretch				= TRUE
			}
	}
}

style "entry"
{
	xthickness	= 3
	ythickness   	= 3

	engine "pixmap"
	{
	image
	{
		function		= SHADOW
		detail			= "entry"
                state                   = NORMAL
		shadow			= IN
		file			= "Entry/entry-border-bg.png"
		border			= { 4, 4, 4, 4 }
		stretch			= TRUE
	}
	image
	{
		function		= SHADOW
		detail			= "entry"
       		state           = INSENSITIVE
		shadow			= IN
		file			= "Entry/entry-border-disabled-bg.png"
		border			= { 4, 4, 4, 4 }
		stretch			= TRUE
	}
        image
        {
		function		= SHADOW
		detail			= "entry"
        	state           = ACTIVE
		file			= "Entry/entry-border-active-bg.png"
		border			= { 4, 4, 4, 4 }
		stretch			= TRUE
	}
	image
	{
		function       		= FLAT_BOX
		detail          	= "entry_bg"
		state           = ACTIVE
		file			= "Others/null.png"
		border			= { 0, 0, 0, 0 }
		stretch			= TRUE
	}
    }
}

style "notebook_tab_label"
{
  fg[ACTIVE] = @text_color
}

style "spinbutton" = "default"
{
	#bg[NORMAL] = @bg_color

	xthickness	= 3
	ythickness	= 3
	GtkWidget::interior_focus	= 1

engine "pixmap"
  {
    image
    {
      function			= ARROW
    }

	#Spin-up
	image
	{
		function		= BOX
		state 			= NORMAL
		detail			= "spinbutton_up"
		file			= "Spin/up-background.png"
		border			= { 5, 5, 5, 5 }
		stretch			= TRUE
		overlay_file		= "Arrows/arrow-up-small.png"
		overlay_stretch		= FALSE
	}
	image
	{
		function		= BOX
		state 			= PRELIGHT
		detail			= "spinbutton_up"
		file			= "Spin/up-background.png"
		border			= { 5, 5, 5, 5 }
		stretch			= TRUE
		overlay_file		= "Arrows/arrow-up-small-prelight.png"
		overlay_stretch		= FALSE
	}
	image
	{
		function		= BOX
		state 			= INSENSITIVE
		detail			= "spinbutton_up"
		file			= "Spin/up-background-disable.png"
		border			= { 5, 5, 5, 5 }
		stretch			= TRUE
		overlay_file		= "Arrows/arrow-up-small-insens.png"
		overlay_stretch		= FALSE
	}
	image
	{
		function		= BOX
		state 			= ACTIVE
		detail			= "spinbutton_up"
		file			= "Spin/up-background.png"
		border			= { 5, 5, 5, 5 }
		stretch			= TRUE
		overlay_file		= "Arrows/arrow-up-small-prelight.png"
		overlay_stretch		= FALSE
	}

	# Spin-Down
    image
    {
      function			= BOX
      state 			= NORMAL
      detail			= "spinbutton_down"
      file			= "Spin/down-background.png"
      border			= { 5, 5, 5, 5 }
      stretch			= TRUE
      overlay_file		= "Arrows/arrow-down-small.png"
      overlay_stretch		= FALSE
    }
    image
    {
      function			= BOX
      state 			= PRELIGHT
      detail			= "spinbutton_down"
      file			= "Spin/down-background.png"
      border			= { 5, 5, 5, 5 }
      stretch			= TRUE
      overlay_file		= "Arrows/arrow-down-small-prelight.png"
      overlay_stretch		= FALSE
    }
    image
    {
      function			= BOX
      state 			= INSENSITIVE
      detail			= "spinbutton_down"
      file			= "Spin/down-background-disable.png"
      border			= { 5, 5, 5, 5 }
      stretch			= TRUE
      overlay_file		= "Arrows/arrow-down-small-insens.png"
      overlay_stretch		= FALSE
    }
    image
    {
      function			= BOX
      state 			= ACTIVE
      detail			= "spinbutton_down"
      file			= "Spin/down-background.png"
      border			= { 5, 5, 5, 5 }
      stretch			= TRUE
      overlay_file		= "Arrows/arrow-down-small-prelight.png"
      overlay_stretch		= FALSE
    }
  }
}

style "notebook"
{

  xthickness	= 5
  ythickness	= 2

  engine "pixmap" 
    {
    image 
    {
        function		= EXTENSION
	state			= ACTIVE
	file			= "Tabs/tab-bottom.png"
	border			= { 3,3,3,3 }
	stretch			= TRUE
	gap_side		= TOP
    }
    image 
    {
        function		= EXTENSION
	state			= ACTIVE
	file			= "Tabs/tab-top.png"
	border			= { 3,3,3,3 }
	stretch			= TRUE
	gap_side		= BOTTOM
    }
    image 
    {
        function		= EXTENSION
	state			= ACTIVE
	file			= "Tabs/tab-left.png"
	border			= { 3,3,3,3 }
	stretch			= TRUE
	gap_side		= RIGHT
    }
    image 
    {
        function		= EXTENSION
	state			= ACTIVE
	file			= "Tabs/tab-right.png"
	border			= { 3,3,3,3 }
	stretch			= TRUE
	gap_side		= LEFT
    }	
    image 
    {
        function		= EXTENSION
	file			= "Tabs/tab-top-active.png"
	border			= { 3,3,3,3 }
	stretch			= TRUE
	gap_side		= BOTTOM
    }
    image 
    {
        function		= EXTENSION
	file			= "Tabs/tab-bottom-active.png"
	border			= { 3,3,3,3 }
	stretch			= TRUE
	gap_side		= TOP
    }
    image 
    {
        function		= EXTENSION
	file			= "Tabs/tab-left-active.png"
	border			= {  3,3,3,3 }
	stretch			= TRUE
	gap_side		= RIGHT
    }
    image
    {
        function		= EXTENSION
	file			= "Tabs/tab-right-active.png"
	border			= {  3,3,3,3 }
	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
	file				= "Tabs/notebook.png" 
	border				= { 4, 4, 4, 4 }
	stretch				= TRUE
	gap_file			= "Tabs/notebook-gap-horiz.png"
	gap_border     			= { 2, 2, 0, 0 }
	gap_side			= TOP
    }
    image 
    {
        function			= BOX_GAP
	file				= "Tabs/notebook.png"
	border				= { 4, 4, 4, 4 }
	stretch				= TRUE
	gap_file			= "Tabs/notebook-gap-horiz.png"
	gap_border			= { 2, 2, 0, 0 }
	gap_side			= BOTTOM
    }
    image 
    {
        function			= BOX_GAP
	file				= "Tabs/notebook.png"
	border				= { 4, 4, 4, 4 }
	stretch				= TRUE
	gap_file			= "Tabs/notebook-gap-vert.png"
	gap_border			= { 0, 0, 2, 2 }
	gap_side			= LEFT
    }
    image 
    {
        function			= BOX_GAP
	file				= "Tabs/notebook.png" 
	border				= { 4, 4, 4, 4 }
	stretch				= TRUE
	gap_file			= "Tabs/notebook-gap-vert.png"
	gap_border			= { 0, 0, 2, 2 }
	gap_side			= RIGHT
    }

# How to draw the box of a notebook when it isnt attached to a tab

    image 
      {
	function		= BOX
	file			= "Tabs/notebook.png"
	border			= { 4, 4, 4, 4 }
	stretch			= TRUE
      }
  }
}

style "range"
{	
  engine "pixmap" 
  {
    image 
    {
      function			= BOX
      detail			= "trough"
      file			= "Range/trough-horizontal.png"
      border			= { 4, 4, 0, 0 }
      stretch			= TRUE
      orientation		= HORIZONTAL
    }	
    image 
    {
      function			= BOX
      detail			= "trough"
      file			= "Range/trough-vertical.png"
      border			= { 0, 0, 4, 4 }
      stretch			= TRUE
      orientation		= VERTICAL
    }

    # Horizontal

    image 
    {
      function				= SLIDER
      state           			= NORMAL
      file				= "Others/null.png"
      border				= { 0, 0, 0, 0 }
      stretch				= TRUE
      overlay_file			= "Range/slider-horiz.png"
      overlay_stretch			= FALSE
      orientation			= HORIZONTAL
    }
    image 
    {
      function				= SLIDER
      state           			= PRELIGHT
      file				= "Others/null.png"
      border				= { 0, 0, 0, 0 }
      stretch				= TRUE
      overlay_file			= "Range/slider-horiz-prelight.png"
      overlay_stretch			= FALSE
      orientation			= HORIZONTAL
    }
    image 
    {
      function				= SLIDER
      state           			= INSENSITIVE
      file				= "Others/null.png"
      border				= { 0, 0, 0, 0 }
      stretch				= TRUE
      overlay_file			= "Range/slider-horiz.png"
      overlay_stretch			= FALSE
      orientation			= HORIZONTAL
    }

    # Vertical

    image 
    {
      function				= SLIDER
      state           			= NORMAL
      file				= "Others/null.png"
      border				= { 0, 0, 0, 0 }
      stretch				= TRUE
      overlay_file			= "Range/slider-vert.png"
      overlay_stretch			= FALSE
      orientation			= VERTICAL
    }
    image 
    {
      function				= SLIDER
      state           			= PRELIGHT
      file				= "Others/null.png"
      border				= { 0, 0, 0, 0 }
      stretch				= TRUE
      overlay_file			= "Range/slider-vert-prelight.png"
      overlay_stretch			= FALSE
      orientation			= VERTICAL
    }
    image 
    {
      function				= SLIDER
      state           			= INSENSITIVE
      file				= "Others/null.png"
      border				= { 0, 0, 0, 0 }
      stretch				= TRUE
      overlay_file			= "Range/slider-vert.png"
      overlay_stretch			= FALSE
      orientation			= VERTICAL
    }
	# Function below removes ugly boxes

	image 
      	{
        	function		= BOX
		file        		= "Others/null.png"
		border      		= { 3, 3, 3, 3 }
		stretch         	= TRUE
      	}

  }
}

style "progressbar" {
  xthickness              = 0
  ythickness              = 0

  engine "pixmap" 
  {
    image
    {
      function		= BOX
      detail		= "trough"
      file		= "ProgressBar/trough.png"
      border		= { 4, 4, 4, 4 }
      stretch		= TRUE
      orientation	= HORIZONTAL
    }
    image
    {
      function		= BOX
      detail		= "bar"
      file		= "ProgressBar/bar.png"
      stretch		= TRUE
      border		= { 4, 4, 4, 4 }
      orientation	= HORIZONTAL
    }
    image
    {
      function		= BOX
      detail		= "trough"
      file		= "ProgressBar/trough.png"
      border		= { 4, 4, 4, 4 }
      stretch		= TRUE
      orientation	= VERTICAL
    }
    image
    {
      function		= BOX
      detail		= "bar"
      file		= "ProgressBar/bar.png"
      stretch		= TRUE
      border		= { 4, 4, 4, 4 }
      orientation	= VERTICAL
    }
  }
}

style "separator_menu_item" 
{
	engine "pixmap"
	{
		image 
      	{
        	function		= BOX
		file        		= "Lines/menu-line-h.png"
		border      		= { 1, 1, 1, 1 }
		stretch         	= TRUE
      	}
    }
}

style "treeview"
{
	engine "pixmap"
	{
	image 
      	{
        	function		= BOX
		file        		= "Others/tree-header.png"
		border      		= { 1, 1, 1, 1 }
		stretch         	= TRUE
	}
    }
}

style "scrolled_window"
{
	engine "pixmap"
	{
    image
    {
       function			= SHADOW
       file			= "Shadows/frame.png"
       border			= { 5, 5, 5, 5 }
       stretch			= TRUE
    }
  }
}

style "frame"
{
        xthickness      = 1
        ythickness      = 1

        engine "pixmap"
	{
        image
        {
                function                = SHADOW
                file                    = "Shadows/frame.png"
                border                  = { 1, 1, 1, 1 }
                stretch                 = TRUE
                shadow                  = IN
        }
        image
        {
                function                = SHADOW_GAP
                file                    = "Shadows/frame.png"
                border                  = { 1, 1, 1, 1 }
                stretch                 = TRUE
                gap_start_file          = "Shadows/frame-gap-start.png"
                gap_start_border        = { 1, 0, 0, 0 }
                gap_end_file            = "Shadows/frame-gap-end.png"
                gap_end_border          = { 0, 1, 0, 0 }
                shadow                  = IN
        }
        image
        {
                function                = SHADOW
                file                    = "Shadows/frame.png"
                border                  = { 1, 1, 1, 1 }
                stretch                 = TRUE
                shadow                  = OUT
        }
        image
        {
                function                = SHADOW_GAP
                file                    = "Shadows/frame.png"
                border                  = { 1, 1, 1, 1 }
                stretch                 = TRUE
                gap_start_file          = "Shadows/frame-gap-start.png"
                gap_start_border        = { 1, 0, 0, 0 }
                gap_end_file            = "Shadows/frame-gap-end.png"
                gap_end_border          = { 0, 1, 0, 0 }
                shadow                  = OUT
        }
        image
        {
                function                = SHADOW
                file                    = "Shadows/frame.png"
                border			= { 1, 1, 1, 1 }
                stretch                 = TRUE
                shadow                  = ETCHED_IN
        }
        image
        {
                function                = SHADOW_GAP
                file                    = "Shadows/frame.png"
                border                  = { 1, 1, 1, 1 }
                stretch                 = TRUE
                gap_start_file          = "Shadows/frame-gap-start.png"
                gap_start_border        = { 1, 0, 0, 0 }
                gap_end_file            = "Shadows/frame-gap-end.png"
                gap_end_border          = { 0, 1, 0, 0 }
                shadow                  = ETCHED_IN
        }
        image
        {
                function                = SHADOW
                file                    = "Shadows/frame.png"
                border                  = { 1, 1, 1, 1 }
                stretch                 = TRUE
                shadow                  = ETCHED_OUT
        }
        image
        {
                function                = SHADOW_GAP
                file                    = "Shadows/frame.png"
                border                  = { 1, 1, 1, 1 }
                stretch                 = TRUE
                gap_start_file          = "Shadows/frame-gap-start.png"
                gap_start_border        = { 1, 0, 0, 0 }
                gap_end_file            = "Shadows/frame-gap-end.png"
                gap_end_border          = { 0, 1, 0, 0 }
                shadow                  = ETCHED_OUT
        }
        }
}

style "tooltips"
{
	xthickness	= 8
	ythickness	= 4

	bg[NORMAL]	= @tooltip_bg_color
	fg[NORMAL]	= @tooltip_fg_color
	bg[SELECTED]	= @tooltip_bg_color
}

# Chromium

style "chrome-gtk-frame"
{
	ChromeGtkFrame::frame-color = @bg_color
	ChromeGtkFrame::inactive-frame-color = @bg_color

	ChromeGtkFrame::frame-gradient-size = 16
	ChromeGtkFrame::frame-gradient-color = @bg_color

	ChromeGtkFrame::incognito-frame-color = lighter (@bg_color)
	ChromeGtkFrame::incognito-inactive-frame-color = lighter (@bg_color)

	ChromeGtkFrame::incognito-frame-gradient-size = 16
	ChromeGtkFrame::incognito-frame-gradient-color = @bg_color

	ChromeGtkFrame::scrollbar-trough-color = shade (0.912, @bg_color)
	ChromeGtkFrame::scrollbar-slider-prelight-color = shade (1.04, @bg_color)
	ChromeGtkFrame::scrollbar-slider-normal-color = @bg_color
}

# Firefox/Thunderbird

style "mozilla"
{
	bg[ACTIVE] = @bg_color
}

style "null"
{
	engine "pixmap"
	{
		image
		{
			function	= BOX
			file		= "Others/null.png"
			stretch		= TRUE
    		}
 	}
}

style "menu_framed_box"
{
	engine "pixmap"
	{
     image
     {
	function                = BOX
	detail                  = "menu"
	file			= "Menubar/menu-frame.png"
	border	                = { 1, 1, 1, 1 }
	stretch		        = TRUE
     }
    }
}

class "GtkWidget"			style "default"
class "GtkScrollbar"       		style "scrollbar"
class "GtkButton"          		style "button"
class "GtkEntry"           		style "entry"
class "GtkOldEditable" 			style "entry"
class "GtkSpinButton"   	 	style "spinbutton"
class "GtkNotebook"      		style "notebook"
class "GtkRange"         		style "range"
class "GtkProgressBar"     		style "progressbar"
class "GtkSeparatorMenuItem"		style "separator_menu_item"
class "GtkScrolledWindow"		style "scrolled_window"
class "GtkFrame"	            style "frame"

class "ChromeGtkFrame" 			style "chrome-gtk-frame"

widget_class "*<GtkMenuBar>*"			style "menubar"
widget_class "*<GtkMenu>*"			style "menu"
widget_class "*<GtkMenu>*"			style "menu_framed_box"
widget_class "*<GtkMenuItem>*"			style "menu_item"
widget_class "*<GtkMenuBar>.<GtkMenuItem>*"	style "menubar_item"
widget_class "*Nautilus*ToolBar*"	style "toolbar"
widget_class "*HandleBox"		style "toolbar"
widget_class "*BonoboDockItem"		style "toolbar"
widget_class "*HandleBox"		style "toolbar"
widget_class "*<GtkToolbar>"		style "toolbar"
widget_class "*.<GtkTreeView>*"		style "treeview"
widget_class "*Tool*GtkButton"		style "toolbuttons"
widget_class "*Tool*GtkToggleButton"	style "tooltoggle_buttons"
widget_class "*<GtkFileChooserDialog>*GtkToggleButton*"	style "toolbuttons"
widget_class "*<GtkFileChooserDialog>*GtkComboBox*"	style "button"
widget_class "*<GtkNotebook>.<GtkLabel>"            	style "notebook_tab_label"
widget "gtk-tooltip*"  					style "tooltips"

# Xchat special cases
widget "*xchat-inputbox"                            	style "entry"

# Chrome/Chromium
widget_class "*Chrom*Button*"		style "button"
widget "*swt*toolbar*"			style "null"

# Firefox/Thunderbird
widget "MozillaGtkWidget*" style "mozilla"
