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 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] 
> AddButtonStyle 1 3 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
> AddButtonStyle 1 3 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
> ButtonStyle 2 3 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
> AddButtonStyle 2 3 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]      
> AddButtonStyle 2 3 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
> ButtonStyle 4 3 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] 
> AddButtonStyle 4 3 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
> AddButtonStyle 4 3 [EMAIL PROTECTED] [EMAIL PROTECTED] 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 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
> 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:

  [EMAIL PROTECTED] [EMAIL PROTECTED]

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 [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to