[Cuis-dev] Button color tweaks

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


Sorry, this method on top of that looks a little better, I think.

On Sat, May 27, 2023 at 3:42 AM Luciano Notarfrancesco <luchiano at gmail.com>
wrote:

> 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/5ec92f3b/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PluggableButtonMorph-drawRoundLookOn.st
Type: application/vnd.sailingtracker.track
Size: 848 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230527/5ec92f3b/attachment.bin>


More information about the Cuis-dev mailing list