revig / universal-button-widget

A LCB widget which can be used as a button, as a toggle-button and as a segmented control.
MIT License
8 stars 3 forks source link

Feature request: icon position/gravity #1

Closed stam66 closed 2 years ago

stam66 commented 2 years ago

Dear Ralf, thanks for this excellent widget, there isn't really much at all to fault it. The only missing feature is FileMaker Pro-style positioning of the SVG icon (left/top/right/bottom), akin to gravity on an LC button graphic and I'm hoping you'd consider this feature request... Many thanks, Stam

revig commented 2 years ago

Hi Stam, thanks very much for your request. Now that you write, I think it would actually be good to have the option to place the icon of the widget independently of the label, analogous to the default button. However, this would require a size property for the icon. I will definitely look into it and keep you informed. Warm regards and thanks for the kind words, Ralf

stam66 commented 2 years ago

If i could combine that with a 2nd feature request - could resizing the SVG be decoupled from button size? Or maybe offer a choice if should resize with button or be adjusted manually? Again, taking a cue from FileMaker Pro's buttons, a slider that adjusts the SVG size makes it easier to manage custom layouts than having to adjust button size. Would be useful for some situations and hopefully may fit in with reworking the SVG icon...

revig commented 2 years ago

I will add a property "iconSizeRatio" adjustable via a slider.

revig commented 2 years ago

Hi Stam, the new version is out.

stam66 commented 2 years ago

Works really very well! You are a credit to the community, thank you Ralf!