[Cuis-dev] Button color tweaks

Luciano Notarfrancesco luchiano at gmail.com
Fri May 26 12:42:48 PDT 2023


The button rows (the LayoutMorphs that own the buttons) have the same
color, so the buttons are kind of invisible and they look like
undifferentiated strings in a row. This change set tweaks their colors so
that the row where they live correctly adopts the widget color for their
window (instead of the button color from the theme), and the buttons are
colored better for their different states (enabled/disabled, presed, and
highlighted on mouse over).

I guess LayoutMorph>>#adoptWidgetColor: using the theme button color was a
bug, but I'm not sure, maybe there's some logic behind it. Also, I don't
know if we still need the instance variable doAdoptWidgetColor, it seems
hacky, maybe we can remove all that and let them always adopt the widget
color?

Let me know what you think.
Luciano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230527/2c513849/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 5816-ButtonColorTweaks-LucianoEstebanNotarfrancesco-2023May26-19h04m-len.001.cs.st
Type: application/vnd.sailingtracker.track
Size: 3325 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230527/2c513849/attachment.bin>


More information about the Cuis-dev mailing list