[Cuis-dev] Button with icon

Juan Vuletich juan at cuis.st
Mon May 26 13:17:15 PDT 2025


Hi Hilaire,

Apologies for the inconvenience. Other users made me realize that the 
drawing of buttons was visually inconsistent if you had both buttons 
with Icon and buttons with Label side by side. My change was an attempt 
to fix that, without realizing I was breaking purely iconic buttons like 
yours.

Your code is OK, but it (unsurprisingly) it breaks the other use case. I 
just pushed an update that integrates most of your code, but adds a new 
method #iconOnly: to specify the icon, and that nothing else should be 
drawn for this button. May I ask you to change your senders to this new 
selector?

Thanks for your patience.

Cheers,

On 5/24/2025 6:30 AM, Hilaire Fernandes via Cuis-dev wrote:
>
> Behavior has changed has follow:
>
>
> Setting the color to transparent by default when using an icon does 
> not resolve the issue, it looks wrong when hovering it:
>
> The extent of the painted background seems wrong too.
>
> Setting padding, border do not change the behavior
>
> Only setting self roundButtonStyle: false seems to help.
>
> Moreover, adjusting padding does not update the button extent has it 
> should. Should it be so?
>
> Anyway, here is changeset fixing all these issues, so it is now 
> possible to play nicely with the border and padding of iconic buttons.
>
> Note that in this changeset with iconic buttons, round style is 
> deactivated by default.
>
>
> -- 
> http://mamot.fr/@drgeo


-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250526/df794dcf/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 41997 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250526/df794dcf/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 4288 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250526/df794dcf/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 27787 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250526/df794dcf/attachment-0005.png>


More information about the Cuis-dev mailing list