pharo-graphics / Toplo

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

Changing the background of a ToButton doesn't work as expected #158

Open Eliott-Guevel opened 2 weeks ago

Eliott-Guevel commented 2 weeks ago

Changing the background of a ToButton through background: (after the window has been launched, see #157) make it revert back to white after hovering on the button. This is due to the fact that it uses the raw theme (ToGeneralButtonSkin).

Currently, a workaround takes the form of

addTokenNamed: #'color-bg-container' withValue: Color color

which isn't really intuitive. Instead, it would be better to change the behavior of background: so that it doesn't revert its color back to white after being hovered on.

plantec commented 2 weeks ago

you can send #withNullSkin to the button (related to issue #157)