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

Juan Vuletich juan at cuis.st
Wed May 24 13:32:13 PDT 2023


On 5/24/2023 3:08 PM, Luciano Notarfrancesco via Cuis-dev wrote:
> 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?

Hi Luciano,

I can't reproduce the problem in the stock Cuis image. Button background 
pixels are transparent (pixel value = 0), so they should not be affected 
at all by the window color.

HTH,

-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich



More information about the Cuis-dev mailing list