# Glacier GTK+ 2.0 theme (Requires ThinIce & Pixmap engines)
# by R.V.Vindenes <sublett@dc-s.com>
#
# Inspiration came from IceCube & Fishing_The_Sky themes and MacOS X
# I tried to keep it calm, simple and unintrusive.
#

include "iconrc"

style "default"
{
  GtkScrollbar::has_backward_stepper = 1
  GtkScrollbar::has_secondary_backward_stepper = 1
  GtkScrollbar::min_slider_length = 15

  

  GTKPaned::handle_size = 0
  
#  GtkMenuBar::internal-padding = 30

  base[NORMAL]        = "#F7F7F7"
  base[ACTIVE]        = "#D3D3D3"
  base[SELECTED]      = "#4a4a4a"
  base[PRELIGHT]      = "#E5E5e5"
  base[INSENSITIVE]   = "#d0d0d0"

  bg[NORMAL]          = "#E6E6E6"
  bg[ACTIVE]          = "#F4F4F4"
## colore cornice finestra
#  bg[SELECTED]        = "#828282"
  bg[SELECTED]        = "#7587b0"
  bg[PRELIGHT]        = "#8a8a8a"
  bg[INSENSITIVE]     = "#D3D3D3"

  fg[NORMAL]          = "#000000"
#  fg[ACTIVE]          = "#000000"
  fg[ACTIVE]          = "#314a82"
  fg[SELECTED]        = "#ffffff"
#  fg[PRELIGHT]        = "#000000"
  fg[PRELIGHT]        = "#415a92"
  fg[INSENSITIVE]     = "#747474"
#  fg[INSENSITIVE]     = "#969696"

  text[SELECTED]      = "#ffffff"
  text[INSENSITIVE]   = "#7587b0"

  bg_pixmap[NORMAL]   = "bgpixmap_normal.png"
  bg_pixmap[PRELIGHT] = "bgpixmap_prelight.png"

    
  engine "thinice"
  {
    rect_scrollbar = FALSE
    mark_type1 = DOT  #INVSLASH
    mark_type2 = ARROW
    paned_dots = FULL
  }


#    engine "pixmap" {
#	image {
#	    function		= HANDLE
#	    recolorable 	= TRUE
##	    file		= "bubble-grey.png"
##    	    border		= {0,0,0,0}
##	    stretch		= TRUE
#	    overlay_file	= "handleh.png"
#	    overlay_border	= {0,0,0,0}
#	    overlay_stretch	= FALSE
#	    orientation		= HORIZONTAL
#	}
#    }
#    engine "pixmap" {
#	image {
#	    function		= HANDLE
#	    recolorable 	= TRUE
##	    file		= "bubble-grey.png"
##    	    border		= {0,0,0,0}
##	    stretch		= TRUE
#	    overlay_file	= "handlev.png"
#	    overlay_border	= {0,0,0,0}
#	    overlay_stretch	= FALSE
#	    orientation		= VERTICAL
#	}
# }

}


style "Scrollbar" {
    engine "pixmap" {
## Sfondo scrollbar
        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
       }
## Scrollbar
        image {
            function        = BOX
            recolorable     = TRUE
            state           = NORMAL
            detail          = "slider"
            file            = "scrollbar_horizontal.png"
            border          = { 10, 10, 6, 6 }
            stretch         = TRUE
            orientation     = HORIZONTAL
        }
        image {
            function        = BOX
            recolorable     = TRUE
            state           = PRELIGHT
            detail          = "slider"
            file            = "scrollbar_prelight_horizontal.png"
            border          = { 10, 10, 6, 6 }
            stretch         = TRUE
            orientation     = HORIZONTAL
        }
	image {
            function        = BOX
            recolorable     = TRUE
            state           = ACTIVE
            detail          = "slider"
            file            = "scrollbar_act_horizontal.png"
            border          = { 10, 10, 6, 6 }
            stretch         = TRUE
            orientation     = HORIZONTAL
        }
	
 	image {
            function        = BOX
            recolorable     = TRUE
            state           = NORMAL
            detail          = "slider"
            file            = "scrollbar_vertical.png"
            border          = { 6, 6, 10, 10 }
            stretch         = TRUE
            orientation     = VERTICAL
        }
        image {
            function        = BOX
            recolorable     = TRUE
            state           = PRELIGHT
            detail          = "slider"
            file            = "scrollbar_prelight_vertical.png"
            border          = { 6, 6, 10, 10 }
            stretch         = TRUE
            orientation     = VERTICAL
        }
	image {
            function        = BOX
            recolorable     = TRUE
            state           = ACTIVE
            detail          = "slider"
            file            = "scrollbar_act_vertical.png"
            border          = { 6, 6, 10, 10 }
            stretch         = TRUE
            orientation     = VERTICAL
        }
## Freccine scrollbar
       image {
           function        = BOX
           recolorable     = TRUE
           state           = NORMAL
           file            = "clear.png"
           border          = { 0, 0, 0, 0 }
           stretch         = TRUE
       }
       image {
           function        = BOX
           recolorable     = TRUE
           state           = PRELIGHT
           file            = "clear-pre.png"
           border          = { 0, 0, 0, 0 }
           stretch         = TRUE
       }
       image {
           function        = BOX
           recolorable     = TRUE
           state           = ACTIVE
           file            = "clear-act.png"
           border          = { 0, 0, 0, 0 }
           stretch         = TRUE
       }
    }
}

#class "GtkScrollbar" style "Scrollbar"


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

#class "GtkProgressBar" style "ProgressBar"


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            = "scrollbar_horizontal2.png"
            border          = { 10, 10, 6, 6 }
            stretch         = TRUE
            orientation     = HORIZONTAL
        }   
        image {
            function        = SLIDER 
            recolorable     = TRUE
            state           = PRELIGHT
            file            = "scrollbar_prelight_horizontal2.png"
            border          = { 10, 10, 6, 6 }
            stretch         = TRUE
            orientation     = HORIZONTAL
        }
        image {
            function        = SLIDER
            recolorable     = TRUE
            state           = INSENSITIVE
            file            = "scrollbar_horizontal2.png"
            border          = { 10, 10, 6, 6 }
            stretch         = TRUE
            orientation     = HORIZONTAL
        }   
        image {
            function        = SLIDER
            recolorable     = TRUE
            state           = NORMAL
            file            = "scrollbar_vertical2.png"
            border          = { 6, 6, 10, 10 }
            stretch         = TRUE
            orientation     = VERTICAL
        }
        image {
            function        = SLIDER
            recolorable     = TRUE
            state           = PRELIGHT
            file            = "scrollbar_prelight_vertical2.png"
            border          = { 6, 6, 10, 10 }
            stretch         = TRUE
            orientation     = VERTICAL
        }
        image {
            function        = SLIDER
            recolorable     = TRUE
            state           = INSENSITIVE
            file            = "scrollbar_vertical2.png"
            border          = { 6, 6, 10, 10 }
            stretch         = TRUE
            orientation     = VERTICAL
        }
    }
}


#class "GtkScale" style "Scale"


style "button" {
  engine "pixmap" {
#
# Check marks
#
    image 
      {
        function        = CHECK
	recolorable     = TRUE
        shadow          = OUT
	overlay_file    = "check_out.png"
	overlay_stretch = FALSE
      }
    image 
      {
        function        = CHECK
	recolorable     = TRUE
	shadow          = IN
	overlay_file    = "check_in.png"
	overlay_stretch = FALSE
      }
#
# Option marks
#
    image 
      {
        function        = OPTION
	recolorable     = TRUE
	shadow          = OUT
	overlay_file    = "option_out.png"
	overlay_border  = { 0, 0, 0, 0 }
	overlay_stretch = FALSE
      }
    image 
      {
        function        = OPTION
	recolorable     = TRUE
	shadow          = IN
	overlay_file    = "option_in.png"
	overlay_border  = { 0, 0, 0, 0 }
	overlay_stretch = FALSE
      }
#
# Regular buttons
#
    image {
        function        = BOX
	file            = "button_normal.png"
	state		= NORMAL
	border          = {10,5,5,10}
	stretch         = TRUE
    }
    image {
        function        = BOX
	file            = "button_normal.png"
	state		= INSENSITIVE
	border          = {10,5,5,10}
	stretch         = TRUE
    }
    image {
        function        = BOX
	file            = "button_prelight.png"
	state		= PRELIGHT
	border          = {10,5,5,10}
	stretch         = TRUE
    }
    image {
        function        = BOX
	file            = "button_active.png"
	state		= ACTIVE
	border          = {10,5,5,10}
	stretch         = TRUE
    }
  }
}

style "tooltip"{
 bg_pixmap[NORMAL]      = "<none>"
 bg_pixmap[PRELIGHT]    = "<none>"
}

class "GtkScrollbar" style "Scrollbar"
class "GtkProgressBar" style "ProgressBar"
class "GtkScale" style "Scale"
class "GtkButton" style "button"
class "GtkMenuItem" style "button"

widget "gtk-tooltips" style "tooltip"

class "GtkWidget" style "default"
class "GtkWidget" style "panel-icons"
