Re: FVWM: fvwm2rc syntax question

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Tue, 21 Oct 2003 18:16:53 +0300

On 21 Oct 2003 09:26:15 -0400, Dheeraj Reddy wrote:
>
> I am wondering what the difference is between the following two ?
> The first one gives me the desired result but the second one doesn;t.
>
>
> #####################################
> ButtonStyle 1 Active (VGradient 64 rgb:5a/6d/c5 rgb:4a/59/a5) \
> Inactive (VGradient 64 rgb:93/a1/a8 rgb:7c/8c/93) \
> (-- flat)
> AddButtonStyle 1 Pixmap iconify.xbm
> ButtonStyle 2 Active (VGradient 64 rgb:5a/6d/c5 rgb:4a/59/a5) \
> Inactive (VGradient 64 rgb:93/a1/a8 rgb:7c/8c/93) \
> (-- flat)
> AddButtonStyle 2 Pixmap close.xbm
> ButtonStyle 4 Active (VGradient 64 rgb:5a/6d/c5 rgb:4a/59/a5) \
> Inactive (VGradient 64 rgb:93/a1/a8 rgb:7c/8c/93) \
> (-- flat)
> AddButtonStyle 4 Pixmap max.xbm
> #####################################
>
> AND
>
> ##########################################
> #ButtonStyle 1 Pixmap iconify.xbm
> #ButtonStyle 2 Pixmap close.xbm
> #ButtonStyle 4 Pixmap max.xbm
> #AddButtonStyle AllActive (VGradient 64 rgb:5a/6d/c5 rgb:4a/59/a5) \
> # AllInactive (VGradient 64 rgb:93/a1/a8 rgb:7c/8c/93) \
> #AddButtonStyle All -- Flat
> ##########################################

VGradient is destructive style and Pixmap is partially destructive,
so the order of applying both using AddButtonStyle matters.

Also ButtonStyle or AddButtonStyle require the button number or "All",
so your second example is incorrect (it misses "All").

Also I suppose you use 2.5.x, because 2.4.x does not have shortcuts
AllActive/AllInactive.

The correct config for 2.5.x would be:

ButtonStyle All \
        AllActive (VGradient 64 rgb:5a/6d/c5 rgb:4a/59/a5 -- flat) \
        AllInactive (VGradient 64 rgb:93/a1/a8 rgb:7c/8c/93 -- flat)
AddButtonStyle 1 Pixmap iconify.xbm
AddButtonStyle 2 Pixmap close.xbm
AddButtonStyle 4 Pixmap max.xbm

If you need more correct examples, take a look at fvwm-themes configs.

Regards,
Mikhael.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Tue Oct 21 2003 - 10:19:27 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:55 BST