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

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

Style "*" IconBox screen w 10 16 -130 700, IconGrid 74 14, IconFill left top
Style "*" SlipperyIcon, IconTitle

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

DestroyFunc FuncFvwmStartThemeModules
AddToFunc   FuncFvwmStartThemeModules
#+ I FuncFvwmStartNormalIcons
+ I Colorset 23 fg $[fg.cs10], bg $[bg.cs10], Transparent, NoShape
+ I Module FvwmButtons FvwmButtons-Panel

DestroyFunc FuncFvwmReloadThemeModules
AddToFunc   FuncFvwmReloadThemeModules
+ I Read $./styles

DestroyFunc FuncFvwmReloadColorsModules
AddToFunc   FuncFvwmReloadColorsModules
+ I Colorset 23 fg $[fg.cs10], bg $[bg.cs10], Transparent, NoShape
+ I Module FvwmButtons FvwmButtons-Panel

DestroyFunc FuncFvwmStopThemeModules
AddToFunc   FuncFvwmStopThemeModules
+ I KillModule FvwmButtons FvwmButtons-Panel
+ I KillModule FvwmButtons FvwmButtons-CentralPanel
+ I KillModule FvwmPager FvwmPager-Single
+ I KillModule FvwmPager FvwmPager-Desker

DestroyFunc FuncFvwmUnReloadColorsModules
AddToFunc   FuncFvwmUnReloadColorsModules
+ I KillModule FvwmButtons FvwmButtons-Panel
+ I KillModule FvwmButtons FvwmButtons-CentralPanel

DestroyFunc FuncFvwmUnReloadThemeModules
AddToFunc   FuncFvwmUnReloadThemeModules

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

DestroyMenu MenuFvwmStartThemeModules
AddToMenu   MenuFvwmStartThemeModules "CDE Modules" Title
+ "%menu/item.xpm%&Panel" FuncFvwmRestartModuleByAlias FvwmButtons FvwmButtons-Panel
#+ "" Nop
#+ "%menu/choice-no.xpm%No normal icons" Style * NoIcon  # needed to use NoIcon modules
#+ "%menu/choice-yes.xpm%Normal icons"   Read themes/default/settings/iconstyles/style-icon-miniicon

DestroyMenu MenuFvwmStopThemeModules
AddToMenu   MenuFvwmStopThemeModules "CDE Modules" Title
+ "%menu/quit.xpm%Stop &Panel" FuncFvwmStopModuleByAlias FvwmButtons FvwmButtons-Panel

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

Read $./styles
Read $./FvwmPager
Read $./fonts
