# 1. Icon related configuration
# 2. Switch functions
# 3. Theme module menus
# 4. Modules configuration

# ----------------------------------------------------------------------------
# Icon related configuration

Style "*" IconBox screen w 10 6 -400 -100, IconGrid 64 14, IconFill left top
Style "*" SlipperyIcon, IconTitle

# ----------------------------------------------------------------------------
# Switch functions

DestroyFunc FuncFvwmStartThemeModules
AddToFunc   FuncFvwmStartThemeModules
+ I FuncFvwmStartChosenIconMan
+ I FuncFvwmStartChosenButtons
+ I FuncFvwmStartChosenPager
+ I FuncFvwmStartNormalIcons

DestroyFunc FuncFvwmReloadThemeModules
AddToFunc   FuncFvwmReloadThemeModules
+ I Read $./styles
+ I FuncFvwmStartNormalIcons

DestroyFunc FuncFvwmReloadColorsModules
AddToFunc   FuncFvwmReloadColorsModules
+ I FuncFvwmStartChosenButtons

DestroyFunc FuncFvwmStopThemeModules
AddToFunc   FuncFvwmStopThemeModules
+ I FuncFvwmStopModuleByAlias FvwmButtons FvwmButtons-Default
+ I FuncFvwmStopModuleByAlias FvwmButtons FvwmButtons-DaLo
+ I FuncFvwmStopModuleByAlias FvwmPager FvwmPager-Desker
+ I KillModule FvwmWinList
+ I DestroyModuleConfig FvwmButtons-Default: *
+ I DestroyModuleConfig FvwmButtons-DaLo: *
+ I DestroyModuleConfig FvwmPager-Single: *
+ I DestroyModuleConfig FvwmPager-Desker: *
+ I DestroyModuleConfig FvwmIconMan*
+ I DestroyModuleConfig FvwmWinList*
+ I DestroyFunc FuncFvwmButtonsSwitch
+ I DestroyFunc FuncFvwmStartChosenIconMan
+ I DestroyFunc FuncFvwmStartChosenButtons
+ I DestroyFunc FuncFvwmStartChosenPager
+ I DestroyFunc FuncFvwmStartNormalIcons
+ I FuncFvwmDestroyModulesThemeStyle
+ I DestroyFunc FuncFvwmDestroyModulesThemeStyle

DestroyFunc FuncFvwmUnReloadColorsModules
AddToFunc   FuncFvwmUnReloadColorsModules
+ I FuncFvwmStopModuleByAlias FvwmButtons FvwmButtons-Default
+ I FuncFvwmStopModuleByAlias FvwmButtons FvwmButtons-DaLo

DestroyFunc FuncFvwmUnReloadThemeModules
AddToFunc   FuncFvwmUnReloadThemeModules

# ----------------------------------------------------------------------------
# Theme module menus

DestroyMenu MenuFvwmStartThemeModules
AddToMenu   MenuFvwmStartThemeModules "Awol Modules" Title
+ "%menu/item.xpm%Standard &Buttons"    FuncFvwmButtonsSwitch FvwmButtons-Default
+ "%menu/item.xpm%&Dali \& kLo Buttons" FuncFvwmButtonsSwitch FvwmButtons-DaLo
+ "%menu/item.xpm%&Desker" FuncFvwmRestartModuleByAlias FvwmPager FvwmPager-Desker '-7 7'
#+ "" Nop
#+ "%menu/choice-no.xpm%No normal icons" Style * NoIcon
#+ "%menu/choice-yes.xpm%Normal icons"   Read themes/default/settings/iconstyles/style-icon-miniicon

DestroyMenu MenuFvwmStopThemeModules
AddToMenu   MenuFvwmStopThemeModules "Awol Modules" Title
+ "%menu/quit.xpm%Stop &Buttons" KillModule FvwmButtons
+ "%menu/quit.xpm%Stop &Desker"  FuncFvwmStopModuleByAlias FvwmPager FvwmPager-Desker

#-----------------------------------------------------------------------------
# Functions

DestroyFunc FuncFvwmButtonsSwitch
AddToFunc   FuncFvwmButtonsSwitch
+ I FuncFvwmStopModuleByAlias FvwmButtons FvwmButtons-Default
+ I FuncFvwmStopModuleByAlias FvwmButtons FvwmButtons-DaLo
+ I FvwmButtons $0

# ----------------------------------------------------------------------------
# Modules configuration

Read $./styles
Read $./FvwmButtons-Default
Read $./FvwmButtons-DaLo
Read $./FvwmPager
Read $./FvwmIconMan
Read $./fonts

