[Cuis-dev] Wrong background color in window title buttons

Luciano Notarfrancesco luchiano at gmail.com
Wed May 24 11:08:34 PDT 2023


The close/collapse/expand/menu buttons in SystemWindows are
PluggableButtonMorphs, so they adopt the window color when the window is
opened in the world (see SystemWindow>>#openInWorld and
PluggableButtonMorph>>#adoptWidgetsColor:). The color is set when opening
the window and never changes. Then, when a window is active, the title is
draw with a lighter color, and this doesn’t match the color of the buttons
and causes a dark square shadow. At first I thought this was because we
were using rasterized icons, but no, it’s just a bug. Perhaps it’s more
noticeable in my image because of the color scheme I’m using.

Juan, what’s the right way to fix this? I would prefer not to add variables
to PluggableButtonMorph, or create a subclass, or hardcode some special
case in >>#adoptWidgetsColor:. Perhaps you have a better idea?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230524/7edcf42e/attachment.htm>


More information about the Cuis-dev mailing list