<theme name = "Magic Tranparency">
<!--
	Created by nale12
-->
<popup_style file_name="Magic_trans.tar.gz" />
<colors>
	<color1 default="#000000" opacity="50" />
	<color2 default="#e5e5e5" opacity="100" />
	<color3 default="#00ffff" opacity="50" />
	<color4 default="#a9a9a9" opacity="100" />
	<color5 name="Not used" default="#000000" opacity="no" />
</colors>

<pixmaps>
	<pixmap_from_file name="button" file="button.png" />
	<pixmap_from_file name="back" file="back.png" />
	<pixmap_from_file name="badge2" file="badge2.png" />
	<pixmap_from_file name="badge3" file="badge3.png" />
	<pixmap_from_file name="badge4" file="badge4.png" />
	<pixmap_from_file name="badge5" file="badge5.png" />
	<pixmap_from_file name="trans" file="trans.png" />
	<pixmap_from_file name="active" file="active.png" />
	<pixmap_from_file name="mask" file="mask.png" />
	<pixmap_from_file name="mask2" file="mask2.png" />
</pixmaps>

<button_pixmap gap = "5" aspect_ratio="60/40" aspect_ratio_v="60/40" windows_cnt="5">
	<if size="36:">
		<get_icon size="-10" />
	</if>
	<if size=":35">
		<get_icon size="-7" />
	</if>
	<correct_size />
	<!-- Moving the blink and needs attention up here so that the lowering effect is 
	     only affecting the icon and not the whole button. -->
	<if type="blink">
		<composite bg="trans" fg="self" yoffset="-5"/>
	</if>
	<if type="needs_attention">
		<composite bg="trans" fg="self" yoffset="-5"/>
	</if>

	<if type="!launcher">
	<if type="!mouse_over">
	<if type="!launching">
		<!-- For one or more window. -->
		<if windows="1:">
			<!-- Use a mask to make the lower part of the icon transparent. 
			     Parts that are transparent (or semi-transparent) in the "mask" pixmap will be
			     transparent (or semi-transparent) on the icon. -->
			<alpha_mask mask="mask" />
		</if>
		<if windows="1">
			<if type="!active">
				<composite bg="back" fg="self" />
				<composite bg="self" fg="button" />
			</if>
			<if type="active">
				<composite bg="back" fg="self" />
				<composite bg="self" fg="button" />
				<composite bg="self" fg="active" />

			</if>
		</if>
		<if windows="2">
			<if type="!active">
				<composite bg="back" fg="self" />
				<composite bg="badge2" fg="self" />
				<composite bg="self" fg="button" />
			</if>
			<if type="active">
				<composite bg="back" fg="self" />
				<composite bg="badge2" fg="self" />
				<composite bg="self" fg="button" />
				<composite bg="self" fg="active" />
			</if>
		</if>
		<if windows="3">
			<if type="!active">
				<composite bg="back" fg="self" />
				<composite bg="badge3" fg="self" />
				<composite bg="self" fg="button" />
			</if>
			<if type="active">
				<composite bg="back" fg="self" />
				<composite bg="badge3" fg="self" />
				<composite bg="self" fg="button" />
				<composite bg="self" fg="active" />
			</if>
		</if>
		<if windows="4">
			<if type="!active">
				<composite bg="back" fg="self" />
				<composite bg="badge4" fg="self" />
				<composite bg="self" fg="button" />
			</if>
			<if type="active">
				<composite bg="back" fg="self" />
				<composite bg="badge4" fg="self" />
				<composite bg="self" fg="button" />
				<composite bg="self" fg="active" />
			</if>
		</if>
		<if windows="5">
			<if type="!active">
				<composite bg="back" fg="self" />
				<composite bg="badge5" fg="self" />
				<composite bg="self" fg="button" />
			</if>
			<if type="active">
				<composite bg="back" fg="self" />
				<composite bg="badge5" fg="self" />
				<composite bg="self" fg="button" />
				<composite bg="self" fg="active" />
			</if>
		</if>
	</if>
	</if>
	</if>
	<if type="mouse_over">
		<!-- These lines does nothing (I think)
		<if type="launching">
			<composite bg="trans" fg="self" />
		</if>	
		<if type="launcher">
			<composite bg="trans" fg="self" />
		</if>-->
		<!-- making an empty pixmap (no need to add a completely transparent picture to the file for that) -->
		<pixmap name="empty" />

		<!-- It's probably not necessary to use a pixmap here but I wanted to show how simple they are to use since you use none of them in this theme. -->
		<pixmap_from_self name="mo_icon">
			<composite bg="empty" fg="self" yoffset="-5" />
			<alpha_mask mask="mask" />
		</pixmap_from_self>
		<if type="!launcher">
		<if type="!launching">
			<if windows="1">
				<if type="!active">
					<composite bg="back" fg="mo_icon"/>
					<composite bg="self" fg="button" />
				</if>
				<if type="active">
					<composite bg="back" fg="mo_icon"/>
					<composite bg="self" fg="button" />
					<composite bg="self" fg="active" />

				</if>
			</if>
			<if windows="2">
				<if type="!active">
					<composite bg="back" fg="mo_icon"/>
					<composite bg="badge2" fg="self" />
					<composite bg="self" fg="button" />
				</if>
				<if type="active">
					<composite bg="back" fg="mo_icon"/>
					<composite bg="badge2" fg="self" />
					<composite bg="self" fg="button" />
					<composite bg="self" fg="active" />
				</if>
			</if>
			<if windows="3">
				<if type="!active">
					<composite bg="back" fg="mo_icon"/>
					<composite bg="badge3" fg="self" />
					<composite bg="self" fg="button" />
				</if>
				<if type="active">
					<composite bg="back" fg="mo_icon"/>
					<composite bg="badge3" fg="self" />
					<composite bg="self" fg="button" />
					<composite bg="self" fg="active" />
				</if>
			</if>
			<if windows="4">
				<if type="!active">
					<composite bg="back" fg="mo_icon"/>
					<composite bg="badge4" fg="self" />
					<composite bg="self" fg="button" />
				</if>
				<if type="active">
					<composite bg="back" fg="mo_icon"/>
					<composite bg="badge4" fg="self" />
					<composite bg="self" fg="button" />
					<composite bg="self" fg="active" />
				</if>
			</if>
			<if windows="5">
				<if type="!active">
					<composite bg="back" fg="mo_icon"/>
					<composite bg="badge5" fg="self" />
					<composite bg="self" fg="button" />
				</if>
				<if type="active">
					<composite bg="back" fg="mo_icon"/>
					<composite bg="badge5" fg="self" />
					<composite bg="self" fg="button" />
					<composite bg="self" fg="active" />
				</if>
			</if>
		</if>
		</if>
	</if>
	<if type="launching">
		<if windows="0">
			<composite bg="trans" fg="self" yoffset="5"/>
		</if>
		<if windows="1">
			<alpha_mask mask="mask2" />
			<if type="!active">
				<composite bg="back" fg="self"  yoffset="5"/>
				<composite bg="self" fg="button" />
			</if>
			<if type="active">
				<composite bg="back" fg="self" yoffset="5"/>
				<composite bg="self" fg="button" />
				<composite bg="self" fg="active" />

			</if>
		</if>
		<if windows="2">
			<alpha_mask mask="mask2" />
			<if type="!active">
				<composite bg="back" fg="self" yoffset="5"/>
				<composite bg="badge2" fg="self" />
				<composite bg="self" fg="button" />
			</if>
			<if type="active">
				<composite bg="back" fg="self" yoffset="5"/>
				<composite bg="badge2" fg="self" />
				<composite bg="self" fg="button" />
				<composite bg="self" fg="active" />
			</if>
		</if>
		<if windows="3">
			<alpha_mask mask="mask2" />
			<if type="!active">
				<composite bg="back" fg="self" yoffset="5"/>
				<composite bg="badge3" fg="self" />
				<composite bg="self" fg="button" />
			</if>
			<if type="active">
				<composite bg="back" fg="self" yoffset="5"/>
				<composite bg="badge3" fg="self" />
				<composite bg="self" fg="button" />
				<composite bg="self" fg="active" />
			</if>
		</if>
		<if windows="4">
			<alpha_mask mask="mask2" />
			<if type="!active">
				<composite bg="back" fg="self" yoffset="5"/>
				<composite bg="badge4" fg="self" />
				<composite bg="self" fg="button" />
			</if>
			<if type="active">
				<composite bg="back" fg="self" yoffset="5"/>
				<composite bg="badge4" fg="self" />
				<composite bg="self" fg="button" />
				<composite bg="self" fg="active" />
			</if>
		</if>
		<if windows="5:">
			<alpha_mask mask="mask2" />
			<if type="!active">
				<composite bg="back" fg="self" yoffset="5"/>
				<composite bg="badge5" fg="self" />
				<composite bg="self" fg="button" />
			</if>
			<if type="active">
				<composite bg="back" fg="self" yoffset="5"/>
				<composite bg="badge5" fg="self" />
				<composite bg="self" fg="button" />
				<composite bg="self" fg="active" />
			</if>
		</if>
	</if>


</button_pixmap>
</theme>
