###############################################################
#EXPANDER
###############################################################

###########
# Normal Expander
###########

style "expander"
{
	bg[PRELIGHT]							= "#E2E1C1"
	
	GtkExpander::expander-size				= 13
	GtkExpander::expander-spacing			= 2
	
	engine "experience"
	{
		group "expander_collapsed_focus_rtl" = "expander_collapsed_focus"
		{
			text_direction				= RTL
			
			image 100 {
				mirror					= HORIZONTAL
			}
		}
		
		group "expander_collapsed_focus" = "expander_collapsed_prelight"
		{
			property "has-focus"					= TRUE
			state						= NORMAL
			
			image 40 {	recolor "#ff0000"	= base[selected]
						brightness		= 0.1
						saturation		= 0.97}
			
			image 50 {	recolor "#ff0000"	= "#ffffff"
						opacity			= 0.7}
		}
		
		#needs no rtl
		group "expander_expanded_focus" = "expander_expanded_prelight"
		{
			property "has-focus"					= TRUE
			state						= NORMAL
			
			image 40 {	recolor "#ff0000"	= base[selected]
						brightness		= 0.1
						saturation		= 0.97}
			
			image 50 {	recolor "#ff0000"	= "#ffffff"
						opacity			= 0.7}
		}
		
		group "expander_collapsed_normal_rtl" = "expander_collapsed_normal"
		{
			text_direction				= RTL
			
			image 100 {
				xpos					= 0 ws - 1 px
				rotate					= NONE
			}
		}
		
		group "expander_collapsed_normal" = "checkbutton_prelight"
		{
			function						= EXPANDER
			expander_style					= COLLAPSED
			state							= NORMAL
			
			image 10 {	file				= "images/button/blue_base2.png"
						recolor "#ff0000"	= base[NORMAL]
						opacity				= 0.8
						border				= { 2, 2, 2, 2 } }
			image 11 {	file				= "images/button/blue_light.png"
						recolor "#ff0000"	= base[NORMAL]
						brightness			= -0.5
						opacity				= 0.5
						rotate				= AROUND }
			image 12 {	file				= "images/button/blue_light.png"
						recolor "#ff0000"	= base[NORMAL]
						brightness			= 0.2
						opacity				= 0.5}
			image 20 {	dont_draw			= TRUE }
			image 40 {	dont_draw			= TRUE }
			image 50 {	dont_draw			= TRUE }
			image 60 {	file				= "images/button/blue_frame.png"
						recolor "#ff0000"	= base[SELECTED]
						brightness			= -0.3
						saturation			= 0.5
						draw_components		= BORDER
						interpolation_type	= NEAREST
						border				= { 2, 2, 2, 2 } }
			image 100 {	file				= "images/arrows/standard_arrow.png"
						recolor "#ff0000"	= base[SELECTED]
						opacity				= 0.8
						brightness			= -0.2
						saturation			= 0.8 
						pos					= 0 ws
						width				= 1 is
						height				= 1 is
						rotate				= AROUND }
		}


		group "expander_collapsed_prelight_rtl" = "expander_collapsed_prelight"
		{
			text_direction				= RTL
			
			image 100 {
				xpos					= 0 ws - 1 px
				rotate					= NONE
			}
		}
		
		group "expander_collapsed_prelight" = "expander_collapsed_normal"
		{
			state						= PRELIGHT, ACTIVE
			image 20 {	dont_draw		= TRUE }
			image 40 {	dont_draw		= FALSE }
			image 50 {	dont_draw		= FALSE }	
		}
		
		group "expander_collapsed_insensitive_rtl" = "expander_collapsed_insensitive"
		{
			text_direction				= RTL
			
			image 100 {
				xpos					= 0 ws - 1 px
				rotate					= NONE
			}
		}
		
		group "expander_collapsed_insensitive" = "expander_collapsed_normal"
		{
			state						= INSENSITIVE
			opacity						= 0.5
		}
		

		group "expander_semi_rtl" = "expander_semi"
		{
			text_direction				= RTL
			
			image 100 {
				rotate					= AROUND
				mirror					= VERTICAL
			}
		}
		
		group "expander_semi" = "expander_collapsed_prelight"
		{
			expander_style			= SEMI_COLLAPSED, SEMI_EXPANDED
			state					= NORMAL, ACTIVE, PRELIGHT
			
			image 100 {	file			= "images/arrows/bottomright.png"
						rotate		= NONE }
		}
		
		#doesn't need rtl
		group "expander_expanded_normal" = "expander_collapsed_normal"
		{
			expander_style			= EXPANDED
						
			image 100 {	rotate		= CCW }
		}
	
		#doesn't need rtl
		group "expander_expanded_prelight" = "expander_collapsed_prelight"
		{
			expander_style			= EXPANDED
						
			image 100 {	rotate		= CCW }
		}
				
		#doesn't need rtl
		group "expander_expanded_insensitive" = "expander_collapsed_insensitive"
		{
			expander_style			= EXPANDED
						
			image 100 {	rotate		= CCW }
		}			
	}
}


###########
# Expander in Lists
###########

style "expander_list"
{
	GtkExpander::expander-spacing		= 2
	

	engine "experience"
	{
		group "expander_list_collapsed_normal" = "expander_list_collapsed_prelight"
		{
			state						= NORMAL
			
			image 40 {	dont_draw		= TRUE }
			image 50 {	dont_draw		= TRUE }
		}
		
		group "expander_list_collapsed_prelight" = "expander_collapsed_prelight"
		{
			state						= PRELIGHT, ACTIVE
			#padding						= { 2, 3, 2, 3 }
			dont_clip						= TRUE
			
			image 1 {		file				= "images/button/button_relief.png"
						width			= 11 px
						height			= 11 px
						border			= { 3, 3, 3, 3 }
						recolor "#ff0000"	= "#000000"
						opacity			= 0.1
						draw_components	= BORDER
						interpolation_type	= NEAREST
						dont_clip			= TRUE }
			
			image 2 {		file				= "images/button/button_relief.png"
						width			= 11 px
						height			= 11 px
						border			= { 3, 3, 3, 3 }
						recolor "#ff0000"	= "#ffffff"
						opacity			= 0.4
						rotate			= AROUND
						draw_components	= BORDER
						interpolation_type	= NEAREST
						dont_clip			= TRUE }
			image 10 {	inner_padding		= { 1, 1, 1, 1 }
						width			= 11 px
						height			= 11 px
						dont_clip			= TRUE }
			image 11 {	inner_padding		= { 2, 2, 2, 2 }
						width			= 11 px
						height			= 11 px
						dont_clip			= TRUE }
			image 12 {	inner_padding		= { 2, 2, 2, 2 }
						width			= 11 px
						height			= 11 px
						dont_clip			= TRUE }
			image 20 {	file				= "images/button/blue_frame.png"
						width			= 11 px
						height			= 11 px
						dont_draw		= FALSE
						recolor "#ff0000"	= base[SELECTED]
						brightness		= 0
						saturation		= 0.5
						draw_components	= BORDER
						interpolation_type	= NEAREST
						border			= { 2, 2, 2, 2 } 
						inner_padding		= { 1, 1, 1, 1 }
						dont_clip			= TRUE }
			image 40 {	file				= "images/expander/expander_focus1.png"
						draw_components		= BORDER
						width			= 11 px
						height			= 11 px
						inner_padding		= { 1, 1, 1, 1 }
						border			= { 2, 2, 2, 2 }
						dont_clip			= TRUE }
			image 50 {	file				= "images/expander/expander_focus2.png"
						draw_components		= BORDER
						width			= 11 px
						height			= 11 px
						inner_padding		= { 1, 1, 1, 1 }
						border			= { 2, 2, 2, 2 } }
			image 60 {	dont_draw		= TRUE }						
			image 100 {	file				= "/images/expander/plus.png"}
			
			
						
		}
				
		group "expander_list_collapsed_insensitive" = "expander_list_collapsed_normal"
		{
			state						= INSENSITIVE
			opacity						= 0.5
		}
		

		group "expander_list_semi" = "expander_list_collapsed_prelight"
		{
			expander_style				= SEMI_COLLAPSED, SEMI_EXPANDED
			state						= NORMAL, ACTIVE, PRELIGHT
			
			image 100 {	file				= "images/expander/inbetween.png"}
		}
		
		group "expander_list_expanded_normal" = "expander_list_collapsed_normal"
		{
			expander_style				= EXPANDED
						
			image 100 {	file				= "images/expander/minus.png"}
		}
	
		group "expander_list_expanded_prelight" = "expander_list_collapsed_prelight"
		{
			expander_style				= EXPANDED
						
			image 100 {	file				= "images/expander/minus.png"}
		}
				
		group "expander_list_expanded_insensitive" = "expander_list_collapsed_insensitive"
		{
			expander_style				= EXPANDED
						
			image 100 {	file				= "images/expander/minus.png"}
		}			
	

	}

}

style "expander_bg"
{
	engine "experience"
	{
		group "expander_bg"
		{
			function						= FLAT_BOX
			
			fill 0 {		color			= bg[NORMAL] }
		}
	}
}
