[Cuis-dev] Widget color again
Juan Vuletich
juan at cuis.st
Wed Jul 22 07:06:54 PDT 2026
Hi Hilaire,
I'm pushing an update that adds a new selector to LayoutMorph. Now you
can send:
#doAdoptWidgetsColor "Sets a color similar to button color (but paler)"
#doAdoptPaneBackgroundColor "Sets pane background color"
I think this will serve you, and also the common use in class browsers
and other tools, where the LayoutMorph is acting as a button row.
Hope this helps.
On 2026-07-16 9:37 AM, Hilaire Fernandes via Cuis-dev wrote:
>
> Hi,
>
> Does it make sense that Layout Morph are painted with a variation of
> the button color. My panes look darker than before.
>
> LayoutMorph>>adoptWidgetsColor: paneColor
> super adoptWidgetsColor: paneColor.
> adoptsWidgetsColor
> ifTrue: [ self color: (Theme current buttonColorFrom:
> paneColor) paler ]
>
> Should it not be something like: Theme current paneBackgroundFrom:
> aColor.
>
> The darker pane is a LabelGroup. In the mean time I adjusted the
> LabelGroup>>adoptWidgetsColor method
>
--
Juan Vuletich
www.cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260722/d4b88d99/attachment.htm>
More information about the Cuis-dev
mailing list