On 19 Oct 2002 20:18:05 +0200, Marcus Lundblad wrote:
>
> I was defining 4Dwm-like buttons.
>
> So a maximise button would look something like this (presuming you have
> fixed font, run pine :-))
>
> #############
> # ##
> # ##
> # ##
> # ##
> ##############
> #############
>
> I don't find a way to do this properly, since those "offsets" should be a
> fixed distance (1 pixel).
>
> I made the following definitions:
>
> ButtonStyle 1 3 23x58_at_2 77x58_at_2 77x42_at_2
> AddButtonStyle 1 3 23x58_at_2 23x42_at_2 77x42_at_2
> AddButtonStyle 1 3 82x47_at_2 82x60_at_2 28x60_at_2
> ButtonStyle 2 3 20x75_at_2 75x75_at_2 75x20_at_2
> AddButtonStyle 2 3 20x75_at_2 20x20_at_2 75x20_at_2
> AddButtonStyle 2 3 80x30_at_2 80x80_at_2 30x80_at_2
> ButtonStyle 4 3 42x58_at_2 58x58_at_2 58x42_at_2
> AddButtonStyle 4 3 42x58_at_2 42x42_at_2 58x42_at_2
> AddButtonStyle 4 3 61x47_at_2 61x61_at_2 47x61@
>
> This works well for a certain title bar size.
>
> I guess I could write a script that calculates theese according to font
> size, but it seems a bit teedious.
Yes, this is the only current possibility, write a script.
Or use (transparent) images.
> Is there a better way of doing it?
>
> I would suggest having some option to add an offset to vector definitions.
> Like for example:
>
> AddButtonStyle 1 3 23+1x58+1_at_2 23x42_at_2 77-1x42_at_2
> Where (+1 and -1 is offsets). (Note that these doesn't nessesarily give
> a portion of the above button, I just made it up...)
This is a good idea, that works mostly with offsets -1 and +1.
Another idea that would create a more proportional look is to be able
to fill recangles, not just draw lines, like:
42x58_at_1 r58x42_at_1
Anyway, until someone implements one or another idea, you can't do much.
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 Sat Oct 19 2002 - 13:41:20 BST