#
# 5: By Brian Abreu - brian@gvn.net
#
# Please note that I got a lot of ideas from themes such as coolness
# eMac, and Ice.  There is one small problem with this theme.
# The scrollbars get all messed when they are re-sized to be smaller
# than their original size.  If anyone knows how to keep them from re-
# sizing down, but to still alow them to resize to be larger, please let
# me know.
#
# modified by cheese@nosuchhost.net



pixmap_path "/usr/share/themes/5_cheese/gtk"

style "default"
{
    font = "-adobe-helvetica-normal-r-normal--12-*-*-*-*-*-*-*"
    
    bg[NORMAL] = { 0.79, 0.79, 0.79 }
    fg[NORMAL] = { 0.0, 0.0, 0.0 }
    
    bg[PRELIGHT] = { 0.2, 0.38 , 0.51 }
    fg[PRELIGHT] = { 1.0, 1.0, 1.0 }
            
    bg[ACTIVE] = { 0.8, 0.8, 0.8 }
    fg[ACTIVE] = { 1.0, 0.0, 0.0 }
   
    bg[SELECTED] = { 0.2, 0.38, 0.51 }
    fg[SELECTED] = { 1.0, 1.0, 1.0 }
    
    bg[INSENSITIVE] = { 0.7, 0.7, 0.7 }
}

class "*" style "default"


style "menu"
{
    engine "pixmap" 
    {
        image
	{
	     function        = HLINE
	     recolorable     = TRUE
	     file            = "hline.png"
	     border          = { 0, 0, 0, 0 }
	     stretch         = TRUE
	}         
	image 
	{
            function        = BOX
	    recolorable     = TRUE
	    state	    = NORMAL
	    file            = "menu.png"
    	    border          = { 3, 3, 3, 3 }
	    stretch         = TRUE
	}
	image 
	{
    	    function        = BOX
    	    recolorable     = TRUE
	    state	    = PRELIGHT
	    file            = "button_active1.png"
    	    border          = { 3, 3, 3, 3 }
	    stretch         = TRUE
	}
    }
}              

widget_class "*enu*" style "menu"


style "handleboxes"
{  
    engine "pixmap"
    {
	image 
	{
    	    function        = HANDLE
    	    recolorable     = TRUE
	    file            = "button_active.png"
	    border          = { 3, 3, 3, 3 }
	    stretch         = TRUE
	    overlay_file    = "button_active.png"
	    overlay_border  = { 0, 0, 0, 0 }
	    overlay_stretch = FALSE
	    orientation     = VERTICAL
        }
	image 
        {
    	    function        = HANDLE
	    recolorable     = TRUE
	    file            = "button_active.png"
	    border          = { 2, 2, 2, 2 }
	    stretch         = TRUE
	    overlay_file    = "button_active.png"
	    overlay_border  = { 0, 0, 0, 0 }
	    overlay_stretch = FALSE
	    orientation     = HORIZONTAL
        }
    }
}

class "GtkToolbar" style "handleboxes"


style "tip" = "default"
{
    bg[NORMAL] 		= { 0.2, 0.38, 0.51 }
    bg[SELECTED] 	= { 0.2, 0.38, 0.51 }
    bg[ACTIVE] 		= { 0.2, 0.38, 0.51 }
    bg[PRELIGHT] 	= { 0.2, 0.38, 0.51 }
    bg[INSENSITIVE] 	= { 0.2, 0.38, 0.51 }	
}


style "buttons" = "default"
{
    bg[PRELIGHT] = { 0.2, 0.38 , 0.51 }
    engine "pixmap" 
    {
	image 
        {
    	    function        = BOX
	    recolorable     = TRUE
	    state           = NORMAL
	    detail          = "buttondefault"
	    file            = "button_default.png"
	    border          = { 4, 4, 4, 4 }
	    stretch         = TRUE
        }
	image 
        {
    	    function        = BOX
	    recolorable     = TRUE
	    state           = NORMAL
	    file            = "button_active.png"
	    border          = { 4, 4, 4, 4 }
	    stretch         = TRUE
        }
	image 
        {
    	    state           = PRELIGHT
    	    function        = BOX
	    recolorable     = TRUE
	    file            = "button_active1.png"
	    border          = { 4, 4, 4, 4 }
	    stretch         = TRUE
        }
	image 
        {
    	    state           = INSENSITIVE
    	    function        = BOX
	    recolorable     = TRUE
	    file            = "button_inactive.png"
	    border          = { 4, 4, 4, 4 }
	    stretch         = TRUE
        }
	image 
        {
    	    state           = SELECTED
    	    function        = BOX
	    recolorable     = TRUE
	    file            = "button_active2.png"
	    border          = { 2, 2, 2, 2 }
	    stretch         = TRUE
        }
	image 
        {
    	    state           = ACTIVE
    	    function        = BOX
	    recolorable     = TRUE
	    file            = "button_pressed.png"
	    border          = { 4, 4, 4, 4 }
	    stretch         = TRUE
        }
    }	
}


class "GtkButton" style "buttons"

style "check_boxes"
{
    engine "pixmap"
    {
	image 
        {
    	    function        = CHECK
	    recolorable     = TRUE
	    shadow          = OUT
	    overlay_file    = "checkbox.png"
	    overlay_stretch = FALSE
        }
	image 
        {
    	    function        = CHECK
	    recolorable     = TRUE
	    shadow          = IN
	    overlay_file    = "checkedbox.png"
	    overlay_stretch = FALSE
        }
    }
}

class "GtkCheckButton" style "check_boxes"


style "radio_buttons"
{
    engine "pixmap"
    {
	image 
	{
	    function        = OPTION
	    recolorable     = FALSE
	    shadow          = OUT
	    overlay_file    = "radio_inactive.png"
	    overlay_border  = { 0, 0, 0, 0 }
	    overlay_stretch = FALSE
	}    
	image 
	{
	    function        = OPTION
     	    recolorable     = FALSE
    	    shadow          = IN
   	    overlay_file    = "radio_active.png"
   	    overlay_border  = { 0, 0, 0, 0 }
	    overlay_stretch = FALSE
 	}
    }
}


class "GtkRadioButton" style "radio_buttons"

style "scroll_bars"
{
    engine "pixmap"
    {
	image 
        {
    	    function        = BOX
	    recolorable     = TRUE
	    detail          = "slider"
	    state           = NORMAL
	    #file            = "scrollbarh.png"
	    file            = "button_active.png"
	    border          = { 5, 5, 15, 15 }
	    stretch         = TRUE
	    orientation     = HORIZONTAL
        }
	image 
        {
    	    function        	= BOX
	    recolorable     	= TRUE
	    detail          	= "slider"
	    state           	= PRELIGHT
	    #file            = "scrollbarhl.png"
	    file            	= "button_active1.png"
	    border		= { 5, 5, 5, 5 }
	    stretch         	= TRUE
	    orientation     	= HORIZONTAL
        }
	image 
        {
    	    function        = BOX
	    recolorable     = TRUE
	    state           = NORMAL
	    detail          = "slider"
	    #file            = "scrollbarv.png"
	    file            = "button_active.png"
	    border          = { 5, 5, 5, 5 }
	    stretch         = TRUE
	    orientation     = VERTICAL
        }
	image 
        {
    	    function        = BOX
	    recolorable     = TRUE
	    detail          = "slider"
	    state           = PRELIGHT
	    #file		= "scrollbarvl.png"
	    file            = "button_active1.png"
	    border          = { 5, 5, 5, 5 }
	    stretch         = TRUE
	    orientation     = VERTICAL
        }
#
# Arrows
#	
	image 
        {
    	    function        = ARROW
	    recolorable     = TRUE
	    state           = NORMAL
	    file            = "scrollbar_arrow_up.png"
	    stretch         = FALSE
	    border          = { 1, 1, 1, 1 }
	    arrow_direction = UP
        }
	image 
        {
    	    function        = ARROW
	    recolorable     = TRUE
	    state           = PRELIGHT
	    file            = "scrollbar_arrow_up_pre.png"
	    stretch         = FALSE
	    border          = { 1, 1, 1, 1 }
	    arrow_direction = UP
        }
	image 
        {
    	    function        = ARROW
	    recolorable     = TRUE
    	    shadow          = IN
	    file            = "scrollbar_arrow_up.png"
	    stretch         = FALSE
	    border          = { 1, 1, 1, 1 }
	    arrow_direction = UP
        }
        image 
        {
    	    function        = ARROW
	    recolorable     = TRUE
	    state           = NORMAL
	    file            = "scrollbar_arrow_down.png"
	    stretch         = FALSE
	    border          = { 1, 1, 1, 1 }
	    arrow_direction = DOWN
        }
	image 
        {
    	    function        = ARROW
	    recolorable     = TRUE
	    state           = PRELIGHT
	    file            = "scrollbar_arrow_down_pre.png"
	    stretch         = FALSE
	    border          = { 1, 1, 1, 1 }
	    arrow_direction = DOWN
        }
	image 
        {
    	    function        = ARROW
	    recolorable     = TRUE
    	    shadow          = IN
	    file            = "scrollbar_arrow_down.png"
	    stretch         = FALSE
	    border          = { 1, 1, 1, 1 }
	    arrow_direction = DOWN
        }
        image 
	{
    	    function        = ARROW
	    recolorable     = TRUE
	    state           = NORMAL
	    file            = "scrollbar_arrow_left.png"
	    stretch         = FALSE
	    border          = { 1, 1, 1, 1 }
	    arrow_direction = LEFT
        }
	image 
        {
    	    function        = ARROW
	    recolorable     = TRUE
	    state           = PRELIGHT
	    file            = "scrollbar_arrow_left.png"
	    stretch         = FALSE
	    border          = { 1, 1, 1, 1 }
	    arrow_direction = LEFT
        }
	image 
        {
    	    function        = ARROW
	    recolorable     = TRUE
    	    shadow          = IN
	    file            = "scrollbar_arrow_left.png"
	    stretch         = FALSE
	    border          = { 1, 1, 1, 1 }
	    arrow_direction = LEFT
        }
        image 
        {
    	    function        = ARROW
	    recolorable     = TRUE
	    state           = NORMAL
	    file            = "scrollbar_arrow_right.png"
	    stretch         = FALSE
	    border          = { 1, 1, 1, 1 }
	    arrow_direction = RIGHT
        }
	image 
        {
    	    function        = ARROW
	    recolorable     = TRUE
	    state           = PRELIGHT
	    file            = "scrollbar_arrow_right.png"
	    stretch         = FALSE
	    border          = { 1, 1, 1, 1 }
	    arrow_direction = RIGHT
        }
	image 
        {
    	    function        = ARROW
	    recolorable     = TRUE
    	    shadow          = IN
	    file            = "scrollbar_arrow_right.png"
	    stretch         = FALSE
	    border          = { 1, 1, 1, 1 }
	    arrow_direction = RIGHT
        }
	image 
        {
    	    function        = BOX
	    recolorable     = TRUE
	    detail          = "trough"
	    file            = "trough.png"
	    border          = { 5, 5, 5, 5 }
	    stretch         = TRUE
        }
    }
}

class "GtkScrollbar" style "scroll_bars"



style "entries"
{

#
# These are for input boxes
#

engine "pixmap"
{
    image 
      {
	function        = FLAT_BOX
	recolorable     = TRUE
	state           = INSENSITIVE
        detail          = "entry_bg"
	file            = "entry.png"
	recolorable     = TRUE
	border		= { 5, 5, 5, 5 }
	stretch         = TRUE
      }
    image 
      {
	function        = FLAT_BOX
	recolorable     = TRUE
        detail          = "entry_bg"
	file            = "entry.png"
	recolorable     = TRUE
	border		= { 5, 5, 5, 5 }
	stretch         = TRUE
      }
    
#
# These images are for the highligh when text is highlighted.
#    
    image 
      {
        function        = FLAT_BOX
	recolorable     = TRUE
	state           = INSENSITIVE
	detail          = "selected"
	file            = "highlight.png"
	border          = { 5, 5, 5, 5 }
	stretch         = TRUE
      }
    image 
      {
        function        = FLAT_BOX
	recolorable     = TRUE
	detail          = "selected"
	file            = "highlight.png"
	border          = { 5, 5, 5, 5 }
	stretch         = TRUE
      }
    image 
      {
        function        = FLAT_BOX
	recolorable     = TRUE
	state           = INSENSITIVE
	detail          = "text"
	file            = "highlight.png"
	border          = { 5, 5, 5, 5 }
	stretch         = TRUE
      }
    image 
      {
        function        = FLAT_BOX
	recolorable     = TRUE
	detail          = "text"
	file            = "highlight.png"
	border          = { 5, 5, 5, 5 }
	stretch         = TRUE
      }
    image 
      {
        function        = FLAT_BOX
	recolorable     = TRUE
	detail          = "viewportbin"
	file            = "button_pressed.png"
	border          = { 5, 5, 5, 5 }
	stretch         = TRUE
      }
    }
}

#class "GtkEntry" style "entries"

style "menuitem"
{
  engine "pixmap" {
    image
      {
	function		= ARROW
	recolorable		= TRUE
	state			= NORMAL
	file			= "arrow_submenu.png"
	stretch			= FALSE
	arrow_direction = RIGHT
      }
    image
      {
	function		= ARROW
	recolorable		= TRUE
	state			= PRELIGHT
	file			= "arrow_submenu_active.png"
	stretch			= FALSE
	arrow_direction = RIGHT
      }
    image
      {
	function		= ARROW
	recolorable		= TRUE
	shadow			= IN
	file			= "arrow_submenu_active.png"
	stretch			= FALSE
	arrow_direction = RIGHT
      }
#    image 
#      {
#        function        = BOX
#	recolorable     = TRUE
#	file            = "button_active1.png"
#	border          = { 0, 0, 0, 0 }
#	stretch         = TRUE
#      }
  }
}

class "GtkMenuItem" style "menuitem"

style "notebook"
{
  engine "pixmap" 
    {
    image 
      {
        function        = EXTENSION
	recolorable     = TRUE
	state           = ACTIVE
	file            = "exttop2.png"
	border          = { 7,7,7,1 }
	stretch         = TRUE
	gap_side        = BOTTOM
      }
    image 
      {
        function        = EXTENSION
	recolorable     = TRUE
	file            = "exttop1.png"
	border          = { 7,7,7,1 }
	stretch         = TRUE
	gap_side        = BOTTOM
      }
    image 

      {
        function        = EXTENSION
	recolorable     = TRUE
	state           = ACTIVE
	file            = "extbottom2.png"
	border          = { 7,7,1,7 }
	stretch         = TRUE
	gap_side        = TOP
      }
    image 
      {
        function        = EXTENSION
	recolorable     = TRUE
	file            = "extbottom1.png"
	border          = { 7,7,1,7 }
	stretch         = TRUE
	gap_side        = TOP
      }

    image 
      {
        function        = EXTENSION
	recolorable     = TRUE
	state           = ACTIVE
	file            = "extright2.png"
	border          = { 1,7,7,7 }
	stretch         = TRUE
	gap_side        = LEFT
      }
    image 
      {
        function        = EXTENSION
	recolorable     = TRUE
	file            = "extright1.png"
	border          = { 1,7,7,7 }
	stretch         = TRUE
	gap_side        = LEFT
      }

    image 
      {
        function        = EXTENSION
	recolorable     = TRUE
	state           = ACTIVE
	file            = "extleft2.png"
	border          = { 7,1,7,7 }
	stretch         = TRUE
	gap_side        = RIGHT
      }
    image 
      {
        function        = EXTENSION
	recolorable     = TRUE
	file            = "extleft1.png"
	border          = { 7,1,7,7 }
	stretch         = TRUE
	gap_side        = RIGHT
      }



#
# How to draw boxes with a gap on one side (ie the page of a notebook)
#
    image 
      {
        function        = BOX_GAP
	recolorable     = TRUE
	file            = "flat.png"
	border		= { 2,2,2,2 }
	stretch         = TRUE
	gap_file        = "blue.png"
	gap_border      = { 0, 0, 0, 0 }
	gap_start_file  = "blue.png"
	gap_start_border= { 0, 0, 0, 0 }
	gap_end_file    = "blue.png"
	gap_end_border  = { 0, 0, 0, 0 }
      }
#
# How to draw the box of a notebook when it isnt attached to a tab
#
    image 
      {
        function        = BOX
	recolorable     = TRUE
	file            = "up.png"
	border          = { 2, 2, 2, 2 }
	stretch         = TRUE
	gap_side        = TOP
      }
  }
}

class "GtkNotebook" style "notebook"


