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

Luciano Notarfrancesco luchiano at gmail.com
Wed May 24 14:54:31 PDT 2023


Ah, it shows up only without round buttons. Change Theme>>#roundButtons to
return false and you should see it.

On Wed, 24 May 2023 at 22:32 Juan Vuletich <juan at cuis.st> wrote:

> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230524/c7679050/attachment.htm>


More information about the Cuis-dev mailing list