pharo-graphics / Toplo

A widget framework on top of Bloc
MIT License
17 stars 8 forks source link

Could I retrieve the original form set as button icon? #147

Open tinchodias opened 1 month ago

tinchodias commented 1 month ago

Is this right?

aForm := Smalltalk ui icons iconNamed: #remove.
b := ToButton new.
b iconImage: aForm.
b openInNewSpace.

bwForm := b iconImage background image.
bwForm = aForm.  "false"

aForm / bwForm:

Screenshot 2024-05-07 at 15 00 52
plantec commented 1 month ago

This is not an issue since the original Form is not changed, The raw skin changes the form colors. Another skin or another implementation of the skin could do it differently