#
# microGUI theme from sawfish
#  the close button was moved to the left to prevent accidental closes when
#  attempting to iconify.  additionally (subtractionally?) there is no menu
#  button.
#

forplug	"start_slide"	"forplug/start_slide/rc";
forplug "pier"		"forplug/pier/rc";
forplug "pager"		"forplug/pager/rc";

style {
	title_font	"fixed";

	#
	# declare our pixmaps.  identifiers must be unique and uppercase.
	#
	pixmaps {
		BAR_VERT		"bar_vert.xpm";
		BAR_LTOP		"bar_left_top.xpm";
		BAR_LTOP_UNF		"bar_left_top_unfoc.xpm";
		BOT_NEAR		"bottom_near.xpm";
		BOT			"bottom.xpm";
		BOT_FAR			"bottom_far.xpm";
		TOP_NEAR		"top_near.xpm";
		TOP_NEAR_UNF		"top_near_unfoc.xpm";
		TOP_BLUE		"top_blue.xpm";
		TOP_BLUE_UNF		"top_blue_unfoc.xpm";
		TOP_BLUE2WHITE		"top_bluetowhite.xpm";
		TOP_BLUE2WHITE_UNF	"top_bluetowhite_unfoc.xpm";
		TOP_WHITE		"top_white.xpm";
		TOP_FAR			"top_far.xpm";
		CLOSE			"close.xpm";
		CLOSE_CLICKED		"close_clicked.xpm";
		CLOSE_UNF		"close_unfoc.xpm";
		ICON			"minimize.xpm";
		ICON_CLICKED		"minimize_clicked.xpm";
		ICON_UNF		"minimize_unfoc.xpm";
		ZOOM			"maximize.xpm";
		ZOOM_CLICKED		"maximize_clicked.xpm";
		ZOOM_UNF		"maximize_unfoc.xpm";

		TRANS_TOPFAR		"transient_top_far.xpm";
		TRANS_TOPNEAR		"transient_top_near.xpm";
		TRANS_TOP		"transient_top.xpm";
	}
	decoration {
		#
		# left and right
		#
		DLR1	dec_full dec_right 0 0 0 0 0
				false false
				act_resize act_resize act_resize
				BAR_VERT BAR_VERT;
		DLR2	dec_full dec_left 8 -8 0 0 0
				false false
				act_resize act_resize act_resize
				BAR_VERT BAR_VERT;
		DLR3	dec_near dec_left 0 0 0 0 0
				false false
				act_move act_resize act_resize
				BAR_LTOP_UNF BAR_LTOP;
		DLTRANS	dec_full dec_left 0 0 0 0 0
				false false
				act_resize act_resize act_resize
				BAR_VERT BAR_VERT;

		#
		# the bottom
		#
		DB1	dec_near dec_bottom 0 0 0 0 0
				false false
				act_resize act_resize act_resize
				BOT_NEAR BOT_NEAR;
		DB2	dec_full dec_bottom 5 -10 0 0 0
				false false
				act_resize act_resize act_resize
				BOT BOT;
		DB3	dec_far dec_bottom 0 0 0 0 0
				false false
				act_resize act_resize act_resize
				BOT_FAR BOT_FAR;

		#
		# the top bar (we make the blue part take a third, in sawfish
		# it's the title text's length; golem can't do that yet)
		#
		DT1	dec_near dec_top 0 0 0 0 0
				false false
				act_move act_resize act_resize
				TOP_NEAR_UNF TOP_NEAR;
		DT2	dec_near dec_top 23 -23 0 0 0.3
				false false
				act_move act_resize act_resize
				TOP_BLUE_UNF TOP_BLUE;
		DT3	dec_near dec_top 0 0 0 0.3 0
				false false
				act_move act_resize act_resize
				TOP_BLUE2WHITE_UNF TOP_BLUE2WHITE;
		DT4	dec_near dec_top 22 -55 0 0.3 0.7
				false false
				act_move act_resize act_resize
				TOP_WHITE TOP_WHITE;
		DT5	dec_far dec_top 0 0 0 0 0
				false false
				act_move act_resize act_resize
				TOP_FAR TOP_FAR;

		#
		# top bar for transients
		#
		DTTRAN1	dec_near dec_top 0 0 0 0 0
				false false
				act_move act_resize act_resize
				TRANS_TOPNEAR TRANS_TOPNEAR;
		DTTRAN2	dec_full dec_top 5 -10 0 0 0
				false false
				act_move act_resize act_resize
				TRANS_TOP TRANS_TOP;
		DTTRAN3	dec_far dec_top 0 0 0 0 0
				false false
				act_move act_resize act_resize
				TRANS_TOPFAR TRANS_TOPFAR;
		
		#
		# top bar buttons
		#
		DBUT1	dec_near dec_top 8 0 0 0 0
				false true
				act_delete act_delete act_delete
				CLOSE_UNF CLOSE CLOSE_CLICKED;
		DBUT2	dec_far dec_top -7 0 0 0 0
				false true
				act_iconify act_iconify act_iconify
				ICON_UNF ICON ICON_CLICKED;
		DBUT3	dec_far dec_top -22 0 0 0 0
				false true
				act_zoom act_zoom act_zoom
				ZOOM_UNF ZOOM ZOOM_CLICKED;

		groups {
			DEFAULT	
					DLR1 DLR2 DLR3 DB1 DB2 DB3
					DBUT1 DBUT2 DBUT3
					DT1 DT2:title:5:3 DT3 DT4 DT5;
			TRANSIENT
					DLR1 DB1 DB2 DB3
					DLTRANS
					DTTRAN1 DTTRAN2 DTTRAN3;

			default		DEFAULT;
			transient	TRANSIENT;
			internal	TRANSIENT;
		}
	}
}
