Discussion:
FVWM: rounded corners in fvwmbuttons
James Griffin
2013-08-28 09:14:28 UTC
Permalink
Hi

I have a clock (rclock) in my tool bar which is fvwmbuttons and the clock
sits in its button as a square/rectangle. I wondered if there is a way to
get the corners of this button to be rounded.

Perhaps it need to be a pixmap that is shaped to have rounded corners and
the clock sits under it but shows through the transparent middle (if you
see what I mean?).

Thanks, Jamie.
--
James Griffin: jmz at kontrol.kode5.net

A4B9 E875 A18C 6E11 F46D B788 BEE6 1251 1D31 DC38
Thomas Adam
2013-08-28 09:22:01 UTC
Permalink
Post by James Griffin
Hi
I have a clock (rclock) in my tool bar which is fvwmbuttons and the clock
sits in its button as a square/rectangle. I wondered if there is a way to
get the corners of this button to be rounded.
Use XShaping to do this; you can apply a pixmap mask to FvwmButtons to
get this effect.

-- Thomas Adam
James Griffin
2013-08-28 09:29:34 UTC
Permalink
Post by Thomas Adam
Post by James Griffin
Hi
I have a clock (rclock) in my tool bar which is fvwmbuttons and the clock
sits in its button as a square/rectangle. I wondered if there is a way to
get the corners of this button to be rounded.
Use XShaping to do this; you can apply a pixmap mask to FvwmButtons to
get this effect.
-- Thomas Adam
Thanks Thomas. I've had a google but not much there, could you give me an
example? -- pleeaase :-)
--
James Griffin: jmz at kontrol.kode5.net

[A4B9 E875 A18C 6E11 F46D B788 BEE6 1251 1D31 DC38]
Thomas Adam
2013-08-28 09:37:44 UTC
Permalink
Post by James Griffin
Post by Thomas Adam
Post by James Griffin
Hi
I have a clock (rclock) in my tool bar which is fvwmbuttons and the clock
sits in its button as a square/rectangle. I wondered if there is a way to
get the corners of this button to be rounded.
Use XShaping to do this; you can apply a pixmap mask to FvwmButtons to
get this effect.
-- Thomas Adam
Thanks Thomas. I've had a google but not much there, could you give me an
example? -- pleeaase :-)
Is Google considered a verb nowadays?

You need to define your own XPM pixmap which is rounded to however you want;
use inkscape or The Gimp to produce such a file. Then you'll need to define
a Colorset to be applied to the FvwmButtons instance containing this clock,
such as:

Colorset 12 Shape some_pixmap.xpm

Then you apply that as a style to your FvwmButtons:

*SomeFvwmButtonsInstance: Colorset 12

Read the FvwmTheme man page for more information.

-- Thomas Adam
James Griffin
2013-08-28 09:43:10 UTC
Permalink
Post by Thomas Adam
Post by James Griffin
Post by Thomas Adam
Post by James Griffin
Hi
I have a clock (rclock) in my tool bar which is fvwmbuttons and the clock
sits in its button as a square/rectangle. I wondered if there is a way to
get the corners of this button to be rounded.
Use XShaping to do this; you can apply a pixmap mask to FvwmButtons to
get this effect.
-- Thomas Adam
Thanks Thomas. I've had a google but not much there, could you give me an
example? -- pleeaase :-)
Is Google considered a verb nowadays?
Yes, I believe it is. ;-)
Post by Thomas Adam
You need to define your own XPM pixmap which is rounded to however you want;
use inkscape or The Gimp to produce such a file. Then you'll need to define
a Colorset to be applied to the FvwmButtons instance containing this clock,
Colorset 12 Shape some_pixmap.xpm
*SomeFvwmButtonsInstance: Colorset 12
Read the FvwmTheme man page for more information.
-- Thomas Adam
Got that. I did think it would involve creating a pixmap, so thanks.
That's much clearer.

Jamie.
--
James Griffin: jmz at kontrol.kode5.net

[A4B9 E875 A18C 6E11 F46D B788 BEE6 1251 1D31 DC38]
Jesús J. Guerrero Botella
2013-08-29 18:45:26 UTC
Permalink
Not that I am a fan of roundness, but you can check pem's config,
which as far as I remember makes intensive use of roundness. I don't
remember if it is patch or pixmap-dependent, though.

http://pemarchandet.free.fr/fvwm.html
Post by James Griffin
Post by Thomas Adam
Post by James Griffin
Post by Thomas Adam
Post by James Griffin
Hi
I have a clock (rclock) in my tool bar which is fvwmbuttons and the clock
sits in its button as a square/rectangle. I wondered if there is a way to
get the corners of this button to be rounded.
Use XShaping to do this; you can apply a pixmap mask to FvwmButtons to
get this effect.
-- Thomas Adam
Thanks Thomas. I've had a google but not much there, could you give me an
example? -- pleeaase :-)
Is Google considered a verb nowadays?
Yes, I believe it is. ;-)
Post by Thomas Adam
You need to define your own XPM pixmap which is rounded to however you want;
use inkscape or The Gimp to produce such a file. Then you'll need to define
a Colorset to be applied to the FvwmButtons instance containing this clock,
Colorset 12 Shape some_pixmap.xpm
*SomeFvwmButtonsInstance: Colorset 12
Read the FvwmTheme man page for more information.
-- Thomas Adam
Got that. I did think it would involve creating a pixmap, so thanks.
That's much clearer.
Jamie.
--
James Griffin: jmz at kontrol.kode5.net
[A4B9 E875 A18C 6E11 F46D B788 BEE6 1251 1D31 DC38]
--
Jesús Guerrero Botella
James Griffin
2013-08-29 19:39:11 UTC
Permalink
Post by Jesús J. Guerrero Botella
Not that I am a fan of roundness, but you can check pem's config,
which as far as I remember makes intensive use of roundness. I don't
remember if it is patch or pixmap-dependent, though.
http://pemarchandet.free.fr/fvwm.html
Thanks for providing the link. It's only for one item, but i've decided
to use xclock instead so it doesn't change colour when mail arrives and
make the square shape stand out.

Thomas' information is more accurate; a pixmap is needed for the look I
was trying to achieve.
--
James Griffin: jmz at kontrol.kode5.net

[A4B9 E875 A18C 6E11 F46D B788 BEE6 1251 1D31 DC38]
Loading...