FuncFvwmDecorBackground

# override the colors titlestyle
TitleStyle \
	ActiveUp   (TiledPixmap $./images/decor/title-activeup.xpm) \
	ActiveDown (TiledPixmap $./images/decor/title-activedown.xpm) \
	Inactive   (TiledPixmap $./images/decor/title-inactive.xpm) \

Style "*" Button 1, Button 2, Button 3, Button 4, Button 6, Button 8
Style "*" FvwmButtons  # button relief does not follow the state

ButtonStyle 1 \
	ActiveUp   (Pixmap $./images/button/options-activeup.xpm) \
	ActiveDown (Pixmap $./images/button/options-activedown.xpm) \
	Inactive   (Pixmap $./images/button/options-inactive.xpm)
ButtonStyle 2 \
	ActiveUp   (Pixmap $./images/button/close-activeup.xpm) \
	ActiveDown (Pixmap $./images/button/close-activedown.xpm) \
	Inactive   (Pixmap $./images/button/close-inactive.xpm)
ButtonStyle 3 \
	ActiveUp   (Pixmap $./images/button/titleleft-activeup.xpm) \
	ActiveDown (Pixmap $./images/button/titleleft-activedown.xpm) \
	Inactive   (Pixmap $./images/button/titleleft-inactive.xpm)
ButtonStyle 4 \
	ActiveUp   (Pixmap $./images/button/maximize-activeup.xpm) \
	ActiveDown (Pixmap $./images/button/maximize-activedown.xpm) \
	Inactive   (Pixmap $./images/button/maximize-inactive.xpm)
ButtonStyle 6 \
	ActiveUp   (Pixmap $./images/button/iconify-activeup.xpm) \
	ActiveDown (Pixmap $./images/button/iconify-activedown.xpm) \
	Inactive   (Pixmap $./images/button/iconify-inactive.xpm)
ButtonStyle 8 \
	ActiveUp   (Pixmap $./images/button/titleright-activeup.xpm) \
	ActiveDown (Pixmap $./images/button/titleright-activedown.xpm) \
	Inactive   (Pixmap $./images/button/titleright-inactive.xpm)

ButtonStyle All - Clear
ButtonStyle 1 - MWMDecorMenu
ButtonStyle 4 - MWMDecorMax
ButtonStyle 6 - MWMDecorMin

TitleStyle	Height 15

#     button	context	modifie	function
Mouse 1 	1	A	FuncFvwmWindowOpsOrAction Delete
MouseXX 2 3	1	A       Menu MenuFvwmWindowMove
MouseXX 3 2	1	A	Menu MenuFvwmWindowGroupOps
Mouse 0 	2	A	FuncFvwmDeleteOrDestroy
Mouse 1 	4	A	FuncFvwmMaximize
Mouse 2 	4	A	FuncFvwmMaximizeVertically
Mouse 3 	4	A	FuncFvwmMaximizeHorizontally
Mouse 1 	4	S	Maximize grow grow
Mouse 2 	4	S	Maximize    0 grow
Mouse 3 	4	S	Maximize grow    0
Mouse 0 	6	A	FuncFvwmIconify
Mouse 0 	1	CM	FuncFvwmShowButtonInfo "Mouse 1 - Window Ops menu, or Delete on double click^nMouse 2/3 - Move menu^nMouse 3/2 - Resource Group menu"
Mouse 0 	2	CM	FuncFvwmShowButtonInfo "Delete on click^nDestroy on double click"
Mouse 0 	4	CM	FuncFvwmShowButtonInfo "Mouse 1 - Maximize:^n^tfully on click^n^tmenu on double click^nMouse 2 - Maximize vertically^nMouse 3 - Maximize horizontally^nAll with Shift - Maximize grow"
Mouse 0 	6	CM	FuncFvwmShowButtonInfo "Iconify"
# simulate title bindings on two edge buttons:
FuncFvwmSetTitleBindings 38

DestroyFunc FuncFvwmUnReloadDecor
AddToFunc   FuncFvwmUnReloadDecor

DestroyFunc FuncFvwmReloadDecor
AddToFunc   FuncFvwmReloadDecor
+ I FuncFvwmDecorBackground
# override the colors titlestyle
+ I TitleStyle \
	ActiveUp   (TiledPixmap $./images/decor/title-activeup.xpm) \
	ActiveDown (TiledPixmap $./images/decor/title-activedown.xpm) \
	Inactive   (TiledPixmap $./images/decor/title-inactive.xpm)
+ I ButtonStyle 1 \
	ActiveUp   (Pixmap $./images/button/options-activeup.xpm) \
	ActiveDown (Pixmap $./images/button/options-activedown.xpm) \
	Inactive   (Pixmap $./images/button/options-inactive.xpm)
+ I ButtonStyle 2 \
	ActiveUp   (Pixmap $./images/button/close-activeup.xpm) \
	ActiveDown (Pixmap $./images/button/close-activedown.xpm) \
	Inactive   (Pixmap $./images/button/close-inactive.xpm)
+ I ButtonStyle 3 \
	ActiveUp   (Pixmap $./images/button/titleleft-activeup.xpm) \
	ActiveDown (Pixmap $./images/button/titleleft-activedown.xpm) \
	Inactive   (Pixmap $./images/button/titleleft-inactive.xpm)
+ I ButtonStyle 4 \
	ActiveUp   (Pixmap $./images/button/maximize-activeup.xpm) \
	ActiveDown (Pixmap $./images/button/maximize-activedown.xpm) \
	Inactive   (Pixmap $./images/button/maximize-inactive.xpm)
+ I ButtonStyle 6 \
	ActiveUp   (Pixmap $./images/button/iconify-activeup.xpm) \
	ActiveDown (Pixmap $./images/button/iconify-activedown.xpm) \
	Inactive   (Pixmap $./images/button/iconify-inactive.xpm)
+ I ButtonStyle 8 \
	ActiveUp   (Pixmap $./images/button/titleright-activeup.xpm) \
	ActiveDown (Pixmap $./images/button/titleright-activedown.xpm) \
	Inactive   (Pixmap $./images/button/titleright-inactive.xpm)

DestroyFunc FuncFvwmOverRideWindowLook
AddToFunc   FuncFvwmOverRideWindowLook
+ I TitleStyle -- flat
+ I ButtonStyle All -- flat

DestroyFunc FuncFvwmStartWindowButtons
AddToFunc   FuncFvwmStartWindowButtons
# This is usually not in this component, but these buttons can't be non-flat
+ I TitleStyle -- flat
+ I ButtonStyle All -- flat

DestroyFunc FuncFvwmStopWindowButtons
AddToFunc   FuncFvwmStopWindowButtons
+ I FuncFvwmRemoveAllButtons
+ I Mouse 1 	1	A	-
+ I Mouse 2	1	A	-
+ I Mouse 3	1	A       -
+ I Mouse 0 	2	A	-
+ I Mouse 1 	4	A	-
+ I Mouse 2 	4	A	-
+ I Mouse 3 	4	A	-
+ I Mouse 1 	4	S	-
+ I Mouse 2 	4	S	-
+ I Mouse 3 	4	S	-
+ I Mouse 0 	6	A	-
+ I Mouse 0 	1	CM	-
+ I Mouse 0 	2	CM	-
+ I Mouse 0 	4	CM	-
+ I Mouse 0 	6	CM	-
+ I FuncFvwmUnsetTitleBindings 38
