
#                     /*** fvwm2-ade:  styles ***/

#   /*** Sets up titlebars, buttons, colors, and general styles. ***/

dnl ********************************************************************
dnl * First, macros set in "titlebars.m4" are processed, and the       *
dnl * corresponding TitleStyle settings that will go into the          *
dnl * TitleBars decor are placed into new macros.                      *
dnl ********************************************************************
dnl
define(<<TS1>>,
   ifelse(TITLEGRADIENT, <<N>>, <<Solid >>NORMALBACKGROUND,
          TITLEGRADIENT, <<H>>, <<HGradient 64 black >>NORMALBACKGROUND,
          TITLEGRADIENT, <<V>>, <<VGradient 16 >>NORMALBACKGROUND<< black>>))dnl
dnl
define(<<TS2>>,
   ifelse(TITLEGRADIENT, <<N>>, <<Solid >>HILIGHTBACKGROUND,
          TITLEGRADIENT, <<H>>, <<HGradient 64 black >>HILIGHTBACKGROUND,
          TITLEGRADIENT, <<V>>, <<VGradient 16 >>HILIGHTBACKGROUND<< black>>))dnl
dnl
define(<<TS3>>,
   ifelse(TITLEGRADIENT, <<N>>, <<Solid >>HILIGHTBACKGROUND,
          TITLEGRADIENT, <<H>>, <<HGradient 64 >>HILIGHTBACKGROUND<< black>>,
          TITLEGRADIENT, <<V>>, <<VGradient 16 >>HILIGHTBACKGROUND<< black>>))dnl
dnl
AddToDecor TitleBars
+	ButtonStyle All Inactive (TS1 -- TITLERELIEF)
+	ButtonStyle All ActiveUp (TS2 -- TITLERELIEF)
+	ButtonStyle All ActiveDown (TS3 -- TITLERELIEF)
+	AddButtonStyle MENUBUTTON Inactive MENUBS_INACTIVE
+	AddButtonStyle MENUBUTTON ActiveUp MENUBS_ACTIVEUP
+	AddButtonStyle MENUBUTTON ActiveDown MENUBS_ACTIVEDN
+	AddButtonStyle MAXIBUTTON Inactive MAXIBS_INACTIVE
+	AddButtonStyle MAXIBUTTON ActiveUp MAXIBS_ACTIVEUP
+	AddButtonStyle MAXIBUTTON ActiveDown MAXIBS_ACTIVEDN
+	AddButtonStyle ICONBUTTON Inactive ICONBS_INACTIVE
+	AddButtonStyle ICONBUTTON ActiveUp ICONBS_ACTIVEUP
+	AddButtonStyle ICONBUTTON ActiveDown ICONBS_ACTIVEDN
+	AddButtonStyle KILLBUTTON Inactive KILLBS_INACTIVE
+	AddButtonStyle KILLBUTTON ActiveUp KILLBS_ACTIVEUP
+	AddButtonStyle KILLBUTTON ActiveDown KILLBS_ACTIVEDN
+	AddButtonStyle All -- BUTTONRELIEF
+	TitleStyle TITLEJUSTIFY
+	TitleStyle Inactive (TS1 -- TITLERELIEF)
+	TitleStyle ActiveUp (TS2 -- TITLERELIEF)
+	TitleStyle ActiveDown (TS3 -- TITLERELIEF)
+	HilightColor HILIGHTFOREGROUND HILIGHTBACKGROUND
+	WindowFont WINDOWFONT

#/*********************************************************************
# * The five settings that follow MenuStyle are, in order, foreground *
# * (text) color, background color, shadow color (rarely used), and   *
# * mwm vs. fvwm style.  The macros used are defined in "colors.m4"   *
# * and "fonts.m4".                                                   *
# *********************************************************************/

MenuStyle TOOLSFOREGROUND TOOLSBACKGROUND MENUSHADOW MENUFONT mwm

#/************************************************
# * The ICONFONT macro is defined in "fonts.m4". *
# ************************************************/

IconFont ICONFONT

#/*********************************************************************
# * The following style settings are applied to all windows by        *
# * default.                                                          *
# *                                                                   *
# *     * The TitleBars decor, defined above, defines window          *
# *       colors, buttons, and fonts.                                 *
# *                                                                   *
# *     * The SloppyFocus style means that a window will not lose     *
# *       the keyboard focus if the mouse cursor is moved out of      *
# *       the window, unless another window is brought into focus     *
# *       by the movement.                                            *
# *                                                                   *
# *     * The IconBox coordinates are, in order, left, top,           *
# *       right, bottom, in pixels.  If positive, they are            *
# *       measured from the upper left corner of the screen.  If      *
# *       negative, they are measured from the lower right corner     *
# *       of the screen.                                              *
# *                                                                   *
# *     * The MWMFunctions and MWMDecor styles make fvwm2 attempt     *
# *       to stick to mwm operation and decoration hints that         *
# *       some apps, whose authors assumed they would always be       *
# *       managed by the Motif window manager, will ask for.          *
# *                                                                   *
# *     * The combination of SmartPlacement and ActivePlacement       *
# *       causes new windows to be automatically placed so that       *
# *       they will not overlap existing windows, if possible.        *
# *       If there is no room for this type of automatic              *
# *       placement, then new windows must be put in place by the     *
# *       user.                                                       *
# *                                                                   *
# *     * The Icon setting is applied to all windows that do not      *
# *       fit any of the icon settings found later in this file.      *
# *                                                                   *
# *     * The DecorateTransient style applies to a certain type       *
# *       of incidental window created by some applications.          *
# *       Without this style, some of these windows (for example,     *
# *       Netscape's download-status window) would have no            *
# *       titlebar or buttons, making them a slight pain when         *
# *       they get in your way or need to be closed by brute          *
# *       force (it happens).                                         *
# *********************************************************************/

Style "*" UseDecor TitleBars
Style "*" SloppyFocus
Style "*" ForeColor NORMALFOREGROUND
Style "*" BackColor NORMALBACKGROUND
Style "*" IconBox 0 0 100 700
Style "*" MWMFunctions, MWMDecor
Style "*" SmartPlacement, ActivePlacement
Style "*" HandleWidth BORDERWIDTH
Style "*" Icon dtapps/unknown1.xpm
Style "*" DecorateTransient

#/*********************************************************************
# * Styles for fvwm2 modules.  The first style is the default, and    *
# * the ones that follow override certain aspects for specific        *
# * modules.                                                          *
# *********************************************************************/

Style "Fvwm*"		NoTitle, NoHandles, Sticky, WindowListSkip
Style "FvwmPager"	Handles, BorderWidth 5, CirculateSkip
Style "FvwmBanner"	StaysOnTop
Style "FvwmButtons"	BorderWidth BORDERWIDTH, CirculateSkip
Style "FvwmIdent"	BorderWidth BORDERWIDTH, CirculateSkip
Style "FvwmIconMan"	BorderWidth BORDERWIDTH, Title
Style "FvwmTalk"	BorderWidth BORDERWIDTH, Title

#/**********************
# * Styles for clocks. *
# **********************/

Style "*clock" NoTitle, NoHandles, Sticky, WindowListSkip, CirculateSkip
Style "*watch" NoTitle, NoHandles, Sticky, WindowListSkip, CirculateSkip

#/******************************************
# * Styles for miscellaneous applications. *
# ******************************************/

Style "date-widgie*"	Notitle, NoHandles, WindowListSkip
Style "xidle"		NoTitle, NoHandles, WindowListSkip
Style "xload"		NoTitle, NoHandles, WindowListSkip
Style "xmem"		NoTitle, NoHandles, WindowListSkip
Style "xsysinfo"        WindowListSkip
Style "xosview"		WindowListSkip
Style "xbiff"		WindowListSkip
Style "xeyes"		NoTitle, NoHandles

#/*********************************************************************
# * Icon settings.  These are used on applications for which no icon  *
# * is defined, or for which the defined icon is a dull bitmap.       *
# *********************************************************************/

Style "nxterm"			Icon iconified/xterm1.xpm
Style "rxvt"			Icon iconified/term.xpm
Style "xterm"			Icon iconified/xterm2.xpm
Style "emacs"			Icon iconified/emacs.xpm
Style "emacs-nox"		Icon iconified/emacs.xpm
Style "jed"			Icon iconified/editor.xpm
Style "XJed"			Icon iconified/editor.xpm
Style "joe"			Icon iconified/editor.xpm
Style "xedit"			Icon iconified/editor.xpm
Style "vi"			Icon iconified/editor.xpm
Style "vim"			Icon iconified/editor.xpm
Style "Vim"			Icon iconified/editor.xpm
Style "Calendar"		Icon iconified/datebook.xpm
Style "bitmap"			Icon dtapps/bitmap.xpm
Style "ghostview"		Icon dtapps/ghostview.xpm
Style "pixmap"			Icon iconified/pixmap.xpm
Style "XDvi"			Icon dtapps/tex-view.xpm
Style "xmag"			Icon dtapps/xmag.xpm
Style "xv"			Icon iconified/xv2.xpm
Style "cdplay"			Icon dtapps/cd1.xpm
Style "XPlaycd"			Icon dtapps/cd1.xpm
Style "xtetris"			Icon iconified/xtetris.xpm
Style "xhextris"		Icon iconified/xhextris.xpm 
Style "xboard"			Icon dtapps/xboard.xpm
Style "xchomp"			Icon iconified/xchomp.xpm
Style "GNU Interactive Tools"	Icon file/fcab.xpm
Style "Midnight Commander"	Icon file/fcab.xpm
Style "xcalc"			Icon iconified/xcalc3.xpm
Style "xclipboard"		Icon dtapps/clipboard.xpm
Style "xman"			Icon iconified/xman2.xpm
Style "Manual Page"		Icon iconified/xman2.xpm
Style "control-panel"		Icon iconified/redhat-logo.xpm
Style "Apache configurator"	Icon iconified/redhat-logo.xpm
Style "*File System Manager"	Icon iconified/redhat-logo.xpm
Style "Installed Packages"	Icon iconified/redhat-logo.xpm
Style "Available Packages"	Icon iconified/redhat-logo.xpm
Style "Help Tool"		Icon iconified/redhat-logo.xpm
Style "Kernel Configurator"	Icon iconified/redhat-logo.xpm
Style "Configure Modem"		Icon iconified/redhat-logo.xpm
Style "Network Configurator"	Icon iconified/redhat-logo.xpm
Style "*Print System Manager"	Icon iconified/redhat-logo.xpm
Style "Time Machine"		Icon iconified/redhat-logo.xpm
Style "*Runlevel Manager"	Icon iconified/redhat-logo.xpm
Style "User Information"	Icon iconified/redhat-logo.xpm
Style "User Mount Tool"		Icon iconified/redhat-logo.xpm
Style "UserNet"			Icon iconified/redhat-logo.xpm
Style "Edit User Definition"	Icon iconified/redhat-logo.xpm
Style "xconsole"		Icon dtapps/console.xpm
Style "*Console"		Icon dtapps/console.xpm
Style "xidle"			Icon iconified/xload.xpm
Style "xload"			Icon iconified/xload.xpm
Style "xmem"			Icon iconified/xload.xpm
Style "top"                     Icon dtapps/chip.xpm
Style "*gramming Environment"	Icon dtapps/widgets.xpm
Style "xxgdb*"			Icon dtapps/xdbx.xpm
Style "elm"			Icon iconified/mail.xpm
Style "exmh"			Icon mail/openletter.xpm
Style "pine"			Icon mail/pinetree1.xpm
Style "xmh"			Icon iconified/mail.xpm
Style "rtin"			Icon iconified/news.xpm
Style "slrn"			Icon iconified/news.xpm
Style "trn"			Icon iconified/news.xpm
Style "XRn"			Icon iconified/news.xpm
Style "fvwm2-ade*"		Icon iconified/fvwm2-ade.xpm
Style "Pager Configuration"	Icon iconified/fvwm2-ade.xpm

Recapture