[Cuis-dev] Pluggable button with icon

Hilaire Fernandes hfern at free.fr
Tue Aug 12 09:09:22 PDT 2025


There is not specific context.

Try, in a Workspace, the examples I showed in the earlier screenshot:

(PluggableButtonMorph model: self action: #addArgument label: 'Toto')
             icon: Theme current listAddIcon ;
             setBalloonText: 'Add an argument to this script.' translated;
             scale: 5;
             openInWorld

The label and icon does not look right together. I don't know how icon 
and label are supposed to look right together.

(PluggableButtonMorph model: self action: #addArgument)
             icon: Theme current listAddIcon ;
             setBalloonText: 'Add an argument to this script.' translated;
             scale: 5;
             openInWorld

When only icon, it does not look exactly right. On an element of GUI 
construction, I don't think it is up to the user to adjust manually the 
extent of the button. It makes the user code unnecessary complicate.

The roundButtonStyle attribute may need to be rationalized: it can be 
nil, #none, true or false.

This change set improve both the semantic of roundButtonStyle (renamed 
buttonStyle) and try to fix the situation of rounded button with icon.

It does not fix the situation of button with both label and icon. Was it 
ever a viable way to have button?


Le 11/08/2025 à 19:15, Juan Vuletich a écrit :
> I can't run that, because I don't have the context.

-- 
http://mamot.fr/@drgeo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250812/34c6f83f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 7399-CuisCore-HilaireFernandes-2025Aug12-17h07m-hlsf.001.cs.st
Type: application/vnd.sailingtracker.track
Size: 6553 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250812/34c6f83f/attachment.st>


More information about the Cuis-dev mailing list