# Great-IMD-evo-pro theme GTK 2 part
# version 1.0.2
#
# by Si Yilin


#================== Color definitions ====================#

gtk-color-scheme = "white_color:#c9c9c9
lighter_color:#4c4c4c
lighterB_color:#454848
#base_color:#242424 darker
base_color:#353636
darkerB_color:#1c1c1c
grooveB_color: #6a6a6a
black_color:#000000
#entry_red_color:#c26161
entry_red_color:#7d8287
cyanA_color:#305cc8
select_color:#305cc8
cream_color:#dfc987
"

#================== style ====================#

style "default-style"
{
   xthickness = 1
   ythickness = 1

   GtkWidget::focus-line-width = 1
   GtkRange::trough_border = 0
   GtkScrollbar::slider_width = 16
   GtkScrollbar::trough-border = 0
   GtkScrollbar::has-backward-stepper = 0
   GtkScrollbar::has-forward-stepper = 0
   GtkScrollbar::min-slider-length = 32
   GtkScrolledWindow::scrollbar-spacing = 0
   GtkScrolledWindow::scrollbars-within-bevel = 1
   GtkScale::slider_width = 12
   GtkScale::stepper_size = 5
   GtkScale::trough_border = 0
   GtkProgressBar::min-horizontal-bar-height = 6
   GtkProgressBar::min-vertical-bar-width    = 6
   GtkProgressBar::xspacing = 4
   GtkProgressBar::yspacing = 4
   GtkMenuBar::internal-padding = 0
   GtkMenu::horizontal-padding = 0
   GtkMenu::vertical-padding = 0
   GtkEntry::state-hint = 1
   GtkEntry::shadow_type = GTK_SHADOW_NONE
   GtkStatusbar::shadow_type = GTK_SHADOW_NONE
   GtkSpinButton::shadow_type = GTK_SHADOW_NONE
   GtkMenuBar::shadow-type = GTK_SHADOW_NONE
   GtkToolbar::shadow-type = GTK_SHADOW_NONE
   GtkButton::default_border = {0,0,0,0}
   GtkButton::default_outside_border = {0,0,0,0}

   bg[NORMAL] = @base_color
   bg[PRELIGHT] = @base_color
   bg[ACTIVE] = @darkerB_color
   bg[INSENSITIVE] = @base_color
   bg[SELECTED] = @select_color

   fg[NORMAL] = @cream_color
   fg[PRELIGHT] = @cream_color
   fg[ACTIVE] = @cream_color
   fg[INSENSITIVE] = @grooveB_color
   fg[SELECTED] = @white_color

   base[NORMAL] = @lighterB_color
   base[PRELIGHT] = @lighterB_color
   base[ACTIVE] = @select_color
   base[INSENSITIVE] = @lighterB_color
   base[SELECTED] = @select_color
   
   text[NORMAL] = @cream_color
   text[PRELIGHT] = @cream_color
   text[ACTIVE] = @white_color
   text[INSENSITIVE] = @grooveB_color
   text[SELECTED] = @white_color
   
   # Draw frame around menu in a non-compositied environment
	# This needs to go before pixmap because we need to override some stuff
   # engine "adwaita" {}

}

style "button"
{

   engine "pixmap"
   {
       # LINES

      image 
      {
         function        = VLINE
         recolorable     = TRUE
         file        = "../gtk-2.0/assets/line-v.png"
         border          = { 0, 0, 0, 0 }
         stretch = TRUE
      }

      image 
      {
         function        = HLINE
         recolorable     = TRUE
         file        = "../gtk-2.0/assets/line-h.png"
         border          = { 0, 0, 0, 0 }
         stretch = TRUE
      }

      # CHECK BOXES

      image 
      {
         function        = CHECK
         state           = INSENSITIVE
         shadow          = IN
         overlay_file        = "../gtk-2.0/assets/checkbox_check_disable.png"
         overlay_stretch = FALSE
      }

      image 
      {
         function        = CHECK
         state           = INSENSITIVE
         shadow          = OUT
         overlay_file        = "../gtk-2.0/assets/checkbox_non_disable.png"
         overlay_stretch = FALSE
      }

      image 
      {
         function        = CHECK
         state           = NORMAL
         shadow          = IN
         overlay_file        = "../gtk-2.0/assets/checkbox_check.png"
         overlay_stretch = FALSE
      }

      image 
      {
         function        = CHECK
         state           = NORMAL
         shadow          = OUT
         overlay_file        = "../gtk-2.0/assets/checkbox_non.png"
         overlay_stretch = FALSE
      }

      image 
      {
         function        = CHECK
         state           = ACTIVE
         shadow          = IN
         overlay_file        = "../gtk-2.0/assets/checkbox_check.png"
         overlay_stretch = FALSE
      }

      image 
      {
         function        = CHECK
         state           = ACTIVE
         shadow          = OUT
         overlay_file        = "../gtk-2.0/assets/checkbox_non.png"
         overlay_stretch = FALSE
      }

      image 
      {
         function        = CHECK
         state           = PRELIGHT
         shadow          = IN
         overlay_file        = "../gtk-2.0/assets/checkbox_check_hover.png"
         overlay_stretch = FALSE
      }

      image 
      {
         function        = CHECK
         state           = PRELIGHT
         shadow          = OUT
         overlay_file        = "../gtk-2.0/assets/checkbox_non_hover.png"
         overlay_stretch = FALSE
      }

      # OPTION BOXES

      image 
      {
         function        = OPTION
         state           = INSENSITIVE
         shadow          = IN
         overlay_file        = "../gtk-2.0/assets/option_non_disable.png"
         overlay_stretch = FALSE
      }

      image 
      {
         function        = OPTION
         state           = INSENSITIVE
         shadow          = OUT
         overlay_file        = "../gtk-2.0/assets/option_check_disable.png"
         overlay_stretch = FALSE
      }

      image 
      {
         function        = OPTION
         state           = NORMAL
         shadow          = IN
         overlay_file        = "../gtk-2.0/assets/option_check.png"
         overlay_stretch = FALSE
      }

      image 
      {
         function        = OPTION
         state           = NORMAL
         shadow          = OUT
         overlay_file        = "../gtk-2.0/assets/option_non.png"
         overlay_stretch = FALSE
      }

      image 
      {
         function        = OPTION
         state           = ACTIVE
         shadow          = IN
         overlay_file        = "../gtk-2.0/assets/option_check.png"
         overlay_stretch = FALSE
      }

      image 
      {
         function        = OPTION
         state           = ACTIVE
         shadow          = OUT
         overlay_file        = "../gtk-2.0/assets/option_non.png"
         overlay_stretch = FALSE
      }

      image 
      {
         function        = OPTION
         state           = PRELIGHT
         shadow          = IN
         overlay_file        = "../gtk-2.0/assets/option_check_hover.png"
         overlay_stretch = FALSE
      }

      image 
      {
         function        = OPTION
         state           = PRELIGHT
         shadow          = OUT
         overlay_file        = "../gtk-2.0/assets/option_non_hover.png"
         overlay_stretch = FALSE
      }

      # REGULAR BUTTONS

      image
      {
         function        = BOX
         file        = "../gtk-2.0/assets/button2.png"
         state           = NORMAL
         border          = { 4, 4, 4, 4 }
         stretch         = TRUE
      }
      image
      {
         function        = BOX
         file        = "../gtk-2.0/assets/button2.png"
         state           = INSENSITIVE
         border          = { 4, 4, 4, 4 }
         stretch         = TRUE
      }
      image
      {
         function        = BOX
         file        = "../gtk-2.0/assets/button3.png"
         state 	         = PRELIGHT
         border          = { 4, 4, 4, 4 }
         stretch         = TRUE
      }
      image
      {
         function        = BOX
         file        = "../gtk-2.0/assets/button4.png"
         state           = ACTIVE
         border          = { 4, 4, 4, 4 }
         stretch         = TRUE
      }
   }
}

style "notebook" {

	xthickness = 5
	ythickness = 2

	engine "pixmap" {

		image {
			function = EXTENSION
			state = ACTIVE
			file = "../gtk-2.0/assets/tab-bottom.png"
			border = { 3,3,3,3 }
			stretch = TRUE
			gap_side = TOP
		}

		image {
			function = EXTENSION
			state = ACTIVE
			file = "../gtk-2.0/assets/tab-top.png"
			border = { 3,3,3,3 }
			stretch = TRUE
			gap_side = BOTTOM
		}

		image {
			function = EXTENSION
			state = ACTIVE
			file = "../gtk-2.0/assets/tab-left.png"
			border = { 3,3,3,3 }
			stretch = TRUE
			gap_side = RIGHT
		}

		image {
			function = EXTENSION
			state = ACTIVE
			file = "../gtk-2.0/assets/tab-right.png"
			border = { 3,3,3,3 }
			stretch = TRUE
			gap_side = LEFT
		}

		image {
			function = EXTENSION
			file = "../gtk-2.0/assets/tab-top-active.png"
			border = { 3,3,3,3 }
			stretch = TRUE
			gap_side = BOTTOM
		}

		image {
			function = EXTENSION
			file = "../gtk-2.0/assets/tab-bottom-active.png"
			border = { 3,3,3,3 }
			stretch = TRUE
			gap_side = TOP
		}

		image {
			function = EXTENSION
			file = "../gtk-2.0/assets/tab-left-active.png"
			border = { 3,3,3,3 }
			stretch = TRUE
			gap_side = RIGHT
		}

		image {
			function = EXTENSION
			file = "../gtk-2.0/assets/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 = "../gtk-2.0/assets/notebook.png"
			border = { 4, 4, 4, 4 }
			stretch = TRUE
			gap_file = "../gtk-2.0/assets/base_bg.png"
			gap_border = { 1, 1, 0, 0 }
			gap_side = TOP
		}

		image {
			function = BOX_GAP
			file = "../gtk-2.0/assets/notebook.png"
			border = { 4, 4, 4, 4 }
			stretch = TRUE
			gap_file = "../gtk-2.0/assets/base_bg.png"
			gap_border = { 1, 1, 0, 0 }
			gap_side = BOTTOM
		}

		image {
			function = BOX_GAP
			file = "../gtk-2.0/assets/notebook.png"
			border = { 4, 4, 4, 4 }
			stretch = TRUE
			gap_file = "../gtk-2.0/assets/base_bg.png"
			gap_border = { 0, 0, 1, 1 }
			gap_side = LEFT
		}

		image {
			function = BOX_GAP
			file = "../gtk-2.0/assets/notebook.png"
			border = { 4, 4, 4, 4 }
			stretch = TRUE
			gap_file = "../gtk-2.0/assets/base_bg.png"
			gap_border = { 0, 0, 1, 1 }
			gap_side = RIGHT
		}

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

		image {
			function = BOX
			file = "../gtk-2.0/assets/notebook.png"
			border = { 4, 4, 4, 4 }
			stretch = TRUE
		}
	}
}

style "scrolled_window" {

	xthickness = 1
	ythickness = 1

	engine "pixmap" {

		image {
			function = SHADOW
			file = "../gtk-2.0/assets/frame.png"
			border = { 5, 5, 5, 5 }
			stretch = TRUE
		}
	}
}

style "treeview_header" {
	ythickness = 1
	fg[NORMAL] = @cream_color

	engine "pixmap" {

		image {
			function = BOX
			file = "../gtk-2.0/assets/tree-header.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
		}
	}
}

style "textview"
{
   base[NORMAL] = @lighter_color
   text[NORMAL] = @cream_color
}

style "entry"
{
	xthickness = 6
	ythickness = 4

   engine "pixmap"
   {
      		image {
			function = SHADOW
			state = NORMAL
			detail = "entry"
			file = "../gtk-2.0/assets/entry.png"
			border = {6, 6, 6, 6}
			stretch = TRUE
		}
		
		image {
			function = SHADOW
			state = ACTIVE
			detail = "entry"
			file = "../gtk-2.0/assets/entry.png"
			border = {6, 6, 6, 6}
			stretch = TRUE
		}

		image {
			function = SHADOW
			state = INSENSITIVE
			detail = "entry"
			file = "../gtk-2.0/assets/entry-insensitive.png"
			border = {6, 6, 6, 6}
			stretch = TRUE
		}

		image {
			function = FLAT_BOX
			state    = INSENSITIVE
			detail   = "entry_bg"
			file     = "../gtk-2.0/assets/entry-bg-insensitive.png"
			stretch = TRUE
		}
		
		image {
			function = FLAT_BOX
			state    = ACTIVE
			detail   = "entry_bg"
			file     = "../gtk-2.0/assets/entry-bg.png"
			stretch = TRUE
		}

		image {
			function = FLAT_BOX
			detail   = "entry_bg"
			file     = "../gtk-2.0/assets/entry-bg.png"
			stretch = TRUE
		}
   }
}

style "optionmenu"
{
   engine "pixmap"
   {
      image
      {
        function	= TAB
        state		= NORMAL
        recolorable     = TRUE
        overlay_file        = "../gtk-2.0/assets/dropdown.png"
        overlay_stretch	= FALSE
      }

      image
      {
        function	= TAB
        state		= PRELIGHT
        recolorable     = TRUE
        overlay_file        = "../gtk-2.0/assets/dropdown.png"
        overlay_stretch	= FALSE
      }

      image
      {
        function	= TAB
        state		= INSENSITIVE
        recolorable     = TRUE
        overlay_file        = "../gtk-2.0/assets/dropdown.png"
        overlay_stretch	= FALSE
      }
   }
}

style "menubar"
{
	xthickness = 2
	ythickness = 4
	
   engine "pixmap"
   {
      image
      {
         function        = BOX
         file        = "../gtk-2.0/assets/menubar.png"
         border          = { 2, 2, 2, 2 }
         stretch         = TRUE
      }

      image
      {
         function        = BOX
         file        = "../gtk-2.0/assets/menuselect.png"
         border          = { 2, 2, 2, 2 }
         stretch         = TRUE
      }
   }
}

style "menuitem"
{
   xthickness = 4
   ythickness = 2

   engine "pixmap"
   {
      image
      {
         function	= BOX
         file        = "../gtk-2.0/assets/menuselect.png"
         border		= { 2, 2, 2, 2 }
         stretch	= TRUE
      }
   }

}

style "menu_framed_box" {

	# engine "adwaita" {}

	 engine "pixmap" {

	 	image {
	 		function = BOX
	 		state = NORMAL
	 		file = "../gtk-2.0/assets/menu-border.png"
	 		border = { 1, 1, 1, 1 }
			stretch = TRUE
	 	}
	 }
}

style "tearoffmenuitem"
{

   engine "pixmap"
   {
      image
      {
         function	= HLINE
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/line-h.png"
         border		= { 0, 0, 0, 0 }
         stretch	= TRUE
      }
   }

}

style "separatormenuitem"
{

   engine "pixmap"
   {
      image
      {
         function       = HLINE
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/line-h.png"
         border         = { 0, 0, 0, 0 }
         stretch        = TRUE
      }
   }

}

style "menufont"
{
   font_name = "italic"
   fg[INSENSITIVE] = @darkerB_color
}

style "scrollbar"
{
   engine "pixmap"
   {
      image
      {
         function	= BOX
         state          = ACTIVE
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/scrollbar_trough.png"
         border         = { 1, 1, 1, 1 }
         stretch	= TRUE
         orientation    = HORIZONTAL
      }

      image
      {
         function	= BOX
         state          = INSENSITIVE
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/scrollbar_trough.png"
         border         = { 1, 1, 1, 1 }
         stretch	= TRUE
         orientation    = HORIZONTAL
      }

      image
      {
         function	= BOX
         state          = ACTIVE
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/scrollbar_trough.png"
         border         = { 1, 1, 1, 1 }
         stretch	= TRUE
         orientation    = VERTICAL
      }

      image
      {
         function	= BOX
         state          = INSENSITIVE
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/scrollbar_trough.png"
         border         = { 1, 1, 1, 1 }
         stretch	= TRUE
         orientation    = VERTICAL
      }

      image
      {
         function	= SLIDER
         recolorable    = TRUE
         state          = NORMAL
         file        = "../gtk-2.0/assets/button2.png"
         stretch	= TRUE
         border         = { 4, 4, 4, 4 }
         orientation    = VERTICAL
         overlay_file        = "../gtk-2.0/assets/scrollbar-grip-v.png"
         overlay_stretch= FALSE
      }

      image
      {
         function	= SLIDER
         recolorable    = TRUE
         state          = INSENSITIVE
         file        = "../gtk-2.0/assets/button2.png"
         stretch	= TRUE
         border         = { 4, 4, 4, 4 }
         orientation    = VERTICAL
         overlay_file        = "../gtk-2.0/assets/scrollbar-grip-v.png"
         overlay_stretch= FALSE
      }

      image
      {
         function	= SLIDER
         recolorable    = TRUE
         state          = PRELIGHT
         file        = "../gtk-2.0/assets/button2.png"
         stretch	= TRUE
         border         = { 4, 4, 4, 4 }
         orientation    = VERTICAL
         overlay_file        = "../gtk-2.0/assets/scrollbar-grip-v.png"
         overlay_stretch= FALSE
      }

      image
      {
         function	= SLIDER
         recolorable    = TRUE
         state          = ACTIVE
         file        = "../gtk-2.0/assets/button2.png"
         stretch	= TRUE
         border         = { 4, 4, 4, 4 }
         orientation    = VERTICAL
         overlay_file        = "../gtk-2.0/assets/scrollbar-grip-v.png"
         overlay_stretch= FALSE
      }

      image
      {
         function	= SLIDER
         recolorable    = TRUE
         state          = NORMAL
         file        = "../gtk-2.0/assets/button2.png"
         stretch	= TRUE
         border         = { 4, 4, 4, 4 }
         orientation    = HORIZONTAL
         overlay_file        = "../gtk-2.0/assets/scrollbar-grip-h.png"
         overlay_stretch= FALSE
      }

      image
      {
         function	= SLIDER
         recolorable    = TRUE
         state          = INSENSITIVE
         file        = "../gtk-2.0/assets/button2.png"
         stretch	= TRUE
         border         = { 4, 4, 4, 4 }
         orientation    = HORIZONTAL
         overlay_file        = "../gtk-2.0/assets/scrollbar-grip-h.png"
         overlay_stretch= FALSE
      }

      image
      {
         function	= SLIDER
         recolorable    = TRUE
         state          = PRELIGHT
         file        = "../gtk-2.0/assets/button2.png"
         stretch	= TRUE
         border         = { 4, 4, 4, 4 }
         orientation    = HORIZONTAL
         overlay_file        = "../gtk-2.0/assets/scrollbar-grip-h.png"
         overlay_stretch= FALSE
      }

      image
      {
         function	= SLIDER
         recolorable    = TRUE
         state          = ACTIVE
         file        = "../gtk-2.0/assets/button2.png"
         stretch	= TRUE
         border         = { 4, 4, 4, 4 }
         orientation    = HORIZONTAL
         overlay_file        = "../gtk-2.0/assets/scrollbar-grip-h.png"
         overlay_stretch= FALSE
      }
   }
}

style "range"
{
   engine "pixmap"
   {
      image
      {
         function	= SLIDER
         state          = NORMAL
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/button2.png"
         border         = { 4, 4, 4, 4 }
         stretch	= TRUE
         overlay_file        = "../gtk-2.0/assets/scale-grip-h.png"
         overlay_stretch= FALSE
         orientation    = HORIZONTAL
      }

      image
      {
         function	= SLIDER
         state          = ACTIVE
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/button2.png"
         border         = { 4, 4, 4, 4 }
         stretch	= TRUE
         overlay_file        = "../gtk-2.0/assets/scale-grip-h.png"
         overlay_stretch= FALSE
         orientation    = HORIZONTAL
      }

      image
      {
         function	= SLIDER
         state          = INSENSITIVE
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/button2.png"
         border         = { 4, 4, 4, 4 }
         stretch	= TRUE
         overlay_file        = "../gtk-2.0/assets/scale-grip-h2.png"
         overlay_stretch= FALSE
         orientation    = HORIZONTAL
      }

      image
      {
         function	= SLIDER
         state          = PRELIGHT
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/button2.png"
         border         = { 4, 4, 4, 4 }
         stretch	= TRUE
         overlay_file        = "../gtk-2.0/assets/scale-grip-h.png"
         overlay_stretch= FALSE
         orientation    = HORIZONTAL
      }

      image
      {
         function	= BOX
         state          = NORMAL
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/scrollbar_trough.png"
         border         = { 1, 1, 1, 1 }
         stretch	= TRUE
         orientation    = HORIZONTAL
      }

      image
      {
         function	= BOX
         state          = ACTIVE
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/scrollbar_trough.png"
         border         = { 1, 1, 1, 1 }
         stretch	= TRUE
         orientation    = HORIZONTAL
      }

      image
      {
         function	= BOX
         state          = PRELIGHT
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/scrollbar_trough.png"
         border         = { 1, 1, 1, 1 }
         stretch	= TRUE
         orientation    = HORIZONTAL
      }

      image
      {
         function	= BOX
         state          = INSENSITIVE
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/scrollbar_trough.png"
         border         = { 1, 1, 1, 1 }
         stretch	= TRUE 
         orientation    = HORIZONTAL
      }

      image
      {
         function	= SLIDER
         state          = NORMAL
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/button2.png"
         border         = { 4, 4, 4, 4 }
         stretch	= TRUE
         overlay_file        = "../gtk-2.0/assets/scale-grip-v.png"
         overlay_stretch= FALSE
         orientation    = VERTICAL
      }

      image
      {
         function	= SLIDER
         state          = ACTIVE
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/button2.png"
         border         = { 4, 4, 4, 4 }
         stretch	= TRUE
         overlay_file        = "../gtk-2.0/assets/scale-grip-v.png"
         overlay_stretch= FALSE
         orientation    = VERTICAL
      }

      image
      {
         function	= SLIDER
         state          = INSENSITIVE
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/button2.png"
         border         = { 4, 4, 4, 4 }
         stretch	= TRUE
         overlay_file        = "../gtk-2.0/assets/scale-grip-v2.png"
         overlay_stretch= FALSE
         orientation    = VERTICAL
      }

      image
      {
         function	= SLIDER
         state          = PRELIGHT
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/button2.png"
         border         = { 4, 4, 4, 4 }
         stretch	= TRUE
         overlay_file        = "../gtk-2.0/assets/scale-grip-v.png"
         overlay_stretch= FALSE
         orientation    = VERTICAL
      }

      image
      {
         function	= BOX
         state          = NORMAL
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/scrollbar_trough.png"
         border         = { 1, 1, 1, 1 }
         stretch	= TRUE
         orientation    = VERTICAL
      }

      image
      {
         function	= BOX
         state          = ACTIVE
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/scrollbar_trough.png"
         border         = { 1, 1, 1, 1 }
         stretch	= TRUE
         orientation    = VERTICAL
      }

      image
      {
         function	= BOX
         state          = PRELIGHT
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/scrollbar_trough.png"
         border         = { 1, 1, 1, 1 }
         stretch	= TRUE
         orientation    = VERTICAL
      }

      image
      {
         function	= BOX
         state          = INSENSITIVE
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/scrollbar_trough.png"
         border         = { 1, 1, 1, 1 }
         stretch	= TRUE
         orientation    = VERTICAL
      }
   }
}

style "ruler"
{
   engine "pixmap"
   {
      image
      {
         function	= BOX
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/ruler.png"
         border         = { 1, 1, 1, 1 }
         detail         = "hruler"
         stretch	= TRUE
      }

      image
      {
         function	= BOX
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/ruler.png"
         border         = { 1, 1, 1, 1 }
         detail         = "vruler"
         stretch	= TRUE
      }
   }
}

style "progressbar"
{

   engine "pixmap"
   {
      image
      {
         function	= BOX
         detail         = "trough"
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/progress-bg.png"
         border         = { 2, 2, 2, 2 }
         stretch	= TRUE
      }

      image
      {
         function	= BOX
         detail         = "bar"
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/progress.png"
         border         = { 2, 2, 2, 2 }
         stretch	= TRUE
      }
   }
}

style "handle"
{
   engine "pixmap"
   {
      image
      {
         function	= HANDLE
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/button.png"
         stretch        = TRUE
         border         = { 4, 4, 4, 4 }
      }
   }
}

style "paned"
{
   GtkPaned::handle_size = 7

   engine "pixmap"
   {
      image
      {
         function	= HANDLE
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/base_bg.png"
         stretch        = TRUE
         overlay_file        = "../gtk-2.0/assets/separator-grip-h.png"
         overlay_stretch= FALSE
         orientation    = VERTICAL
      }

      image
      {
         function	= HANDLE
         recolorable    = TRUE
         file        = "../gtk-2.0/assets/base_bg.png"
         stretch        = TRUE
         overlay_file        = "../gtk-2.0/assets/separator-grip-v.png"
         overlay_stretch= FALSE
         orientation    = HORIZONTAL
      }
   }
}

style "frame" {

	xthickness = 1
	ythickness = 1

	engine "pixmap" {

		image {
			function = SHADOW
			file = "../gtk-2.0/assets/base_bg.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
			shadow = IN
		}

		image {
			function = SHADOW_GAP
			file = "../gtk-2.0/assets/base_bg.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
			gap_start_file = "../gtk-2.0/assets/frame-gap-start.png"
			gap_start_border = { 1, 0, 0, 0 }
			gap_end_file = "../gtk-2.0/assets/frame-gap-end.png"
			gap_end_border = { 0, 1, 0, 0 }
			shadow = IN
		}

		image {
			function = SHADOW
			file = "../gtk-2.0/assets/base_bg.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
			shadow = OUT
		}

		image {
			function = SHADOW_GAP
			file = "../gtk-2.0/assets/base_bg.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
			gap_start_file = "../gtk-2.0/assets/frame-gap-start.png"
			gap_start_border = { 1, 0, 0, 0 }
			gap_end_file = "../gtk-2.0/assets/frame-gap-end.png"
			gap_end_border = { 0, 1, 0, 0 }
			shadow = OUT
		}

		image {
			function = SHADOW
			file = "../gtk-2.0/assets/base_bg.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
			shadow = ETCHED_IN
		}

		image {
			function = SHADOW_GAP
			file = "../gtk-2.0/assets/base_bg.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
			gap_start_file = "../gtk-2.0/assets/frame-gap-start.png"
			gap_start_border = { 1, 0, 0, 0 }
			gap_end_file = "../gtk-2.0/assets/frame-gap-end.png"
			gap_end_border = { 0, 1, 0, 0 }
			shadow = ETCHED_IN
		}

		image {
			function = SHADOW
			file = "../gtk-2.0/assets/base_bg.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
			shadow = ETCHED_OUT
		}

		image {
			function = SHADOW_GAP
			file = "../gtk-2.0/assets/base_bg.png"
			border = { 1, 1, 1, 1 }
			stretch = TRUE
			gap_start_file = "../gtk-2.0/assets/frame-gap-start.png"
			gap_start_border = { 1, 0, 0, 0 }
			gap_end_file = "../gtk-2.0/assets/frame-gap-end.png"
			gap_end_border = { 0, 1, 0, 0 }
			shadow = ETCHED_OUT
		}
	}
}

style "combobox" {

}

style "spinbutton" {

	bg[NORMAL] = @entry_red_color

	xthickness = 6
	ythickness = 4

	engine "pixmap" {

		image {
		function = ARROW
		}

		###############
		# LTR spin up #
		###############

		image {
			function = BOX
			state = NORMAL
			detail = "spinbutton_up"
			file = "../gtk-2.0/assets/arrow-bg-up.png"
			border = { 2, 4, 5, 1 }
			stretch = TRUE
			overlay_file = "../gtk-2.0/assets/arrow-up-small.png"
			overlay_stretch = FALSE
			direction = LTR
		}

		image {
			function = BOX
			state = PRELIGHT
			detail = "spinbutton_up"
			file = "../gtk-2.0/assets/arrow-bg-up-hover.png"
			border = { 2, 4, 5, 1 }
			stretch = TRUE
			overlay_file = "../gtk-2.0/assets/arrow-up-small.png"
			overlay_stretch = FALSE
			direction = LTR
		}

		image {
			function = BOX
			state = INSENSITIVE
			detail = "spinbutton_up"
			file = "../gtk-2.0/assets/arrow-bg-up.png"
			border = { 2, 4, 5, 1 }
			stretch = TRUE
			overlay_file = "../gtk-2.0/assets/arrow-up-small-insensitive.png"
			overlay_stretch = FALSE
			direction = LTR
		}

		image {
			function = BOX
			state = ACTIVE
			detail = "spinbutton_up"
			file = "../gtk-2.0/assets/arrow-bg-up-active.png"
			border = { 2, 4, 5, 1 }
			stretch = TRUE
			overlay_file = "../gtk-2.0/assets/arrow-up-small.png"
			overlay_stretch = FALSE
			direction = LTR
		}

		###############
		# RTL spin up #
		###############

		image {
			function = BOX
			state = NORMAL
			detail = "spinbutton_up"
			file = "../gtk-2.0/assets/arrow-bg-up-rtl.png"
			border = { 4, 2, 5, 1 }
			stretch = TRUE
			overlay_file = "../gtk-2.0/assets/arrow-up-small.png"
			overlay_stretch = FALSE
			direction = RTL
		}

		image {
			function = BOX
			state = PRELIGHT
			detail = "spinbutton_up"
			file = "../gtk-2.0/assets/arrow-bg-up-hover-rtl.png"
			border = { 4, 2, 5, 1 }
			stretch = TRUE
			overlay_file = "../gtk-2.0/assets/arrow-up-small.png"
			overlay_stretch = FALSE
			direction = RTL
		}

		image {
			function = BOX
			state = INSENSITIVE
			detail = "spinbutton_up"
			file = "../gtk-2.0/assets/arrow-bg-up-rtl.png"
			border = { 4, 2, 5, 1 }
			stretch = TRUE
			overlay_file = "../gtk-2.0/assets/arrow-up-small-insensitive.png"
			overlay_stretch = FALSE
			direction = RTL
		}

		image {
			function = BOX
			state = ACTIVE
			detail = "spinbutton_up"
			file = "../gtk-2.0/assets/arrow-bg-up-active-rtl.png"
			border = { 4, 2, 5, 1 }
			stretch = TRUE
			overlay_file = "../gtk-2.0/assets/arrow-up-small.png"
			overlay_stretch = FALSE
			direction = RTL
		}

		#################
		# LTR spin down #
		#################

		image {
			function = BOX
			state = NORMAL
			detail = "spinbutton_down"
			file = "../gtk-2.0/assets/arrow-bg-down.png"
			border = { 2, 4, 1, 4 }
			stretch = TRUE
			overlay_file = "../gtk-2.0/assets/arrow-down-small.png"
			overlay_stretch = FALSE
			direction = LTR
		}

		image {
			function = BOX
			state = PRELIGHT
			detail = "spinbutton_down"
			file = "../gtk-2.0/assets/arrow-bg-down-hover.png"
			border = { 2, 4, 1, 4 }
			stretch = TRUE
			overlay_file = "../gtk-2.0/assets/arrow-down-small.png"
			overlay_stretch = FALSE
			direction = LTR
		}

		image {
			function = BOX
			state = INSENSITIVE
			detail = "spinbutton_down"
			file = "../gtk-2.0/assets/arrow-bg-down.png"
			border = { 2, 4, 1, 4 }
			stretch = TRUE
			overlay_file = "../gtk-2.0/assets/arrow-down-small-insensitive.png"
			overlay_stretch = FALSE
			direction = LTR
		}

		image {
			function = BOX
			state = ACTIVE
			detail = "spinbutton_down"
			file = "../gtk-2.0/assets/arrow-bg-down-active.png"
			border = { 2, 4, 1, 4 }
			stretch = TRUE
			overlay_file = "../gtk-2.0/assets/arrow-down-small.png"
			overlay_stretch = FALSE
			direction = LTR
		}

		#################
		# RTL spin down #
		#################

		image {
			function = BOX
			state = NORMAL
			detail = "spinbutton_down"
			file = "../gtk-2.0/assets/arrow-bg-down-rtl.png"
			border = { 4, 2, 1, 4 }
			stretch = TRUE
			overlay_file = "../gtk-2.0/assets/arrow-down-small.png"
			overlay_stretch = FALSE
			direction = RTL
		}

		image {
			function = BOX
			state = PRELIGHT
			detail = "spinbutton_down"
			file = "../gtk-2.0/assets/arrow-bg-down-hover-rtl.png"
			border = { 4, 2, 1, 4 }
			stretch = TRUE
			overlay_file = "../gtk-2.0/assets/arrow-down-small.png"
			overlay_stretch = FALSE
			direction = RTL
		}

		image {
			function = BOX
			state = INSENSITIVE
			detail = "spinbutton_down"
			file = "../gtk-2.0/assets/arrow-bg-down-rtl.png"
			border = { 4, 2, 1, 4 }
			stretch = TRUE
			overlay_file = "../gtk-2.0/assets/arrow-down-small-insensitive.png"
			overlay_stretch = FALSE
			direction = RTL
		}

		image {
			function = BOX
			state = ACTIVE
			detail = "spinbutton_down"
			file = "../gtk-2.0/assets/arrow-bg-down-active-rtl.png"
			border = { 4, 2, 1, 4 }
			stretch = TRUE
			overlay_file = "../gtk-2.0/assets/arrow-down-small.png"
			overlay_stretch = FALSE
			direction = RTL
		}
	}
}


class "GtkButton"                      style "button"
class "GtkNotebook"                    style "notebook"
class "GtkComboBox"                    style "combobox"
class "GtkOptionMenu"                  style "optionmenu"
class "GtkTextView"                    style "textview"
class "GtkEntry"                       style "entry"
class "GtkOldEditable"                 style "entry"
class "GtkMenuBar"                     style "menubar"
class "GtkMenuItem"                    style "menuitem"
class "GtkScrollbar"                   style "scrollbar"
class "GtkRange"                       style "range"
class "GtkRuler"                       style "ruler"
class "GtkProgressBar"                 style "progressbar"
class "GtkHandleBox"                   style "handle"
class "GtkPaned"                       style "paned"
class "GtkWidget"                      style "default-style"
class "GtkScrolledWindow"              style "scrolled_window"
class "GtkFrame"                       style "frame"
class "GtkSpinButton"                  style "spinbutton"

widget_class "*<GtkTreeView>*<GtkButton>*"  style "treeview_header"
widget_class "*GtkTearoffMenuItem*"    style "tearoffmenuitem"
widget_class "*GtkSeparatorMenuItem*"  style "separatormenuitem"
widget_class "*GtkMenu*"               style "menufont"
widget_class "*<GtkMenu>*"             style "menu_framed_box"
