# New Wave Pixmap Theme
# 
# Based on: Ubuntu Human-Clearlooks
#
# Authors:
# Anton Kerezov <ankere@gmail.com>
# Giuseppe Pennisi <giupenni78@gmail.com>
#
# Feel free to modify and share!

# Default color values
gtk_color_scheme = "fg_color: #101010\nbg_color: #E5E5E5\nbase_color: #FFFFFF\ntext_color: #1A1A1A\nselected_bg_color: #FF8F4C\nselected_fg_color: #1A1A1A\ntooltip_bg_color:#FFE6C4\ntooltip_fg_color:#330606"
gtk-enable-animations = 1
# Tooltips appear too fast so I modify the delay to 1 sec.
gtk-tooltip-timeout   = 1000 

#=========================================================
# The Base style
#=========================================================
style "newwave-default"
{
	xthickness = 1
	ythickness = 1

        #=========================================================
        # General Style Properties
        #=========================================================
	
	GtkButton      ::child-displacement-x = 1
	GtkButton      ::child-displacement-y = 1
	GtkButton      ::default-border       = { 0, 0, 0, 0 }
	
	GtkCheckButton ::indicator-size       = 14

	GtkPaned       ::handle-size          = 6
	
	GtkRange       ::trough-border        = 0
	GtkRange       ::slider-width         = 21
	GtkRange       ::stepper-size         = 21
	GtkRange       ::stepper-spacing      = 0
	GtkRange       ::activate-slider      = 1
	
	GtkScale       ::slider-length        = 17
	GtkScale       ::trough-side-details  = 0 # @author:dilomo@ Do not change or will break consistancy
	
	GtkScrollbar   ::min-slider-length    = 30
	GtkScrollbar   ::slider-width         = 18
	GtkScrollbar   ::stepper-size         = 18
	GtkScrollbar   ::activate-slider      = 1
	
	
	GtkMenuBar     ::shadow-type	      = GTK_SHADOW_NONE # @author:dilomo@ Remove separator from Menubar
	GtkMenuBar     ::internal-padding     = 1
	
	GtkMenu        ::horizontal-padding   = 3
	GtkMenu        ::vertical-padding     = 1
	
	GtkExpander    ::expander-size        = 16
	
	GtkToolbar     ::internal-padding     = 3
	GtkToolbar     ::shadow-type	      = GTK_SHADOW_NONE # @author:dilomo@ Remove separators from Toolbars

	GtkTreeView    ::expander-size        = 14
	GtkTreeView    ::vertical-separator   = 0

	GtkStatusbar   ::shadow_type	      = GTK_SHADOW_NONE #@author: gp@ Remove separator from Statusbar
	
	GtkProgressBar ::shadow-type          = GTK_SHADOW_NONE
	
	GtkMessageDialog::use-separator       = TRUE
		
	# This is the pulsating rect that appears on newly launched apps	
	WnckTasklist   ::fade-overlay-rect    = 1
	WnckTasklist   ::fade-opacity         = 0.6
	
	# Add transparency to Nautilus selected color.
	NautilusIconContainer::highlight_alpha=160


	fg[NORMAL]        = @fg_color
	fg[PRELIGHT]      = @fg_color
	fg[SELECTED]      = @selected_fg_color
	fg[ACTIVE]        = @fg_color
	fg[INSENSITIVE]   = darker (@bg_color)

	bg[NORMAL]        = @bg_color
	bg[PRELIGHT]      = shade (1.02, @bg_color)
	bg[SELECTED]	  = mix (0.25, @fg_color, @selected_bg_color)
	bg[INSENSITIVE]   = @bg_color
	bg[ACTIVE]        = shade (0.9, @bg_color)

	base[NORMAL]      = @base_color
	base[PRELIGHT]    = shade (0.95, @bg_color)
	base[ACTIVE]      = shade (0.90, @bg_color)
	base[SELECTED]    = mix(0.50, shade (1.05,@selected_bg_color), @tooltip_bg_color)
	base[INSENSITIVE] = @bg_color

	text[NORMAL]      = @text_color
	text[PRELIGHT]    = @text_color
	text[ACTIVE]      = @selected_fg_color
	text[SELECTED]    = @selected_fg_color
	text[INSENSITIVE] = darker (@bg_color)
	
	
	engine "pixmap"
	{
	
	# Shadows 
	
	image
	{
		function		= SHADOW
		shadow			= IN
		recolorable		= TRUE
		file			= "Images/Shadows/shadow-in.png"
		border			= { 1, 1, 2, 2}
		stretch			= TRUE
	}
	image
	{
		function		= SHADOW
		shadow			= OUT
		recolorable		= TRUE
		file			= "Images/Shadows/shadow-out.png"
		border			= { 1, 1, 2, 2}
		stretch			= TRUE
	}

	image
	{
		function		= SHADOW
		shadow			= ETCHED_IN
		recolorable		= TRUE
		file			= "Images/Frame-Gap/frame-etched-out.png"			
		border			= { 1, 1, 1, 2}
		stretch			= TRUE
	}
	image
	{
		function		= SHADOW
		shadow			= ETCHED_OUT
		recolorable		= TRUE
		file			= "Images/Shadows/shadow-etched-out.png"
		border			= { 1, 1, 1, 1}
		stretch			= TRUE
	}
	
	
	# Frame (Shadow in)
	image
	{
		function		= SHADOW_GAP
		shadow			= IN 
		recolorable		= TRUE
		file			= "Images/Frame-Gap/frame-in.png"
		border			={ 4, 4, 4, 4}
		stretch			= TRUE
		gap_start_file		= "Images/Frame-Gap/frame-gapstart-in.png"
		gap_start_border	= { 4, 0, 4, 0}
		gap_end_file		= "Images/Frame-Gap/frame-gapend-in.png"
		gap_end_border		= { 0, 4, 4, 0}
		gap_side		= TOP
	}
	
	
	# Frame (Shadow out)
	image
	{
		function		= SHADOW_GAP
		shadow			= OUT
		recolorable		= TRUE
		file			= "Images/Frame-Gap/frame-out.png"
		border			= { 4, 4, 4, 4}
		stretch			= TRUE
		gap_start_file		= "Images/Frame-Gap/frame-gapstart-out.png"
		gap_start_border	= { 4, 0, 4, 0}
		gap_end_file		= "Images/Frame-Gap/frame-gapend-out.png"
		gap_end_border		= { 0, 4, 4, 0}
		gap_side		= TOP
	}
	
	# Frame (Shadow etched in)
	image
	{
		function		= SHADOW_GAP
		shadow			= ETCHED_IN 
		recolorable		= TRUE
		file			= "Images/Frame-Gap/frame-etched-in.png"
		border			= { 1, 1, 4, 4}
		stretch			= TRUE
		gap_start_file		= "Images/Frame-Gap/frame-gapstart-ein.png"
		gap_start_border	= { 2, 2, 2, 2}
		gap_end_file		= "Images/Frame-Gap/frame-gapend-ein.png"
		gap_end_border		= { 2, 2, 2, 2}
		gap_side		= TOP
	}
	
	# Frame (Shadow etched out)
	image
	{
		function		= SHADOW_GAP
		shadow			= ETCHED_OUT
		recolorable		= TRUE
		file			= "Images/Frame-Gap/frame-etched-out.png"
		border			= { 0, 0, 0, 2}
		stretch			= TRUE
		gap_start_file		= "Images/Frame-Gap/gap-etched-out.png"
		#gap_start_border	= { 2, 2, 2, 2}
		gap_end_file		= "Images/Frame-Gap/gap-etched-out.png"
		#gap_end_border		= { 2, 2, 2, 2}
		gap_side		= TOP
	}
	
	
    	# Handles (normal, prelight and insensitive)
        image
    	{
    	  	function		= HANDLE
    	  	recolorable		= TRUE
    	  	state                   = NORMAL
       	  	overlay_file		= "Images/Panel/handle-h.png"
     	  	overlay_stretch		= FALSE
      	  	orientation		= HORIZONTAL
    	}
    	image
    	{
    	  	function		= HANDLE
    	  	recolorable		= TRUE
    	  	state                   = PRELIGHT
       	  	overlay_file		= "Images/Panel/handle-h-prelight.png"
     	  	overlay_stretch		= FALSE
      	  	orientation		= HORIZONTAL
    	}
    	image
    	{
    	  	function		= HANDLE
    	  	recolorable		= TRUE
    	  	state                   = ACTIVE
       	  	overlay_file		= "Images/Panel/handle-h-pressed.png"
     	  	overlay_stretch		= FALSE
      	  	orientation		= HORIZONTAL
    	}
    	image
    	{
    	  	function		= HANDLE
    	  	recolorable		= TRUE
    	  	state                   = INSENSITIVE
       	  	overlay_file		= "Images/Panel/handle-h-insens.png"
     	  	overlay_stretch		= FALSE
      	  	orientation		= HORIZONTAL
    	}
    	
    	## vertical handle
    	image
    	{
    	  	function		= HANDLE
    	  	recolorable		= TRUE
    	  	state                   = NORMAL
       	  	overlay_file		= "Images/Panel/handle-v.png"
     	  	overlay_stretch		= FALSE
      	  	orientation		= VERTICAL
    	}
    	image
    	{
    	  	function		= HANDLE
    	  	recolorable		= TRUE
    	  	state                   = PRELIGHT
       	  	overlay_file		= "Images/Panel/handle-v-prelight.png"
     	  	overlay_stretch		= FALSE
      	  	orientation		= VERTICAL
    	}
    	image
    	{
    	  	function		= HANDLE
    	  	recolorable		= TRUE
    	  	state                   = ACTIVE
       	  	overlay_file		= "Images/Panel/handle-v-pressed.png"
     	  	overlay_stretch		= FALSE
      	  	orientation		= VERTICAL
    	}
    	image
    	{
    	  	function		= HANDLE
    	  	recolorable		= TRUE
    	  	state                   = INSENSITIVE
       	  	overlay_file		= "Images/Panel/handle-v-insens.png"
     	  	overlay_stretch		= FALSE
      	  	orientation		= VERTICAL
    	}
       
       # Lines
       image
       {
       		function		= VLINE
       		recolorable		= TRUE
       		file			= "Images/Lines/line-v.png"
       		#border			= { 0, 1, 0, 0 }
       		stretch			= TRUE
      }
      
      image
      {
      		function		= HLINE
     		recolorable		= TRUE
      		file			= "Images/Lines/line-h.png"
      		#border			= { 1, 1, 0, 1 }
      		stretch			= TRUE
      }
	
      #@author:dilomo@  focus image used on buttons any derivatives (check box, combo and so on)
      image
      {
    	  	function		= FOCUS
  		recolorable		= TRUE
   	 	file			= "Images/Others/focus.png"
    		border			= { 2, 2, 2, 2 }
    	 	stretch			= TRUE
      }
   	        
      # Arrows (all states)
      image
      {
	 	function		= ARROW
		recolorable		= TRUE
		state                   = NORMAL
		overlay_file		= "Images/Arrows/arrow-up.png"
		overlay_border		= { 0, 0, 0, 0 }
		overlay_stretch		= FALSE
		arrow_direction		= UP
      }
      
      image
      {
		function		= ARROW
		state			= PRELIGHT
		recolorable		= TRUE
		overlay_file		= "Images/Arrows/arrow-up-prelight.png"
		overlay_border		= { 0, 0, 0, 0 }
		overlay_stretch		= FALSE
		arrow_direction		= UP
      }
     
     image
      {
		function		= ARROW
		state			= ACTIVE
		recolorable		= TRUE
		overlay_file		= "Images/Arrows/arrow-up-pressed.png"
		overlay_border		= { 0, 0, 0, 0 }
		overlay_stretch		= FALSE
		arrow_direction		= UP
      }
      
      image
      {
		function		= ARROW
		state			= INSENSITIVE
		recolorable		= TRUE
		overlay_file		= "Images/Arrows/arrow-up-insens.png"
		overlay_border		= { 0, 0, 0, 0 }
		overlay_stretch		= FALSE
		arrow_direction		= UP
      }
      
      image
      {
     	 	function		= ARROW
      		state			= NORMAL
      		recolorable		= TRUE
      		overlay_file		= "Images/Arrows/arrow-down.png"
      		overlay_border		= { 0, 0, 0, 0 }
     		overlay_stretch		= FALSE
     		arrow_direction		= DOWN
      }
   	 
      image
      {
		function		= ARROW
		state			= PRELIGHT
		recolorable		= TRUE
		overlay_file		= "Images/Arrows/arrow-down-prelight.png"
		overlay_border		= { 0, 0, 0, 0 }
		overlay_stretch		= FALSE
		arrow_direction		= DOWN
     }
    
     image
     {
		function		= ARROW
		state			= ACTIVE
		recolorable		= TRUE
		overlay_file		= "Images/Arrows/arrow-down-pressed.png"
		overlay_border		= { 0, 0, 0, 0 }
		overlay_stretch		= FALSE
		arrow_direction		= DOWN
     }

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

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


style "newwave-wide" = "newwave-default"
{
	bg[SELECTED]	  = @selected_bg_color
	xthickness = 2
	ythickness = 2
}

style "newwave-wider" = "newwave-default"
{
	bg[SELECTED]	  = @selected_bg_color
	xthickness = 3
	ythickness = 3
}




#=========================================================
#=========================================================
#       Pixmap widget styles
#=========================================================
#=========================================================



style "newwave-frame" = "newwave-wide"
{	
#  engine "pixmap"
#  {
# 	image
#	{
#		function		= FLAT_BOX
#		state			= NORMAL
#		shadow			= OUT
#		file 			= "Images/Frame-Gap/frame2.png"
#		stretch			= TRUE
#	}
#  }
}

#=========================================================
# Buttons
#=========================================================

style "newwave-button" = "newwave-wider"
{
	bg[NORMAL]        = shade (0.98, @bg_color)
	bg[PRELIGHT]      = shade (1.04, @bg_color)
	bg[ACTIVE]        = shade (0.92, @bg_color)
	
	#GtkButton::inner-border =  {2, 2, 2, 2}
	
	engine "pixmap"
	{
	
	image
	{
		function		= FOCUS
		recolorable		= TRUE
		file			= "Images/Buttons/button-focus.png"
		border			= {4, 4, 4, 4}
		stretch			= TRUE
	}
	
	image 
	{
		function		= BOX
		state			= NORMAL
		file			= "Images/Buttons/button-normal.png"		
		border			={ 4, 4, 4, 4 }
		stretch			= TRUE
	}
	
	image
	{
		function		= BOX
		state			= ACTIVE
		file			= "Images/Buttons/button-pressed.png"
		border			= { 4, 4, 4, 4 }
		stretch			= TRUE
	}
	
	image
	{
		function		= BOX
		recolorable		= TRUE
		detail			= "buttondefault"
		file			= "Images/Buttons/button-default.png"
		border			= {4, 4, 4, 4}
		stretch			= TRUE
	}
	
	#@author:dilomo@ prelight used on toggle buttons when they are pressed in
	image
	{
		function		= BOX
		state			= PRELIGHT
		recolorable		= TRUE
		shadow			= IN
		file			= "Images/Buttons/button-pressed-prelight.png"
		border			= { 4, 4, 4, 4 }
		stretch			= TRUE
	}
	#@author:dilomo@ prelight used on normal buttons
	image
	{
		function		= BOX
		state			= PRELIGHT
		recolorable		= TRUE
		shadow			= OUT
		file			= "Images/Buttons/button-prelight.png"
		border			= { 4, 4, 4, 4 }
		stretch			= TRUE
	}
	
	image 
	{
		function		= BOX
		state			= INSENSITIVE
		shadow			= IN
		file			= "Images/Buttons/button-insensitive-in.png"	
		border			= { 4, 4, 4, 4 }
		stretch			= TRUE
	}
	image 
	{
		function		= BOX
		state			= INSENSITIVE
		shadow			= OUT
		file			= "Images/Buttons/button-insensitive.png"	
		border			= { 4, 4, 4, 4 }
		stretch			= TRUE
	}
	
		
    }
}

#=========================================================
# Progressbar
#=========================================================
style "newwave-progressbar" = "newwave-default"
{
  xthickness            		= 1
  ythickness            		= 1

  engine "pixmap" 
  {
	image
	{
		function			= BOX
		detail				= "trough"
		file				= "Images/ProgressBar/trough-progressbar-horiz.png"
		border				=  { 4, 4, 4, 4 }
		stretch				= TRUE
		overlay_file                    = "Images/ProgressBar/over-trough-horiz.png"
		overlay_stretch                 = TRUE
		overlay_border			=  { 2, 2, 2, 2 }
		orientation			= HORIZONTAL
	}
	
	image
	{
		function			= BOX
		detail				= "trough"
		file				= "Images/ProgressBar/trough-progressbar-horiz.png"
		border				=  { 4, 4, 4, 4 }
		stretch				= TRUE
#		overlay_file                    = "Images/ProgressBar/over-trough-horiz.png"
#		overlay_stretch                 = TRUE
#		overlay_border			= { 2, 2, 2, 2 }
		orientation			= VERTICAL
	}
	
	image
	{
		function			= BOX
		detail				= "bar"
		file				= "Images/ProgressBar/progressbar-horiz.png"
		border				= { 2, 2, 2, 2 }
		stretch				= TRUE
		overlay_file                    = "Images/ProgressBar/over-progressbar-horiz.png"
		overlay_stretch                  = FALSE
		overlay_border			= { 2, 2, 2, 2 }
		orientation			= HORIZONTAL
	} 
	image
	{
		function			= BOX
		detail				= "bar"
		file				= "Images/ProgressBar/progressbar-vert.png"
		border				= { 2, 2, 2, 2 }
		stretch				= TRUE
		overlay_file                    = "Images/ProgressBar/over-progressbar-horiz.png"
		overlay_stretch                 = TRUE
		overlay_border			= { 2, 2, 2, 2 }
		orientation			= VERTICAL
	}
  }
}


#=========================================================
# Check/Radio Buttons
#=========================================================
style "newwave-checkradiobutton" = "newwave-default"
{
  engine "pixmap" {
    image 
	{
	function		= FLAT_BOX
	recolorable		= TRUE
	file			= "Images/Others/null.png"
	border			= { 2, 5, 2, 2 }
	stretch			= TRUE
       }
    }
}

class "GtkRadioButton" style "newwave-checkradiobutton"
class "GtkCheckButton" style "newwave-checkradiobutton"


style "newwave-radiomenubutton" = "newwave-default"
{
  engine "pixmap" 
    {
  	image 
	{
            function        		= OPTION
            recolorable    		= TRUE
            state 			= NORMAL
            shadow          		= OUT
            overlay_file    		= "Images/Check-Radio-Menu/opt-normal.png"
            overlay_stretch 	        = FALSE
        }
 	image 
	{
            function        		= OPTION
            recolorable     		= TRUE
            state 			= PRELIGHT
            shadow          		= OUT
            overlay_file    		= "Images/Check-Radio-Menu/opt-normal-prelight.png"
            overlay_stretch 		= FALSE
        }
 	image 
	{
            function        		= OPTION
            recolorable     		= TRUE
            state 			= ACTIVE
            shadow          		= OUT
            overlay_file    		= "Images/Check-Radio-Menu/opt-normal-prelight.png"
            overlay_stretch 		= FALSE
        }
 	image 
	{
            function        		= OPTION
            recolorable     		= TRUE
            state 			= INSENSITIVE
            shadow         		= OUT
            overlay_file    		= "Images/Check-Radio-Menu/opt-normal-insensitive.png"
            overlay_stretch 		= FALSE
        }
 	image 
	{
            function        		= OPTION
            recolorable     		= TRUE
	    state 			= NORMAL
            shadow          		= IN
            overlay_file    		= "Images/Check-Radio-Menu/opt-mark.png"
            overlay_stretch 		= FALSE
        }
  	image 
	{
            function        		= OPTION
            recolorable     		= TRUE
	    state 			= PRELIGHT
            shadow          		= IN
            overlay_file    		= "Images/Check-Radio-Menu/opt-mark-prelight.png"
            overlay_stretch 		= FALSE
        }
 	image 
	{
            function        		= OPTION
            recolorable     		= TRUE
	    state 			= ACTIVE
            shadow          		= IN
            overlay_file    		= "Images/Check-Radio-Menu/opt-mark-prelight.png"
            overlay_stretch 		= FALSE
        }
	 image 
	{
            function        		= OPTION
            recolorable     		= TRUE
	    state 			= INSENSITIVE
            shadow          		= IN
            overlay_file    		= "Images/Check-Radio-Menu/opt-mark-insensitive.png"
            overlay_stretch 		= FALSE
        }
  	image 
	{
          function        		= FLAT_BOX
          recolorable     		= TRUE
      	  stretch			= TRUE
          file            		= "Images/Others/null.png"
          border          		= { 2, 2, 2, 2 }
        }
    }
}


style "newwave-radiobutton" = "newwave-default"
{
  engine "pixmap" 
    {
  	image 
	{
            function        		= OPTION
            recolorable    		= TRUE
            state 			= NORMAL
            shadow          		= OUT
            overlay_file    		= "Images/Check-Radio/opt-normal.png"
            overlay_stretch 	        = FALSE
        }
 	image 
	{
            function        		= OPTION
            recolorable     		= TRUE
            state 			= PRELIGHT
            shadow          		= OUT
            overlay_file    		= "Images/Check-Radio/opt-normal-prelight.png"
            overlay_stretch 		= FALSE
        }
 	image 
	{
            function        		= OPTION
            recolorable     		= TRUE
            state 			= ACTIVE
            shadow          		= OUT
            overlay_file    		= "Images/Check-Radio/opt-normal-prelight.png"
            overlay_stretch 		= FALSE
        }
 	image 
	{
            function        		= OPTION
            recolorable     		= TRUE
            state 			= INSENSITIVE
            shadow         		= OUT
            overlay_file    		= "Images/Check-Radio/opt-normal-insensitive.png"
            overlay_stretch 		= FALSE
        }
 	image 
	{
            function        		= OPTION
            recolorable     		= TRUE
	    state 			= NORMAL
            shadow          		= IN
            overlay_file    		= "Images/Check-Radio/opt-mark.png"
            overlay_stretch 		= FALSE
        }
  	image 
	{
            function        		= OPTION
            recolorable     		= TRUE
	    state 			= PRELIGHT
            shadow          		= IN
            overlay_file    		= "Images/Check-Radio/opt-mark-prelight.png"
            overlay_stretch 		= FALSE
        }
 	image 
	{
            function        		= OPTION
            recolorable     		= TRUE
	    state 			= ACTIVE
            shadow          		= IN
            overlay_file    		= "Images/Check-Radio/opt-mark-prelight.png"
            overlay_stretch 		= FALSE
        }
	 image 
	{
            function        		= OPTION
            recolorable     		= TRUE
	    state 			= INSENSITIVE
            shadow          		= IN
            overlay_file    		= "Images/Check-Radio/opt-mark-insensitive.png"
            overlay_stretch 		= FALSE
        }
  	image 
	{
          function        		= FLAT_BOX
          recolorable     		= TRUE
      	  stretch			= TRUE
          file            		= "Images/Others/null.png"
          border          		= { 2, 2, 2, 2 }
        }
    }
}

style "newwave-checkmenubutton" = "newwave-default"
{
  engine "pixmap" 
    {
         	image 
	{
            function        		= CHECK
            recolorable     		= TRUE
            state 			= NORMAL
            shadow          		= OUT
            overlay_file    		= "Images/Check-Radio-Menu/check-normal.png"
            overlay_stretch 		= FALSE
        }
	 image 
	{
            function        		= CHECK
            recolorable     		= TRUE
            state 			= PRELIGHT
            shadow          		= OUT
            overlay_file    		= "Images/Check-Radio-Menu/check-normal-prelight.png"
            overlay_stretch 		= FALSE
        }
 	image 
	{
            function        		= CHECK
            recolorable     		= TRUE
            state 			= ACTIVE
            shadow          		= OUT
            overlay_file    		= "Images/Check-Radio-Menu/check-normal-prelight.png"
            overlay_stretch 		= FALSE
        }
 	image 
	{
            function        		= CHECK
            recolorable     		= TRUE
            state 			= INSENSITIVE
            shadow          		= OUT
            overlay_file    		= "Images/Check-Radio-Menu/check-normal-insensitive.png"
            overlay_stretch 		= FALSE
        }
	 image 
	{
            function        		= CHECK
            recolorable     		= TRUE
	    state 			= NORMAL
            shadow          		= IN
            overlay_file    		= "Images/Check-Radio-Menu/check-mark.png"
            overlay_stretch 		= FALSE
        }
  	image 
	{
            function        		= CHECK
            recolorable     		= TRUE
	    state 			= PRELIGHT
            shadow          		= IN
            overlay_file    		= "Images/Check-Radio-Menu/check-mark-prelight.png"
            overlay_stretch 		= FALSE
        }
 	image 
	{
            function        		= CHECK
            recolorable     		= TRUE
	    state 			= ACTIVE
            shadow          		= IN
            overlay_file    		= "Images/Check-Radio-Menu/check-mark-prelight.png"
            overlay_stretch 		= FALSE
        }
        image 
        {
            function       	 	= CHECK
	    recolorable     		= TRUE
	    state 			= INSENSITIVE
	    shadow          		= IN
	    overlay_file   		= "Images/Check-Radio-Menu/check-mark-insensitive.png"
	    overlay_stretch 		= FALSE
        }
        
        image 
        {
      	     function        		= FLAT_BOX
      	     recolorable     		= TRUE
      	     stretch			= TRUE
      	     file            		= "Images/Others/null.png"
      	     border          		= { 2, 2, 3, 2 }
    	}

    }
}

style "newwave-checkbutton" = "newwave-default"
{
  engine "pixmap" 
    {
 	image 
	{
            function        		= CHECK
            recolorable     		= TRUE
            state 			= NORMAL
            shadow          		= OUT
            overlay_file    		= "Images/Check-Radio/check-normal.png"
            overlay_stretch 		= FALSE
        }
	 image 
	{
            function        		= CHECK
            recolorable     		= TRUE
            state 			= PRELIGHT
            shadow          		= OUT
            overlay_file    		= "Images/Check-Radio/check-normal-prelight.png"
            overlay_stretch 		= FALSE
        }
 	image 
	{
            function        		= CHECK
            recolorable     		= TRUE
            state 			= ACTIVE
            shadow          		= OUT
            overlay_file    		= "Images/Check-Radio/check-normal-prelight.png"
            overlay_stretch 		= FALSE
        }
 	image 
	{
            function        		= CHECK
            recolorable     		= TRUE
            state 			= INSENSITIVE
            shadow          		= OUT
            overlay_file    		= "Images/Check-Radio/check-normal-insensitive.png"
            overlay_stretch 		= FALSE
        }
	 image 
	{
            function        		= CHECK
            recolorable     		= TRUE
	    state 			= NORMAL
            shadow          		= IN
            overlay_file    		= "Images/Check-Radio/check-mark.png"
            overlay_stretch 		= FALSE
        }
  	image 
	{
            function        		= CHECK
            recolorable     		= TRUE
	    state 			= PRELIGHT
            shadow          		= IN
            overlay_file    		= "Images/Check-Radio/check-mark-prelight.png"
            overlay_stretch 		= FALSE
        }
 	image 
	{
            function        		= CHECK
            recolorable     		= TRUE
	    state 			= ACTIVE
            shadow          		= IN
            overlay_file    		= "Images/Check-Radio/check-mark-prelight.png"
            overlay_stretch 		= FALSE
        }
        image 
        {
            function       	 	= CHECK
	    recolorable     		= TRUE
	    state 			= INSENSITIVE
	    shadow          		= IN
	    overlay_file   		= "Images/Check-Radio/check-mark-insensitive.png"
	    overlay_stretch 		= FALSE
        }
        
        image 
        {
      	     function        		= FLAT_BOX
      	     recolorable     		= TRUE
      	     stretch			= TRUE
      	     file            		= "Images/Others/null.png"
      	     border          		= { 2, 2, 3, 2 }
    	}
  }
}

#=========================================================
# Scrollbars
#=========================================================

style "newwave-scrollbar" = "newwave-default"
{
  
        engine "pixmap" 
        {
        
        # Sliders background
        #=============================
        image 
        {
                function		= BOX
                recolorable		= TRUE
                detail			= "trough"
                file			= "Images/Scrollbars/trough-scrollbar-horiz.png"
                border			= { 1, 1, 2, 2 }
                stretch			= TRUE
                orientation		= HORIZONTAL
        }
        image 
        {
                function		= BOX
                recolorable		= TRUE
                detail			= "trough"
                file			= "Images/Scrollbars/trough-scrollbar-vert.png"
                border			= { 2, 2, 1, 1 }
                stretch			= TRUE
                orientation		= VERTICAL
        }

        # Sliders - horizonral
        #=============================
        image 
        {
                function			= SLIDER
                recolorable			= TRUE
                state           		= NORMAL
                detail                          = "slider"
                file				= "Images/Scrollbars/slider-horiz.png" 
                border				= { 3, 3, 2, 4 }
                stretch				= TRUE
                orientation			= HORIZONTAL
        }
        image 
        {
                function			= SLIDER
                recolorable			= TRUE
                state           	        = ACTIVE
                detail                          = "slider"
                shadow				= IN
                file				= "Images/Scrollbars/slider-horiz-active.png" 
                border				= { 2, 2, 2, 3 }
                stretch				= TRUE
                orientation			= HORIZONTAL
        }
        image 
        {
                function			= SLIDER
                recolorable			= TRUE
                state           		= PRELIGHT
                detail                          = "slider"
                file				= "Images/Scrollbars/slider-horiz-prelight.png" 
                border				=  { 2, 2, 2, 3 }
                stretch				= TRUE
                orientation			= HORIZONTAL
        }
        image 
        {
                function			= SLIDER
                recolorable			= TRUE
                state           		= INSENSITIVE
                detail                          = "slider"
                file				= "Images/Scrollbars/slider-horiz-insens.png"
                border				={ 3, 3, 2, 4 }
                stretch				= TRUE
                orientation			= HORIZONTAL
        }

        # Sliders - vertical
        #=============================
        image 
        {
                function			= SLIDER
                recolorable			= TRUE
                state           		= NORMAL
                detail                          = "slider"
                file				= "Images/Scrollbars/slider-vert.png" 
                border				= { 3, 3, 3, 3 }
                stretch				= TRUE
                orientation			= VERTICAL
        }
        image 
        {
                function			= SLIDER
                recolorable			= TRUE
                state           		= ACTIVE
                detail                          = "slider"
                shadow                          = IN
                file				= "Images/Scrollbars/slider-vert-active.png" 
                border				= { 2, 3, 2, 2 }
                stretch				= TRUE
                orientation			= VERTICAL
        }
        image 
        {
                function			= SLIDER
                recolorable			= TRUE
                state           		= PRELIGHT
                detail                          = "slider"
                file				= "Images/Scrollbars/slider-vert-prelight.png" 
                border				= { 2, 3, 2, 2 }
                stretch				= TRUE
                orientation			= VERTICAL

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

        }

        # Steppers - up
        #=============================
        image 
        {
                function			= STEPPER
                recolorable			= TRUE
                state				= NORMAL
                file				= "Images/Scrollbars/stepper-up.png"
                stretch				= TRUE
                arrow_direction	                = UP
        }
        image 
        {
                function			= STEPPER
                recolorable			= TRUE
                state				= PRELIGHT
                file				= "Images/Scrollbars/stepper-up-prelight.png"
                stretch				= TRUE
                arrow_direction	                = UP
        }
        image 
        {
                function			= STEPPER
                recolorable			= TRUE
                state				= ACTIVE
                file				= "Images/Scrollbars/stepper-up-active.png"
                stretch				= TRUE
                arrow_direction	                = UP
        }
        image 
        {
                function			= STEPPER
                recolorable			= TRUE
                state				= INSENSITIVE
                file				= "Images/Scrollbars/stepper-up-insens.png"
                stretch				= TRUE
                arrow_direction         	= UP
        }

       
        # Steppers - down
        #=============================
        image 
        {
                function			= STEPPER
                recolorable			= TRUE
                state				= NORMAL
                file				= "Images/Scrollbars/stepper-down.png"
                stretch				= TRUE
                arrow_direction	                = DOWN
        }
        image 
        {
                function			= STEPPER
                recolorable			= TRUE
                state				= PRELIGHT
                file				= "Images/Scrollbars/stepper-down-prelight.png"
                stretch				= TRUE
                arrow_direction	                = DOWN
        }
        image 
        {
                function			= STEPPER
                recolorable			= TRUE
                state				= ACTIVE
                file				= "Images/Scrollbars/stepper-down-active.png"
                stretch				= TRUE
                arrow_direction	                = DOWN
        }
        image 
        {
                function			= STEPPER
                recolorable			= TRUE
                state				= INSENSITIVE
                file				= "Images/Scrollbars/stepper-down-insens.png"
                stretch				= TRUE
                arrow_direction	                = DOWN
        }

       
        # Steppers - right
        #=============================
        image 
        {
                function			= STEPPER
                recolorable			= TRUE
                state				= NORMAL
                file				= "Images/Scrollbars/stepper-right.png"
                stretch				= TRUE
                arrow_direction	                = RIGHT
        }
        image 
        {
                function			= STEPPER
                recolorable			= TRUE
                state				= PRELIGHT
                file				= "Images/Scrollbars/stepper-right-prelight.png"
                stretch				= TRUE
                arrow_direction	                = RIGHT
        }
        image 
        {
                function			= STEPPER
                recolorable			= TRUE
                state				= ACTIVE
                file				= "Images/Scrollbars/stepper-right-active.png"
                stretch				= TRUE
                arrow_direction	                = RIGHT
        }
        image 
        {
                function			= STEPPER
                recolorable			= TRUE
                state				= INSENSITIVE
                file				= "Images/Scrollbars/stepper-right-insens.png"
                stretch				= TRUE
                arrow_direction	                = RIGHT
        }

        
        # Steppers - left
        #=============================
        image 
        {
                function			= STEPPER
                recolorable			= TRUE
                state				= NORMAL
                file				= "Images/Scrollbars/stepper-left.png"
                stretch				= TRUE
                arrow_direction	                = LEFT
        }
        image 
        {
                function			= STEPPER
                recolorable			= TRUE
                state				= PRELIGHT
                file				= "Images/Scrollbars/stepper-left-prelight.png"
                stretch				= TRUE
                arrow_direction	                = LEFT
        }
        image 
        {
                function			= STEPPER
                recolorable			= TRUE
                state				= ACTIVE
                file				= "Images/Scrollbars/stepper-left-active.png"
                stretch				= TRUE
                arrow_direction	                = LEFT
        }
        image 
        {
                function			= STEPPER
                recolorable			= TRUE
                state				= INSENSITIVE
                file				= "Images/Scrollbars/stepper-left-insens.png"
                stretch				= TRUE
                arrow_direction	                = LEFT
        }
        }
}


style "newwave-scrolledwindow" = "newwave-default"
{
    GtkScrolledWindow ::scrollbars-within-bevel = 0
    GtkScrolledWindow ::scrollbar-spacing = 0
    
    engine "pixmap"
    {
          image
          {
                function = SHADOW
                file = "Images/Scrollbars/shadow-in.png"
                border = {3, 3, 3, 3}
                detail = "scrolled_window"
          }
    }
    
}
 
class "GtkScrolledWindow" style "newwave-scrolledwindow"


#=========================================================
# Toolbar
#=========================================================
style "newwave-toolbar"
{
        xthickness            			= 1
        ythickness            			= 4
        
        # Use this if you work a lot in the night
        #bg[NORMAL] = "#c9c9c9"
  
	engine "pixmap"
	{
		image
		{
			function	= BOX
			state           = NORMAL
			file		= "Images/Others/null.png" 
			border		= { 1, 1, 1, 4}
			stretch		= TRUE
    		}
 	}
}
widget_class "*BonoboDockItem" style "newwave-toolbar"
class "*BonoboDockItem" style "newwave-toolbar"

widget_class "*HandleBox" style "newwave-toolbar"
class "*HandleBox" style "newwave-toolbar"

widget_class "*Toolbar" style "newwave-toolbar"
class "*Toolbar" style "newwave-toolbar"


#=========================================================
# Toolbar buttons (not currently used)
#=========================================================

style "newwave-toolbuttons" = "newwave-default"
{
  xthickness            			= 1
  ythickness            			= 1
  GtkWidget::focus_padding 			= 2

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


#=========================================================
# Range
#=========================================================

style "newwave-range" = "newwave-wide"
{	
        engine "pixmap" 
        {
        
        # Range - background
        #=============================
        image 
        {
                function		= BOX
                file			= "Images/Range/trough-horizontal.png"
                border			= { 6, 6, 7, 7 }
                stretch			= TRUE
                orientation		= HORIZONTAL
        }	
        #    image 
        #   {
        #     function			= FOCUS
        #     file			= "Images/Range/trough-horizontal-focus.png"
        #	detail 			= "trough"
        #      border			= { 7,7,7,7 }
        #      stretch			= TRUE
        #      orientation		= HORIZONTAL
        #   }	
        image 
        {
                function		= BOX
                file			= "Images/Range/trough-vertical.png"
                border			= { 7,7, 6, 6 }
                stretch			= TRUE
                orientation		= VERTICAL
        }
        #    image 
        #    {
        #     function			= FOCUS
        #      detail 			= "trough"
        #      file			= "Images/Range/trough-vertical-focus.png"
        #      border			= {7,7,7,7}
        #      stretch			= TRUE
        #      orientation		= VERTICAL
        #    }


        # Range - horizonral
        #=============================
        image 
        {
                function		= SLIDER
                recolorable		= TRUE
                state           	= NORMAL
                file			= "Images/Range/null.png"
                border			= { 0, 0, 0, 0}
                stretch			= TRUE
                overlay_file		= "Images/Range/slider-horiz.png"
                overlay_stretch		= FALSE
                orientation		= HORIZONTAL

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


        # Range - vertical
        #=============================
        image 
        {
                function			= SLIDER
                recolorable			= TRUE
                state           		= NORMAL
                file				= "Images/Range/null.png"
                border				= { 0, 0, 0, 0 }
                stretch				= TRUE
                overlay_file			= "Images/Range/slider-vert.png"
                overlay_stretch			= FALSE
                orientation			= VERTICAL
        }
        image 
        {
                function			= SLIDER
                recolorable			= TRUE
                state           		= PRELIGHT
                file				= "Images/Range/null.png"
                border				= { 0, 0, 0, 0 }
                stretch				= TRUE
                overlay_file			= "Images/Range/slider-vert-prelight.png"
                overlay_stretch			= FALSE
                orientation			= VERTICAL
        }
        image 
        {
                function			= SLIDER
                recolorable			= TRUE
                state           		= ACTIVE
                file				= "Images/Range/null.png"
                border				= { 0, 0, 0, 0 }
                stretch				= TRUE
                overlay_file			= "Images/Range/slider-vert-active.png"
                overlay_stretch			= FALSE
                orientation			= VERTICAL
        }
        image 
        {
                function			= SLIDER
                recolorable			= TRUE
                state           		= INSENSITIVE
                file				= "Images/Range/null.png"
                border				= { 0, 0, 0, 0 }
                stretch				= TRUE
                overlay_file			= "Images/Range/slider-vert-insens.png"
                overlay_stretch			= FALSE
                orientation			= VERTICAL
        }
        }
}


#=========================================================
# Spinbutton
#=========================================================
style "newwave-spinbutton" = "newwave-wider"
{
  GtkWidget::interior_focus			= 1
  GtkWidget::internal-padding 			= 4
  
  engine "pixmap"
  {

	#@author:dilomo@ This is very important. Do not remove!
	image
	{
		function	= ARROW
	}
	
    # Spin - up
    #=============================
    image
    {
      function			= BOX
      state 			= NORMAL
      detail			= "spinbutton_up"
      recolorable		= TRUE
      file			= "Images/Spin/spin-up-bg.png"
      border			= { 2, 2, 2, 2}
      stretch			= TRUE
      overlay_file		= "Images/Spin/arrow-up.png"
      overlay_stretch		= FALSE
    }
    image
    {
      function			= BOX
      state 			= PRELIGHT
      detail			= "spinbutton_up"
      recolorable		= TRUE
      file			= "Images/Spin/spin-up-bg-prelight.png"
      border			= { 2, 2, 2, 2}
      stretch			= TRUE
      overlay_file		= "Images/Spin/arrow-up-prelight.png"
      overlay_stretch		= FALSE
    }
    image
    {
      function			= BOX
      state 			= INSENSITIVE
      detail			= "spinbutton_up"
      recolorable		= TRUE
      file			= "Images/Spin/spin-up-bg.png"
      border			= { 2, 2, 2, 2}
      stretch			= TRUE
      overlay_file		= "Images/Spin/arrow-up-disable.png"
      overlay_stretch		= FALSE
    }
    image
    {
      function			= BOX
      state 			= ACTIVE
      detail			= "spinbutton_up"
      recolorable		= TRUE
      file			= "Images/Spin/spin-up-bg-active.png"
      border			= { 2, 2, 2, 2}
      stretch			= TRUE
      overlay_file		= "Images/Spin/arrow-up-active.png"
      overlay_stretch		= FALSE
    }

    # Spin - down
    #=============================
    image
    {
      function			= BOX
      state 			= NORMAL
      detail			= "spinbutton_down"
      recolorable		= TRUE
      file			= "Images/Spin/spin-down-bg.png"
      border			= { 2, 2, 2, 2}
      stretch			= TRUE
      overlay_file		= "Images/Spin/arrow-down.png"
      overlay_stretch		= FALSE
    }
    image
    {
      function			= BOX
      state 			= PRELIGHT
      detail			= "spinbutton_down"
      recolorable		= TRUE
      file			= "Images/Spin/spin-down-bg-prelight.png"
      border			= { 2, 2, 2, 2}
      stretch			= TRUE
      overlay_file		= "Images/Spin/arrow-down-prelight.png"
      overlay_stretch		= FALSE
    }
    image
    {
      function			= BOX
      state 			= INSENSITIVE
      detail			= "spinbutton_down"
      recolorable		= TRUE
      file			= "Images/Spin/spin-down-bg.png"
      border			= { 2, 2, 2, 2}
      stretch			= TRUE
      overlay_file		= "Images/Spin/arrow-down-disable.png"
      overlay_stretch		= FALSE
    }
    image
    {
      function			= BOX
      state 			= ACTIVE
      detail			= "spinbutton_down"
      recolorable		= TRUE
      file			= "Images/Spin/spin-down-bg-active.png"
      border			= { 2, 2, 2, 3}
      stretch			= TRUE
      overlay_file		= "Images/Spin/arrow-down-active.png"
      overlay_stretch		= FALSE
    }


    # Spin - entry (textbox)
    #=============================
    image
	{
		function		= FOCUS
		recolorable		= TRUE
		file			= "Images/Spin/text-entry-focus.png"
		border			= { 2, 2, 2, 2}
		stretch			= TRUE
	}	
    
    image
	{
		function	        = BOX
		recolorable	        = TRUE
		shadow		        = OUT
		state		        = NORMAL
		detail		        = "entry"
		file		        = "Images/Spin/text-entry.png"
		border		        = { 2 , 2 ,3 ,3 }
		stretch		        = TRUE
	}

    image
	{
		function		= SHADOW
		state			= NORMAL
		shadow			= IN
		recolorable		= FALSE
		detail			= "entry"
		file			= "Images/Spin/text-entry.png"
		border			= { 2, 2, 3, 3}
		stretch			= TRUE
	}
  }
}


#=========================================================
# Conmbobox entry
#=========================================================
style "newwave-comboboxentry" = "newwave-wider"
{
  engine "pixmap"
  {
    image
    {
      function			= BOX
      recolorable		= TRUE
      state			= PRELIGHT
      file			= "Images/Combo/combo-prelight.png"
      border			= { 4, 4, 4, 4}
      stretch			= TRUE
    }
    image
    {
      function			= BOX
      recolorable		= TRUE
      state			= NORMAL
      file			= "Images/Combo/combo-normal.png"
      border			= { 4, 4, 4, 4}
      stretch			= TRUE
    }

  image
    {
      function			= BOX
      recolorable		= TRUE
      state			= ACTIVE
      file			= "Images/Combo/combo-pressed.png"
      border			= { 4, 4, 4, 4}
      stretch			= TRUE
    }
    
    image
   {
     	function		= SHADOW
    	detail			= "entry"
    	shadow			= IN
    	recolorable		= FALSE
    	file			= "Images/Shadows/combo-entry.png"
    	border			= { 2,2,3,3 }
    	stretch			= TRUE
   }
    
 image
    {
      function			= BOX
      recolorable		= TRUE
      state			= INSENSITIVE
      file			= "Images/Combo/combo-inactive.png"
      border			= { 4, 4, 4, 4}
      stretch			= TRUE
    }
    image
    {
      function			= TAB
      state			= INSENSITIVE
      recolorable		= TRUE
      overlay_file		= "Images/Combo/combo-arrow-insens.png"
      overlay_stretch		= FALSE
    }
    image
    {
      function			= TAB
      recolorable		= TRUE
      state			= NORMAL
      overlay_file		= "Images/Combo/combo-arrow.png"
      overlay_border		= { 1, 1, 1, 1 }
      overlay_stretch		= FALSE
    }
    image
    {
      function			= TAB
      recolorable		= TRUE
      state			= PRELIGHT
      overlay_file		= "Images/Combo/combo-arrow-prelight.png"
      overlay_border		= { 1, 1, 1, 1 }
      overlay_stretch		= FALSE
    }
    
  }
}


style "newwave-combomenu"
{
        fg[PRELIGHT] = @bg_color
}
widget_class "*GtkComboBox*.*GtkMenu*.*" style "newwave-combomenu"

style "newwave-list-item"
{
  fg[PRELIGHT] = @bg_color      
  engine "pixmap"
  {
        image
        {
                function        = FLAT_BOX
                #detail          = "listitem"
                state           = SELECTED
                file            = "Images/Tree/selected.png"
                border          = {2,2,2,2}               
         }
  }                            
}
widget_class "*<GtkListItem>*" style "newwave-list-item"


#=========================================================
# Combobox
#=========================================================
style "newwave-combobox" = "newwave-comboboxentry"
{
	xthickness = 3
	ythickness = 3
	
	fg[PRELIGHT] = @bg_color	
}

style "newwave-combobutton" = "newwave-default"
{
        engine "pixmap"
        {
        image
        {
                function		= BOX
                state			= NORMAL
                file			= "Images/Combo/combo-normal.png"
                border			= { 0, 2, 2, 2}
                stretch			= TRUE
        }

        image
        {
                function		= BOX
                recolorable		= TRUE
                state			= PRELIGHT
                shadow			= OUT
                file			= "Images/Combo/combo-prelight.png"
                border			= { 0, 2, 2, 2}
                stretch			= TRUE
        }
        
        image
        {
                function		= BOX
                recolorable		= TRUE
                state			= PRELIGHT
                shadow			= IN
                file			= "Images/Combo/combo-prelight.png"
                border			= { 0, 2, 2, 2}
                stretch			= TRUE
        }

        image
        {
                function		= BOX
                state			= ACTIVE
                file			= "Images/Combo/combo-pressed.png"
                border			= { 0, 2, 2, 2}
                stretch			= TRUE
        }
        image
        {
                function		= BOX
                state			= INSENSITIVE
                file			= "Images/Combo/combo-inactive.png"
                border			= { 0, 2, 2, 2}
                stretch			= TRUE
        } 
}
}


#=========================================================
# Entry (textbox)
#=========================================================
style "newwave-entry" = "newwave-wider"
{
  #@author:dilomo@ Disable outer focus glow because it look ugly in comboboxes and spins
  GtkWidget::interior_focus	= 1
  GtkEntry::inner-border        = {3, 2, 2, 2}
  
  engine "pixmap"
  {
    image
    {
      function			= FOCUS
      recolorable		= TRUE
      detail			= "entry"
      file			= "Images/Shadows/entry-focus.png"
      border			= { 2,2,2,2 }
      stretch			= TRUE
    }	
    image
    {
      function			= BOX
      recolorable		= TRUE
      shadow			= IN
      state			= NORMAL
      file			= "Images/Shadows/entry-shadow-in.png"
      border			= { 3,3,4,3 }
      stretch			= TRUE
    }	
    image
    {
     function			= BOX
      recolorable		= TRUE
      shadow			= OUT
      state			= NORMAL
      file			= "Images/Shadows/entry-shadow-in.png" 
      border			= { 3,3,4,3 }
      stretch			= TRUE
    }
    image	
    {
      function			= BOX
      recolorable		= TRUE
      shadow			= OUT
      state			= ACTIVE
      file			= "Images/Shadows/entry-focus.png"
      border			= { 2,2,2,2 }
      stretch			= TRUE
    }
    image	
    {
      function			= BOX
      recolorable		= TRUE
      shadow			= IN
      state			= INSENSITIVE
      file			= "Images/Shadows/entry-focus.png"
      border			= { 2,2,2,2 }
      stretch			= TRUE
    }
    image
    {
     	function		= SHADOW
    	detail			= "entry"
    	shadow			= IN
    	recolorable		= FALSE
    	file			= "Images/Shadows/entry-shadow-in.png"
    	border			= { 2,2,3,3 }
    	stretch			= TRUE
    }
 }
}


#=========================================================
# Task list
#=========================================================
style "newwave-tasklist" = "newwave-wide"
{
}

#=========================================================
# Treeview
#=========================================================
style "newwave-treeview"
{
        # make unfocused items have different text color
        text[ACTIVE]    = shade(0.5, @selected_bg_color)
	text[SELECTED]  = @text_color
	
	bg[NORMAL]      = @bg_color
	bg[SELECTED]    = @selected_bg_color
	
        engine "pixmap"
	{
		image
		{
			function        = BOX
			state           = ACTIVE
			border          = {2,2,2,2}
			file            = "Images/Tree/selected.png"
			stretch		= TRUE
		}
		# this is needed for the progressbars inside treeviews
	        image
		{
			function        = BOX
			state           = SELECTED
			border          = {2,2,2,2}
			file            = "Images/Tree/selected-active.png"
			stretch		= TRUE
		}
		image
		{
			function        = FLAT_BOX
			state           = SELECTED
			border          = {2,2,2,2}
			file            = "Images/Tree/selected.png"
			stretch		= TRUE
		}
	}
}

style "newwave-treeview-header" = "newwave-default"
{
	bg[SELECTED] = mix(0.50, shade (1.05,@selected_bg_color), @tooltip_bg_color)


        engine "pixmap" 
	{

	#This image is used to draw the headers of columns in list views when they are
	#not selected.
    	image
      		{
        		function        = BOX
			recolorable    	= TRUE
			state		= NORMAL
			file            = "Images/ListHeaders/list_header.png"
			border          = { 2, 2, 2, 2 }
			stretch         = TRUE
      		}

	#This image is used to draw the column headers in list views when they are
	#clicked.
    	image
      		{
        		function        = BOX
			recolorable    	= TRUE
			state		= PRELIGHT
			file            = "Images/ListHeaders/list_header-prelight.png"
			border          = { 2, 2, 2, 2 }
			stretch         = TRUE
      		}
      		
      		image
      		{
        		function        = BOX
			recolorable    	= TRUE
			state		= INSENSITIVE
			file		= "Images/ListHeaders/list_header-insens.png"
			border          = { 2, 2, 2, 2 }
			stretch         = TRUE
      	        }
      		
	#Does this do anything?

	image
      		{
        		function        = BOX
			recolorable    	= TRUE
			state		= ACTIVE
			file		= "Images/ListHeaders/list_header-pressed.png"
			border          = { 2, 2, 2, 2}
			stretch         = TRUE
      		}
	image
      		{
        		function        = BOX
			recolorable    	= TRUE
			state		= SELECTED
			file		= "Images/ListHeaders/list_header-prelight.png"
			border          = { 2, 2, 2, 2 }
			stretch         = TRUE
      		}
	
        }
#widget_class "*List" style "newwave-treeview-header"
#widget_class "*GtkTree*" style "newwave-treeview-header"
#widget_class "*GtkCList*" style "newwave-treeview-header"
#widget_class "*Tree*" style "list-header"
}

#=========================================================
# Notebook
#=========================================================

style "newwave-notebook"
{
GtkNotebook::tab-overlap 	      = 6
GtkNotebook::tab-curvature	      = 4	
	
xthickness = 3
ythickness = 3

engine "pixmap" 
{
        # Focus - not currently working
        #=============================
        image
        {
                function		= FOCUS
		recolorable		= TRUE
		state			= NORMAL
		detail                  = "tab"
		file			= "Images/Buttons/button-focus.png"
		border	                = { 4,4,4,4}
		stretch	                = TRUE
	
	}
           
           
         # Tabs
         #=============================     
	image 
	{
		function		= EXTENSION
		recolorable		= TRUE
		state			= ACTIVE
		file			= "Images/Tabs/tab-bottom.png"
		border	                = { 3,3,1,3}
		stretch	                = TRUE
		gap_side		= TOP
	}
	image 
	{
		function		= EXTENSION
		recolorable		= TRUE
		detail                  = "tab"
		state			= ACTIVE
		file			= "Images/Tabs/tab-top.png"
		border		        = { 3,3,3,1}
		stretch	                = TRUE
		gap_side		= BOTTOM
	}
	image 
	{
		function		= EXTENSION
		recolorable		= TRUE
		state			= ACTIVE
		file			= "Images/Tabs/tab-left.png"
		border		        = { 3,1,3,3}
		stretch		        = TRUE
		gap_side		= RIGHT
	}
	image 
	{
		function		= EXTENSION
		recolorable		= TRUE
		state			= ACTIVE
		file			= "Images/Tabs/tab-right.png"
		border		        = { 1,3,3,3}
		stretch		        = TRUE
		gap_side		= LEFT
	}	
	
	
	image 
	{
		function		= EXTENSION
		recolorable		= TRUE
		detail                  = "tab"
		file			= "Images/Tabs/tab-top-active.png"
		border		        = { 3, 3, 5, 1}
		stretch		        = TRUE
		gap_side		= BOTTOM
	}
	image 
	{
		function		= EXTENSION
		recolorable		= TRUE
		file			= "Images/Tabs/tab-bottom-active.png"
		detail                  = "tab"
		border		        = { 3, 3, 1, 5}
		stretch		        = TRUE
		gap_side		= TOP
	}
	image 
	{
		function		= EXTENSION
		recolorable		= TRUE
		detail                  = "tab"
		file			= "Images/Tabs/tab-left-active.png"
		border		        = { 5, 1, 3, 3}
		stretch		        = TRUE
		gap_side		= RIGHT
	}
	image 
	{
		function		= EXTENSION
		recolorable		= TRUE
		detail                  = "tab"
		file			= "Images/Tabs/tab-right-active.png"
		border		        = { 1, 5, 3, 3}
		stretch		        = TRUE
		gap_side		= LEFT
	}

         # Tab containers
         #============================= 
	image 
	{
		function		= BOX_GAP
		recolorable		= TRUE
		file			= "Images/Tabs/notebook-top.png" 
		border		        = { 4, 4, 2, 2  }
		stretch		        = TRUE
		gap_file		= "Images/Tabs/null-top.png"
		gap_border              = { 5, 5, 5, 5  }
		gap_start_file	        = "Images/Tabs/top-gap-start.png"
		gap_start_border        = { 3, 2, 3, 2 }
		gap_end_file	        = "Images/Tabs/top-gap-end.png"
		gap_end_border	        = { 2, 3, 3, 2 }
		gap_side		= TOP
	}
	image 
	{
		function		= BOX_GAP
		recolorable		= TRUE
		file			= "Images/Tabs/notebook-bottom.png"
		border	                = { 4, 4, 4, 2  }
		stretch		        = TRUE
		gap_file		= "Images/Tabs/null-bottom.png"
		gap_border		= { 5, 5, 5, 5  }
		gap_start_file	        = "Images/Tabs/bottom-gap-start.png"
		gap_start_border	= { 2, 2, 2, 2 }
		gap_end_file	        = "Images/Tabs/bottom-gap-end.png"
		gap_end_border	        = { 2, 3, 2, 3 }
		gap_side		= BOTTOM
	}
	image 
	{
		function		= BOX_GAP
		recolorable		= TRUE
		file			= "Images/Tabs/notebook-left.png"
		border		        = { 2, 4, 4, 4  }
		stretch		        = TRUE
		gap_file		= "Images/Tabs/null-left.png"
		gap_border		= { 2, 2, 2, 2  }
		gap_start_file	        = "Images/Tabs/left-gap-start.png"
		gap_start_border      	= { 3, 2, 3, 2 }
		gap_end_file	        = "Images/Tabs/left-gap-end.png"
		gap_end_border	        = { 3, 2, 2, 3 }
		gap_side		= LEFT
	}
	image 
	{
                function		= BOX_GAP
                recolorable		= TRUE
                file			= "Images/Tabs/notebook-right.png" 
                border		        =  { 4, 2, 4, 4  }
                stretch		        = TRUE
                gap_file		= "Images/Tabs/null-right.png"
                gap_border		= { 1, 1, 3, 3  }
                gap_start_file	        = "Images/Tabs/right-gap-start.png"
                gap_start_border	= { 2, 3, 3, 2 } #{ 2, 3, 2, 3 }
                gap_end_file	        = "Images/Tabs/right-gap-end.png"
                gap_end_border	        = { 2, 3, 2, 3 }
                gap_side		= RIGHT
	}
	
         # No Tabs
         #============================= 
	image 
	{
	      function		= BOX
	      recolorable	= TRUE
	      file		= "Images/Tabs/notebook-top.png"
	      border		= { 5, 5, 6, 5  }
	      stretch		= TRUE
	      #gap_side		= TOP
	}
}
}



#=========================================================
# Metacity title
#=========================================================
style "newwave-frame-title"
{
	fg[NORMAL] = lighter (@fg_color)
}


#=========================================================
# Tooltips
#=========================================================
style "newwave-tooltips" = "newwave-wider"
{
	
	fg[NORMAL] = @tooltip_fg_color
	
	bg[NORMAL] = @tooltip_bg_color
	bg[SELECTED] = darker(@tooltip_bg_color)
	bg[ACTIVE] = darker(@tooltip_bg_color)
	
	engine "pixmap"
        {
	image
	 {
		function	= FLAT_BOX
		recolorable	= TRUE
		file	        = "Images/Others/tooltip.png"
		border          = {1, 1, 1, 1}
		stretch	        = TRUE
	 }
        }
}

#=========================================================
# Statusbar
#=========================================================
style "newwave-statusbar"
{
        xthickness = 0
        ythickness = 0
        
	bg[NORMAL] = @bg_color
	#fg[ACTIVE] = shade (0.8, @bg_color)
	#text[NORMAL] = shade (0.8, @bg_color)
	
	#engine "clearlooks"
	#{
	#	hint	= "statusbar"
	#}
	engine "pixmap"
        {
	image
	{
		function	= RESIZE_GRIP
		recolorable	= TRUE
		detail		= "statusbar"
		overlay_file	= "Images/Others/statusgrip.png"
		overlay_border	= { 0 , 0 , 0 , 0}
		overlay_stretch	= TRUE
	}
        }
}

#=========================================================
# Scale
#=========================================================
style "newwave-scale" = "newwave-range"
{
	#engine "clearlooks"
	#{
	#	hint	= "scale"
	#	style	= CLASSIC
	#}
}

style "newwave-hscale"
{
	#engine "clearlooks"
	#{
	#	hint	= "hscale"
	#}
}

style "newwave-vscale"
{
	#engine "clearlooks"
	#{
	#	hint	= "vscale"
	#}
}

#=========================================================
# Menu system
#=========================================================

style "newwave-menubar" = "newwave-wider"
{	
	xthickness = 2
	ythickness = 2

	fg[NORMAL] = @bg_color
	fg[PRELIGHT] = lighter(@text_color)
	fg[ACTIVE] =@text_color
	fg[INSENSITIVE] = shade(0.32 , @bg_color)
	
	bg[NORMAL] ="#696969"  # @author:dilomo@ old value in v0.5.6 "#5f5f5f"
	bg[PRELIGHT] = darker(@bg_color)
	bg[ACTIVE] = darker(@bg_color)
	# @author:gp@ Improve consistency between active-menu-item and menu-background.
	bg[SELECTED] = shade ( 0.97, @bg_color) #(old value for shade: 0.90)
	
	# @author:dilomo@ We don't need this anymore as we use the better pixmap 
	# engine which could even stretch the shadow and fix several issues with VLC and thunderbird
	#bg_pixmap[NORMAL] = "Images/MenuMenubar/MenuBar.png"
	

	engine "pixmap"
	{
		image
		{
			function	= BOX
			state 		= NORMAL
			overlay_file	= "Images/MenuMenubar/MenuBar.png"	     		
	      		overlay_stretch = TRUE
			
    		}

		image
		{
			function	= BOX
			state 		= ACTIVE
			#file           = "Images/MenuMenubar/MenuBarBg.png"	
			#stretch        = TRUE
			#border		= { 0, 1, 1, 1 }
			overlay_file	= "Images/MenuMenubar/MenuBar.png"	     		
	      		overlay_stretch = TRUE
    		}
    	

		image
		{
			function	= BOX
			state 		= INSENSITIVE
			#file           = "Images/MenuMenubar/MenuBarBg.png"	
			#stretch        = TRUE
			#border		= { 0, 1, 1, 1 }
			overlay_file	= "Images/MenuMenubar/MenuBar.png"	     		
	      		overlay_stretch = TRUE
    		}

  		image
  	 	{
  	 		function	= BOX
      			recolorable	= TRUE
			state 		= PRELIGHT
     			file		= "Images/MenuMenubar/menubar-item.png"
      			border		= { 4, 4, 2, 2 }
      			stretch		= TRUE
    		}
 	}
}

style "newwave-menu" 
{
        xthickness = 1
        ythickness = 3  

	fg[NORMAL] = @bg_color
	fg[PRELIGHT] = lighter(@bg_color)
	fg[ACTIVE] = lighter(@bg_color)
	fg[SELECTED] = lighter(@bg_color)
	fg[INSENSITIVE] = darker("#7a7878")
	
	bg[NORMAL] = "#7a7878"
	bg[PRELIGHT] = "#7a7878"
	bg[ACTIVE] = "#7a7878"
	bg[SELECTED] =  darker("#7a7878")
	
	
  	engine "pixmap"
  	{
  	  image
  	  {
                function	= BOX
                recolorable     = TRUE
                detail		= "menu"
                shadow          = OUT
                file		= "Images/MenuMenubar/menu.png"
                border		= { 1, 1, 2, 1 }
                stretch		= TRUE
    	   }
  	}
}

style "newwave-menu-item"
{
        xthickness = 0
        ythickness = 3
        
        fg[NORMAL] = "#ffffff" #shade(1.12, @bg_color)
	fg[PRELIGHT] = @fg_color
	fg[INSENSITIVE] = darker("#696969")
	
	bg[NORMAL] = "#696969"
	bg[ACTIVE] =  shade(1.05,"#696969")
	bg[SELECTED] = shade(1.05,"#696969")
	bg[INSENSITIVE] = "#696969"
        
        engine "pixmap"
	  {
	    image
	    {
	      function			= BOX
	      recolorable		= TRUE
	      file			= "Images/MenuMenubar/menuitem-dark.png"
	      border			= { 4, 4, 4, 4 }
	      stretch			= TRUE
	    }
	    image
	    {
	      function			= ARROW
	      recolorable		= TRUE
	      state			= NORMAL
	      overlay_file		= "Images/Arrows/arrow-right.png"
	      overlay_stretch		= FALSE
	      arrow_direction		= RIGHT
	    }
	    image
	    {
	      function			= ARROW
	      recolorable		= TRUE
	      state			= PRELIGHT
	      overlay_file		= "Images/Arrows/arrow-right-prelight.png"
	      overlay_stretch		= FALSE
	      arrow_direction		= RIGHT
	    }
	    image
	    {
	      function			= ARROW
	      recolorable		= TRUE
	      state			= INSENSITIVE
	      overlay_file		= "Images/Arrows/arrow-right-insens.png"
	      overlay_stretch		= FALSE
	      arrow_direction		= RIGHT
	    }
	    
	  }
  
	
}

style "newwave-tearoff-menu-item"	= "newwave-menu-item"
{
  engine "pixmap"
  {
    image
    {
      function				= ARROW
      file				= "Images/Arrows/arrow-left.png"
      stretch				= TRUE
      arrow_direction			= LEFT
    }
  }
}

style "newwave-separator-menu-item"
{
	xthickness = 1
	ythickness = 2
	
  engine "pixmap"
  {
    image
    {
      function	  = HLINE
      recolorable = TRUE
      file	  = "Images/MenuMenubar/MenuLine.png"
      border	  = { 1, 1, 1, 1 }
      stretch	  = TRUE
    }
  }
}

#=========================================================
# Main Menu
#=========================================================
style "newwave-panelmenubar"
{
        # @author:dilomo@ fix the overlay of the main menu
        #bg_pixmap[NORMAL] = "Images/MenuMenubar/null.png"

     
        #use anoter file for menus
        engine "pixmap"
        {
	image
	{
	        #use anoter file for menus
		function	= BOX
		state		= PRELIGHT
		recolorable	= TRUE
		file		= "Images/MenuMenubar/panel-menubar-item.png"
		border	        = { 4 , 4 , 4 , 4}
		stretch	        = TRUE
	}
        image
	{
	        #use transparent file for bg
		function	= BOX
		state		= NORMAL
		recolorable	= TRUE
		file		= "Images/MenuMenubar/null.png"
		border	        = { 0 , 0 , 0 , 0}
		stretch	        = TRUE
	}
	image
	{
	        #use transparent file for bg
		function	= BOX
		state		= INSENSITIVE
		recolorable	= TRUE
		file		= "Images/MenuMenubar/null.png"
		border	        = { 0 , 0 , 0 , 0}
		stretch	        = TRUE
	}
      }
}

# soon a widget <main-menu-name> match will replace and solcve this
widget_class "*Panel*MenuBar*" style :highest "newwave-panelmenubar"


# This had to make the main menu whit white bg (not working yet but will in Ibex)
style "newwave-panelmenu-item"
{
        fg[NORMAL]        = @fg_color
        bg[NORMAL]        = "#ffffff"
        
        text[NORMAL]        = @text_color
	text[PRELIGHT]      = @text_color
	text[INSENSITIVE]   = darker ("#696969")
	
	 engine "pixmap"
	 {
	    image
	    {
	      function			= BOX
	      recolorable		= TRUE
	      file			= "Images/MenuMenubar/menuitem.png"
	      border			= { 2, 2, 2, 2 }
	      stretch			= TRUE
	    }
	    image
	    {
	      function			= ARROW
	      recolorable		= TRUE
	      state			= NORMAL
	      overlay_file		= "Images/Arrows/arrow-right.png"
	      overlay_stretch		= FALSE
	      arrow_direction		= RIGHT
	    }
	    image
	    {
	      function			= ARROW
	      recolorable		= TRUE
	      state			= PRELIGHT
	      overlay_file		= "Images/Arrows/arrow-right-prelight.png"
	      overlay_stretch		= FALSE
	      arrow_direction		= RIGHT
	    }
	    image
	    {
	      function			= ARROW
	      recolorable		= TRUE
	      state			= INSENSITIVE
	      overlay_file		= "Images/Arrows/arrow-right-insens.png"
	      overlay_stretch		= FALSE
	      arrow_direction		= RIGHT
	    }
	  }
	
}
widget "*.gnome-panel-main-menu.*"  style :highest "newwave-panelmenu-item"

style "newwave-panelmenu" = "newwave-menu" 
{
   
     bg[NORMAL] = "#ffffff" #or lighter(@bg_color)
     fg[NORMAL] = "#696969"
     
        text[NORMAL]        = @text_color
        text[PRELIGHT]      = @text_color
        text[INSENSITIVE]   = darker ("#696969")
	
      
     engine "pixmap"
	 {
	    image
	    {
	      function			= BOX
	      recolorable		= TRUE
	      file			= "Images/MenuMenubar/combomenu.png"
	      border			= { 1, 1, 1, 1 }
	      stretch			= TRUE
	    }
	  }
}
widget "*.gnome-panel-main-menu" style :highest "newwave-panelmenu"



#=========================================================
# Dark panel
#=========================================================
style "panel" = "newwave-default"
{
	fg[NORMAL] = shade(0.97, @bg_color) #mix(0.70, lighter(@selected_bg_color), @bg_color)
	fg[PRELIGHT] = @text_color # lighter(mix(0.90, lighter(@selected_bg_color), @bg_color))
	#@autho:gp@ Improve consistency between metacity-frame and application active in taskbar.
	fg[ACTIVE] = @base_color   # @text_color # lighter(mix(0.50, lighter(@selected_bg_color), @bg_color))
	
  	# @author:dilomo@
  	#dark color from v0.1 :  "#4C4D4E"
  	#dark color from v0.1.1 :  "#424242"  	
	bg[NORMAL] = "#424242" #This is dark gray
	# @author:gp@ Same color as item selected of taskbar menu.
	bg[PRELIGHT] = shade ( 1.60, @bg_color) #shade(3.0, "#424242") 
	#@autho:gp@ Improve consistency between metacity-frame and application active in taskbar.
	bg[ACTIVE] = shade(1.02, "#696969")     #bg[ACTIVE] = shade(2.5, "#424242")
	#@autho:gp@ Improve consistency between active-menu-item and menu-background.
	bg[SELECTED] = shade ( 1.60, @bg_color) #bg[SELECTED] = shade(3.2, "#424242")
	
	bg_pixmap[NORMAL] = "Images/MenuMenubar/PanelBar.png"
 	
}

style "panel-nopixmap" = "panel"
{   
 	bg_pixmap[NORMAL] = "Images/Others/null.png"
}

#=========================================================
# Panel Buttons (task list, date picker)
#=========================================================
style "newwave-panelbuttons"
{

 	xthickness = 2
 	ythickness = 1
	GtkWidget::focus_padding = 2

	engine "pixmap" {
      
		image
		{
			function        	= BOX
			recolorable     	= TRUE
			state			= NORMAL
			file            	= "Images/Panel/p-normal.png"
			border          	= { 4, 4, 4, 4 }
			stretch         	= TRUE
		}
		
		#@author:dilomo@ used for normal prelight
		image
		{
			function        	= BOX
			recolorable     	= TRUE
			state			= PRELIGHT
			shadow			= OUT
			file            	= "Images/Panel/p-prelight.png"
			border          	= { 4, 4, 4, 4 }
			stretch         	= TRUE
		}
		#@author:dilomo@ used for active (pressed) buttons prelight
		image
		{
			function        	= BOX
			recolorable     	= TRUE
			state			= PRELIGHT
			shadow			= IN
			file            	= "Images/Panel/p-active-prelight.png"
			border          	= { 4, 4, 4, 4 }
			stretch         	= TRUE
		}
		
		image
		{
			function        	= BOX
			recolorable     	= TRUE
			state			= ACTIVE
			file            	= "Images/Panel/p-active.png"
			border          	= { 4, 4, 4, 4 }
			stretch         	= TRUE
		}  
		image
		{
			function        	= BOX
			recolorable     	= TRUE
			state			= INSENSITIVE
			file            	= "Images/Panel/p-insens.png"
			border          	= { 4, 4, 2, 2 }
			stretch         	= TRUE
		}  
    		image
    		{
              		function		= HANDLE
              		recolorable		= TRUE
              		overlay_file		= "Images/Panel/handle-v.png"
              		overlay_stretch		= FALSE
              		orientation		= VERTICAL
    		}
    		image
    		{
              		function		= HANDLE
              		overlay_file		= "Images/Panel/handle-h.png"
              		overlay_stretch 	= FALSE
             		orientation	        = HORIZONTAL
   		}

	}

}

#=========================================================
# Popup Nautilus Widget
#=========================================================
style "newwave-nautilus-location"
{
	bg[NORMAL] = mix(0.70, shade (1.05,"#696969"), @bg_color)
}


#=========================================================
# Popup Notification Daemon
#=========================================================
style "newwave-notify-daemon"
{
	bg[NORMAL] = @text_color #mix(0.70, shade (1.05,"#696969"), @bg_color)
	bg[SELECTED] = @bg_color
}

#widget_class "*NotifyDaemon*" style :highest "newwave-notify-daemon"

class "*notif*" 			style :highest "panel" #"newwave-notify-daemon"
class "*Notif*" 			style :highest "panel" #"newwave-notify-daemon"
widget_class "*notif*" 		style :highest "panel" #"newwave-notify-daemon"
widget_class "*Notif*" 		style :highest "panel" #"newwave-notify-daemon"

#=========================================================
# Metacity background
#=========================================================
style "metacity-frame"
{
	bg[SELECTED] = "#696969" # @author:gp@ It must be the same color as menubar (bg[NORMAL])
	bg[NORMAL] = "#696969"
}

# @author:dilomo@ This has to fix the Appearance manager crash
style "newwave-window"
{
        bg_pixmap[NORMAL] = "Images/Others/null.png"
}

style "newwave-radiocheck" = "newwave-default"
{
	text[PRELIGHT]	= @base_color # Text on Mouseover
}




#=========================================================
#=========================================================
# Matches
#=========================================================
#=========================================================



# theme radio buttons and checkmarks

class "GtkButton"          				style "newwave-button"

class "GtkCheck*"                           		style "newwave-checkbutton"
class "GtkRadio*"                        		style "newwave-radiobutton"
class "GtkCheckMenuItem"   				style : highest "newwave-checkmenubutton" 
class "GtkRadioMenuItem"                                style : highest "newwave-radiomenubutton"

# keep proper colour for Metacity
class "MetaFrames" 					style "metacity-frame"
class "GtkWindow"    			    		style "newwave-window"

# theme default style is applied to every widget
class "GtkWidget"    					style "newwave-default"

# Increase the x/ythickness in some widgets
class "GtkFrame"     					style "newwave-frame"
class "GtkSeparator" 					style "newwave-wide"
class "GtkEntry"   					style "newwave-entry"
class "GtkOldEditable" 					style "newwave-entry"
class "GtkToolbar"   					style "newwave-toolbar" 
class "GtkRange"     					style "newwave-range"
class "GtkSpinButton"  					style "newwave-spinbutton"
class "GtkScale"       					style "newwave-scale"
class "GtkVScale"      					style "newwave-vscale"
class "GtkHScale"      					style "newwave-hscale"
class "GtkScrollbar"   					style "newwave-scrollbar"
#class "GtkVScrollbar"  					style "newwave-vscrollbar"
#class "GtkHScrollbar"  					style "newwave-hscrollbar"
class "GtkProgressBar"     				style "newwave-progressbar"
class "GtkTearoffMenuItem"				style "newwave-menu-item"
class "GtkMenuItem"				        style "newwave-menu-item"
class "GtkImageMenuItem"    				style "newwave-menu-item"
class "GtkItem"    				        style "newwave-menu-item"
class "GtkOptionMenu"			                style "newwave-combobox"
class "GtkCombo*"      			                style "newwave-combobox"
class "*Font*"      			                style "newwave-combobox"

# General matching following, the order is choosen so that the right styles override each other
# eg. progressbar needs to be more important then the menu match.

# This is not perfect, it could be done better
# (That is modify *every* widget in the notebook, and change those back that
# we really don't want changed)
widget_class "*Nautilus*<GtkFrame>" 			style "newwave-default"
widget_class "*<GtkNotebook>*<GtkEventBox>"     	style "newwave-notebook"
widget_class "*<GtkNotebook>*<GtkDrawingArea>"  	style "newwave-notebook"
widget_class "*<GtkNotebook>*<GtkLayout>"       	style "newwave-notebook"

widget_class "*<GtkButton>"      			style "newwave-button"
widget_class "*<GtkNotebook>"    			style "newwave-notebook"
widget_class "*<GtkStatusbar>*"  			style "newwave-statusbar"

widget_class "*<GtkComboBoxEntry>*"			style "newwave-comboboxentry"
widget_class "*<GtkCombo>*"         			style "newwave-combobox"
widget_class "*<GtkMenu>*"              		style "newwave-menu"


widget_class "*<GtkMenuBar>*"           		style "newwave-menubar"

class "GtkMenuBar"					style "newwave-menubar"
widget_class "GtkMenuBar"				style "newwave-menubar"

class "*MenuBar*"					style "newwave-menubar"
widget_class "*MenuBar*"				style "newwave-menubar"



# @author:dilomo@ Here "*<GtkMenu>.<GtkMenuItem>*" GtkMenu is used 
# to make menus' bg gray not like @selected_bg_color (relevant to Clearlooks)
widget_class "*<GtkMenu>.<GtkMenuItem>*"          	style "newwave-menu-item"
widget_class"*.GtkAccelMenuItem.*"        	        style "newwave-menu-item"


widget_class "*<GtkSeparatorMenuItem>*" 		style "newwave-separator-menu-item"

widget_class "*.<GtkFrame>.<GtkLabel>" 		style "newwave-frame-title"
widget_class "*.<GtkFrame>.*"				style "newwave-frame"
widget_class "*.<GtkTreeView>*"        		style "newwave-treeview"
widget_class "*.GtkFrame.GtkScrolledWindow.GtkTreeView" style "newwave-treeview"

widget_class "*<GtkProgressBar>"       		style "newwave-progressbar"

widget_class "*Entry.GtkButton"       			style "newwave-combobutton"
widget_class "*GtkComboBoxEntry*Button"       		style "newwave-combobutton"
widget_class "*.GtkComboBox.GtkButton" 		style "newwave-combobutton"
widget_class "*.GtkComboBox.GtkMenu" 		        style "newwave-combomenu"
widget_class "*.GtkCombo.GtkButton"    		style "newwave-combobutton"


widget_class "*Tool*GtkToggleButton"                  style "newwave-button"
widget_class "*Tool*GtkButton"                        style "newwave-button"

# Treeview header
widget_class "*.<GtkTreeView>.<GtkButton>" 		style "newwave-treeview-header"
widget_class "*.<GtkCTree>.<GtkButton>"    		style "newwave-treeview-header"
widget_class "*.<GtkList>.<GtkButton>"     		style "newwave-treeview-header"
widget_class "*.<GtkCList>.<GtkButton>"    		style "newwave-treeview-header"

# Workarounds for Evolution
widget_class "*.ETable.ECanvas"    			style "newwave-treeview-header"
widget_class "*.ETree.ECanvas"    			style "newwave-treeview-header"

# The window of the tooltip is called "gtk-tooltip"
#=========================================================
# FIXME:
# This will not work if one embeds eg. a button into the tooltip.
# As far as I can tell right now we will need to rework the theme
# quite a bit to get this working correctly.
# (It will involve setting different priorities, etc.)
#=========================================================
widget "gtk-tooltip*" 					style "newwave-tooltips"


#=========================================================
#  W O R K    A R O U N D S
#=========================================================

# Special case the nautilus-extra-view-widget
# ToDo: A more generic approach for all applications that have a widget like this.
widget "*.nautilus-extra-view-widget" 			style : highest "newwave-nautilus-location"

#widget_class "MozillaGtkWidget*MenuBar"	        style :highest "newwave-menubar"#-mozilla"
#widget "MozillaGtkWidget*Menu*"	                style :highest "newwave-menu-item-mozilla"

# @author: gp, Special case to set color backgroud in Nautilus Sidebar.
style "newwave-nautilus-sidebar"
{
  GtkTreeView::even_row_color = @bg_color
}
widget_class "NautilusNavigationWindow.GtkTable.NautilusHorizontalSplitter.NautilusSidePane.GtkNotebook.*" style "newwave-nautilus-sidebar"

# Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
# Note that the work around assumes that the combobox is _not_ in
# appears-as-list mode.
# Similar hack also in the menuitem style.
# This style does not affect GtkComboBoxEntry, it does have an effect
# on comboboxes in appears-as-list mode though.
style "newwave-combobox-text-color-workaround"
{
	text[NORMAL]      = @fg_color
	text[PRELIGHT]    = @fg_color
	text[SELECTED]    = @selected_fg_color
	text[ACTIVE]      = @fg_color
	text[INSENSITIVE] = darker (@bg_color)
}
widget_class "*.<GtkComboBox>.<GtkCellView>"		style "newwave-combobox-text-color-workaround"


# This inverts the menus of comboboxes - white bg and dark text
# Unfortunately it does not work on the obsolete option menus that are used by some apps.
style "newwave-menuitem-text-is-fg-color-workaround"
{
	
	 engine "pixmap"
	 {
	    image
	    {
	      function			= BOX
	      recolorable		= TRUE
	      file			= "Images/MenuMenubar/menuitem.png"
	      border			= { 2, 2, 2, 2 }
	      stretch			= TRUE
	    }
	  }
	
}
widget "*.gtk-combobox-popup-menu.*"  style :highest "newwave-menuitem-text-is-fg-color-workaround"

style "newwave-popupmenu-workaround"
{
        fg[NORMAL]        = "#696969"
        
        bg[NORMAL]        = "#ffffff"
        
	text[NORMAL]        = @text_color
	text[PRELIGHT]      = @text_color
	text[SELECTED]      = @selected_fg_color
	text[ACTIVE]        = @fg_color
	text[INSENSITIVE]   = darker (@bg_color)
	
	 engine "pixmap"
	 {
	    image
	    {
	      function			= BOX
	      recolorable		= TRUE
	      file			= "Images/MenuMenubar/combomenu.png"
	      border			= { 1, 1, 1, 1 }
	      stretch			= TRUE
	    }
	  }
}

widget "*.gtk-combobox-popup-menu"  style :highest  "newwave-popupmenu-workaround"



# Work around the usage of GtkLabel inside GtkListItems to display text.
# This breaks because the label is shown on a background that is based on the
# base color set.
style "newwave-fg-is-text-color-workaround"
{
	fg[NORMAL]      = @text_color
	fg[PRELIGHT]    = @text_color
	fg[ACTIVE]      = @selected_fg_color
	fg[SELECTED]    = @selected_fg_color
	fg[INSENSITIVE] = darker(@bg_color)
	
	text[ACTIVE]    = shade(1.8, @text_color)
	text[SELECTED]  = @text_color
	
	bg[NORMAL]      = @bg_color
	bg[SELECTED]    = @selected_bg_color
	
        engine "pixmap"
	{
			image
		{
			function        = BOX
			state           = ACTIVE
			border          = {2,2,2,2}
			file            = "Images/Tree/selected.png"
			stretch		= TRUE
		}
	        image
		{
			function        = BOX
			state           = SELECTED
			border          = {2,2,2,2}
			file            = "Images/Tree/selected-active.png"
			stretch		= TRUE
		}
		image
		{
			function        = FLAT_BOX
			state           = SELECTED
			border          = {2,2,2,2}
			file            = "Images/Tree/selected.png"
			stretch		= TRUE
		}
	}
}

widget_class "*<GtkListItem>*" 				style "newwave-fg-is-text-color-workaround"
# The same problem also exists for GtkCList and GtkCTree
# Only match GtkCList and not the parent widgets, because that would also change the headers.

widget_class "*<GtkCList>" 				style "newwave-fg-is-text-color-workaround"

style "newwave-evo-new-button-workaround"
{

}
widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "newwave-evo-new-button-workaround"


#=========================================================
# Panel Matches 
#=========================================================



class "*Mail*" 			        style "panel"
class "*Tray*" 				style "panel"
class "*tray*" 				style "panel"
widget_class "*Tray*" 			style "panel"
widget_class "*tray*" 			style "panel"
widget "*TrayIcon*" 			style "panel"
class "*Panel*Applet*" 			style "panel"
widget_class "*Panel*GtkToggleButton" 	style "panel"
widget_class "*Panel*GtkButton" 	style "panel"
widget_class "*.Panel*Button*GtkLabel" style "panel"
widget_class "*.Panel*GtkLabel" 	style "panel"
widget "*PanelWidget*" 			style "panel"
widget "*PanelApplet*" 			style "panel"
class  "PanelApp*" 			style "panel"
class  "PanelToplevel*" 		style "panel"
widget_class "*Mail*" 			style "panel"
widget_class "*Netstatus*" 		style "panel"
widget_class "*Tomboy*Tray*" 		style "panel"
widget "*fast-user-switch*" 		style "panel"
widget_class "*PanelToplevel*"         style "panel"
class "Xfce*Panel*" 			style "panel"
widget_class "*Xfce*Panel*" 		style "panel"
widget_class "*PanelApplet*" 		style "panel"
widget_class "*PanelWidget*" 		style "panel"
# @author:dilomo@ cpu-frequency applet was with dark text. Fix it. 
widget_class "*FreqApplet*"		style "panel"

#(TODO:)fixes for banshee and drawers
#widget_class "*DrawerApplet*"		style "panel-nopixmap"

widget_class "*Panel*GtkToggleButton" 		        style "newwave-panelbuttons"
widget        "*.tasklist-button" 			style "newwave-panelbuttons"
widget_class "*PanelToplevel*Button" 		        style "newwave-panelbuttons"
widget_class "*Xfce*Panel*.GtkToggleButton" 	        style "newwave-panelbuttons"
widget_class "*Xfce*NetkTasklist*GtkToggleButton"      style "newwave-panelbuttons"

# Theme panel elements
#widget "*PanelWidget*" 				style "panel"
#widget "*PanelApplet
#widget "*fast-user-switch*"				style "panel"
#class  "PanelApp*" 					style "panel"
#class  "PanelToplevel*" 				style "panel"
#widget_class "*Mail*" 					style "panel"
#widget_class "*notif*" 				style "panel"
#widget_class "*Notif*" 				style "panel"
# @author:dilomo@ cpu-frequency applet was with dark text. Fix it. 
#widget_class "*FreqApplet*"				style "panel"
#widget_class "*AllTray*"                               style "panel"
# @author:dilomo@ Only testing this as it is alpha software. 
#widget "*.globalmenu-applet-eventbox"                  style : highest "panel"
