 #####################################################################
#CHECK AND RADIOBUTTONS
#####################################################################


##########
# On Normal Background
##########

style "checkradiobuttons_normal"
{
	GtkRadioButton::indicator_size			= 13
	GtkCheckButton::indicator_size			= 13
	
	engine "experience" 	{

		group "checkandradio_flatbox"
		{
			function						= FLAT_BOX
			detail						= "radiobutton", "checkbutton"
			
			fill 1 {		color			= bg[normal] }		
		}

		group "checkandradio_focuskiller" = "focuskiller"
		 {
		 	detail						= "radiobutton", "checkbutton"
		 }

	###Checkbuttons


		group "checkbutton_focus" = "checkbutton_prelight"
		{	
			state						= NORMAL, SELECTED
			property "has-focus"					= TRUE
			shadow						= OUT
			
			image 40 {	recolor "#ff0000"	= base[selected]
						brightness		= 0.1
						saturation		= 0.97}
			
			image 50 {	recolor "#ff0000"	= base[SELECTED] }
		}
		
		group "checkbutton_focus_checked" = "checkbutton_focus"
		{	
			shadow						= IN
			
			image 30 {	file				= "images/check_and_radio/check_check.png"
						recolor "#ff0000"	= "#1FA61F"
						inner_padding		= { 3, 3, 2, 2 } }
		}
		
		group "checkbutton_focus_nostate" = "checkbutton_focus_checked"
		{	
			shadow						= ETCHED_IN
			
			fill 30 {	color				= "#1FA61F"
						inner_padding		= { 3, 3, 3, 3 } }
		}

		group "checkbutton_normal"
		{
			function						= CHECK
			state						= NORMAL
			shadow						= OUT
			
			image 10 {	file				= "images/check_and_radio/check_base.png"
						recolor "#ff0000"	= bg[normal]
						brightness		= 0.8
						inner_padding		= { 1, 1, 1, 1 }
						width			= 13 px
						height			= 13 px }
			image 20 {	file				= "images/shadows/in.png"
						recolor "#ff0000"	= base[selected]
						brightness		= -0.3
						saturation		= 0.5
						border			= { 1, 1, 1, 1 }
						width			= 13 px
						height			= 13 px
						draw_components	= BORDER }					
		}
		
		group "checkbutton_normal_checked" = "checkbutton_normal"
		{
			shadow						= IN
			
			image 30 {	file				= "images/check_and_radio/check_check.png"
						recolor "#ff0000"	= "#1FA61F"
						inner_padding		= { 3, 3, 2, 2 }
						width			= 13 px
						height			= 13 px
						repeat			= { 1, 1, 1, 1} }
		
		}
		
		group "checkbutton_normal_nostate" = "checkbutton_normal_checked"
		{
			shadow						= ETCHED_IN
		
			fill 30 {	color				= "#1FA61F" #need to set color again
						inner_padding		= { 3, 3, 3, 3 } }
		}

		group "checkbutton_prelight" = "checkbutton_normal"
		{	
			state						= PRELIGHT, ACTIVE
			
			image 40 {	file				= "images/check_and_radio/check_focus1.png"
						inner_padding		= { 1, 1, 1, 1 }
						border			= { 2, 2, 2, 2 }
						recolor "#ff0000"	= "#ffa000"
						saturation		= 1.5
						width			= 13 px
						height			= 13 px
						draw_components		= BORDER
						interpolation_type	= NEAREST }
			
			image 50 {	file				= "images/check_and_radio/check_focus2.png"
						inner_padding		= { 1, 1, 1, 1 }
						border			= { 2, 2, 2, 2 }
						recolor "#ff0000"	= "#ffa000"
						brightness		= 0.3
						width			= 13 px
						height			= 13 px
						draw_components		= BORDER }
		}
		
		group "checkbutton_prelight_checked" = "checkbutton_prelight"
		{	
			shadow						= IN
			
			image 30 {	file				= "images/check_and_radio/check_check.png"
						recolor "#ff0000"	= "#1FA61F"
						inner_padding		= { 3, 3, 2, 2 }
						width			= 13 px
						height			= 13 px  }
		}
		
		group "checkbutton_prelight_nostate" = "checkbutton_prelight_checked"
		{	
			shadow						= ETCHED_IN
			
			fill 30 {	color				= "#1FA61F"
						inner_padding		= { 3, 3, 3, 3 } }
		}

		group "checkbutton_insensitive" = "checkbutton_normal"
		{	
			state						= INSENSITIVE
			opacity						= 0.5
		}
		
		group "checkbutton_insensitive_checked" = "checkbutton_normal_checked"
		{	
			state						= INSENSITIVE
			opacity						= 0.5
		}
		
		group "checkbutton_insensitive_nostate" = "checkbutton_normal_nostate"
		{	
			state						= INSENSITIVE
			opacity						= 0.5
		}
		
		
		
	###Radiobuttons

		group "radiobutton_focus" = "radiobutton_prelight"
		{	
			state						= NORMAL
			property "has-focus"					= TRUE
			
			image 40 {	recolor "#ff0000"	= base[selected]
						brightness		= 0.1
						saturation		= 0.97}
			
			image 50 {	recolor "#ff0000"	= "#ffffff"
						opacity			= 0.7 }
		}
		
		group "radiobutton_focus_checked" = "radiobutton_focus"
		{	
			shadow						= IN
			
			image 30 {	file				= "images/check_and_radio/radio_check1.png"
						recolor "#ff0000"	= "#1FA61F"
						inner_padding		= { 4, 4, 4, 4 }
						width			= 13 px
						height			= 13 px
						dont_clip			= TRUE }
			image 31 {	file				= "images/check_and_radio/radio_check2.png"
						recolor "#ff0000"	= "#1FA61F"
						brightness		= 0.2
						inner_padding		= { 4, 4, 4, 4 }
						width			= 13 px
						height			= 13 px
						dont_clip			= TRUE  }
		}
		
		group "radiobutton_focus_nostate" = "radiobutton_focus_checked"
		{	
			shadow						= ETCHED_IN
			
			image 30 {	opacity			= 0.8
						inner_padding		= { 3, 3, 3, 3 } }
			image 31 {	dont_draw		= TRUE }
		}

		group "radiobutton_normal" = "checkbutton_normal"
		{
			function						= OPTION
			image 10 {	file				= "images/check_and_radio/radio_base.png"
					draw_components			= ALL
					interpolation_type		= BILINEAR  }
			image 20 {	file				= "images/check_and_radio/radio_frame.png"
					draw_components			= ALL
					interpolation_type		= BILINEAR  }					
		}
		
		group "radiobutton_normal_checked" = "radiobutton_normal"
		{
			shadow						= IN
			
			image 30 {	file				= "images/check_and_radio/radio_check1.png"
						recolor "#ff0000"	= "#1FA61F"
						inner_padding		= { 4, 4, 4, 4 }
						width			= 13 px
						height			= 13 px
						dont_clip			= TRUE }
			image 31 {	file				= "images/check_and_radio/radio_check2.png"
						recolor "#ff0000"	= "#1FA61F"
						brightness		= 0.2
						inner_padding		= { 4, 4, 4, 4 }
						width			= 13 px
						height			= 13 px
						dont_clip			= TRUE }
		
		}
		
		group "radiobutton_normal_nostate" = "radiobutton_normal_checked"
		{
			shadow						= ETCHED_IN
		
			image 30 {	opacity			= 0.8
						inner_padding		= { 3, 3, 3, 3 } }
			image 31 {	dont_draw		= TRUE }
		}

		group "radiobutton_prelight" = "radiobutton_normal"
		{	
			state						= PRELIGHT, ACTIVE
			
			image 40 {	file				= "images/check_and_radio/radio_focus1.png"
						inner_padding		= { 1, 1, 1, 1 }
						recolor "#ff0000"	= "#ffa000"
						saturation		= 1.5
						width			= 13 px
						height			= 13 px
						dont_clip			= TRUE}
			
			image 50 {	file				= "images/check_and_radio/radio_focus2.png"
						recolor "#ff0000"	= "#ffffff"
						opacity			= 0.7
						width			= 13 px
						height			= 13 px
						dont_clip			= TRUE }
		}
		
		group "radiobutton_prelight_checked" = "radiobutton_prelight"
		{	
			shadow						= IN
			
			image 30 {	file				= "images/check_and_radio/radio_check1.png"
						recolor "#ff0000"	= "#1FA61F"
						inner_padding		= { 4, 4, 4, 4 }
						width			= 13 px
						height			= 13 px
						dont_clip			= TRUE }
			image 31 {	file				= "images/check_and_radio/radio_check2.png"
						recolor "#ff0000"	= "#1FA61F"
						brightness		= 0.2
						inner_padding		= { 4, 4, 4, 4 }
						width			= 13 px
						height			= 13 px
						dont_clip			= TRUE }
		}
		
		group "radiobutton_prelight_nostate" = "radiobutton_prelight_checked"
		{	
			shadow						= ETCHED_IN
			
			image 30 {	opacity			= 0.8
						inner_padding		= { 3, 3, 3, 3 } }
			image 31 {	dont_draw		= TRUE }
		}

		group "radiobutton_insensitive" = "radiobutton_normal"
		{	
			state						= INSENSITIVE
			opacity						= 0.5
		}
		
		group "radiobutton_insensitive_checked" = "radiobutton_normal_checked"
		{	
			state						= INSENSITIVE
			opacity						= 0.5
		}
		
		group "radiobutton_insensitive_nostate" = "radiobutton_normal_nostate"
		{	
			state						= INSENSITIVE
			opacity						= 0.5
		}
		
	}	
}



##########
# In Menus, Lists and the such
##########

style "checkradiobuttons_menuandlist"
{
	GtkRadioMenuItem::indicator_size			= 13
	GtkCheckMenuItem::indicator_size			= 13
	GtkRadioButton::indicator_size			= 13
	GtkCheckButton::indicator_size			= 13
	
	engine "experience"
	{
		group "checkbutton_list_focus" = "checkbutton_normal"
		{
			property "has-focus"					= TRUE
			dont_clip						= TRUE
			padding						= { -10, -10, -10, -10 }
		}
		
		group "checkbutton_list_focus_checked" = "checkbutton_normal_checked"
		{
			property "has-focus"					= TRUE
			dont_clip						= TRUE
			padding						= { -10, -10, -10, -10 }
		}

		group "checkbutton_list_focus_nostate" = "checkbutton_normal_nostate"
		{
			property "has-focus"					= TRUE
			dont_clip						= TRUE
			padding						= { -10, -10, -10, -10 }
		}
		
		group "checkbutton_list" = "checkbutton_normal"
		{
			state						= PRELIGHT, NORMAL, SELECTED, ACTIVE
			dont_clip						= TRUE
			padding						= { -10, -10, -10, -10 }
		}
		
		group "checkbutton_list_checked" = "checkbutton_normal_checked"
		{
			state						= PRELIGHT, NORMAL, SELECTED,ACTIVE
			dont_clip						= TRUE
			padding						= { -10, -10, -10, -10 }
		}
		
		group "checkbutton_list_nostate" = "checkbutton_normal_nostate"
		{
			state						= PRELIGHT, NORMAL, SELECTED,ACTIVE
			dont_clip						= TRUE
			padding						= { -10, -10, -10, -10 }
		}


		group "radiobutton_list_focus" = "radiobutton_normal"
		{
			property "has-focus"					= TRUE
			dont_clip						= TRUE
			padding						= { -10, -10, -10, -10 }
		}
		
		group "radiobutton_list_focus_checked" = "radiobutton_normal_checked"
		{
			property "has-focus"					= TRUE
			dont_clip						= TRUE
			padding						= { -10, -10, -10, -10 }
		}

		group "radiobutton_list_focus_nostate" = "radiobutton_normal_nostate"
		{
			property "has-focus"					= TRUE
			dont_clip						= TRUE
			padding						= { -10, -10, -10, -10 }
		}
		
		group "radiobutton_list" = "radiobutton_normal"
		{
			state						= PRELIGHT, NORMAL, SELECTED, ACTIVE
			dont_clip						= TRUE
			padding						= { -10, -10, -10, -10 }
		}
		
		group "radiobutton_list_checked" = "radiobutton_normal_checked"
		{
			state						= PRELIGHT, NORMAL, SELECTED,ACTIVE
			dont_clip						= TRUE
			padding						= { -10, -10, -10, -10 }
		}
		
		group "radiobutton_list_nostate" = "radiobutton_normal_nostate"
		{
			state						= PRELIGHT, NORMAL, SELECTED,ACTIVE
			dont_clip						= TRUE
			padding						= { -10, -10, -10, -10 }
		}

	}
}
