I’m having sort of a problem with the Toggled ButtonStyle options not obeying definitions. I’m wondering if I’ve done something wrong.
Here’s the relevant
Colorset 0 VGradient 128 honeydew3 honeydew4, \
bg honeydew4, fg darkslategrey, hi cornsilk2, \
sh honeydew4, fgsh rgb:99/99/cc
Colorset 1 VGradient 128 cornsilk2 rgb:99/99/cc, \
bg rgb:99/99/cc, fg darkslategrey, hi grey, \
sh darkslategrey, fgsh rgb:99/99/cc
ButtonStyle 1 - MwmDecorMenu
ButtonStyle 2 - Clear
ButtonStyle 3 - MwmDecorShade
ButtonStyle 4 - MwmDecorMax
ButtonStyle 5 - MwmDecorStick
ButtonStyle 6 - MwmDecorMin
ButtonStyle All InActive (Colorset 0, Pixmap tr.png) \
Active (Colorset 1, Pixmap tr.png)
AddButtonStyle 1 InActive (Colorset 0, Pixmap tr.png) \
Active (MiniIcon)
AddButtonStyle 2 Inactive (Colorset 0, Pixmap tr.png) \
Active (Pixmap mini.x2.xpm)
AddButtonStyle 3 Inactive (Colorset 0, Pixmap tr.png) \
Active (Pixmap mini.shade1.xpm)
AddButtonStyle 4 Inactive (Colorset 0, Pixmap tr.png) \
Active (Pixmap mini.resize3.xpm)
AddButtonStyle 5 Inactive (Colorset 0, Pixmap tr.png) \
Active (Pixmap mini.stick.xpm)
AddButtonStyle 6 Inactive (Colorset 0, Pixmap tr.png) \
Active (Pixmap mini.iconify1.xpm)
AddButtonStyle 2 ToggledInactive (Pixmap mini.x2.xpm) \
ToggledActive (Pixmap mini.x2.xpm)
AddButtonStyle 3 ToggledInactive (Colorset 0) \
ToggledActive (Colorset 1)
AddbuttonStyle 3 ToggledInactive (Pixmap mini.maximize-vert1.xpm) \
ToggledActive (Pixmap mini.maximize-vert1.xpm)
AddButtonStyle 4 ToggledInactive (Colorset 0) \
ToggledActive (Colorset 1)
AddbuttonStyle 4 ToggledInactive (Pixmap mini.maximize1.xpm) \
ToggledActive (Pixmap mini.maximize1.xpm)
AddButtonStyle 5 ToggledInactive (Colorset 0) \
ToggledActive (Colorset 1)
AddbuttonStyle 5 ToggledInactive (Pixmap mini.stickpressed.xpm) \
ToggledActive (Pixmap mini.stickpressed.xpm)
ButtonStyle All -- UseTitleStyle Flat
Titlestyle Active Colorset 1
AddTitleStyle Active MultiPixmap \
Main AdjustedPixmap tr.png, \
LeftOfText AdjustedPixmap tr.png, \
RightOfText AdjustedPixmap tr.png
TitleStyle Active -- Flat
TitleStyle InActive Colorset 0
AddTitleStyle Inactive MultiPixmap \
Main AdjustedPixmap tr.png, \
LeftOfText AdjustedPixmap tr.png, \
RightOfText AdjustedPixmap tr.png
TitleStyle InActive -- Flat
(The tr.png is a 8x8 transparent png with 1px high black line in bottom)
The problem is best described with pictures:
Here a normal window w/o any buttons in Toggled state. Notice the black horizontal line in the bottom of titlebar.
Here you see that the bottom line isn’t there when the button is in Toggled state.
Is this a feature of fvwm, or is there some error in my code?