[Cuis-dev] button label text color

Mark Volkmann r.mark.volkmann at gmail.com
Sat Jun 8 14:20:53 PDT 2024


On Sat, Jun 8, 2024 at 4:09 PM Mariano Montone via Cuis-dev <
cuis-dev at lists.cuis.st> wrote:

>
> El 8/6/24 a las 17:48, Mark Volkmann via Cuis-dev escribió:
> > How can I change the color of the label text in a PluggableButtonMorph?
> > I tried hard to find the answer on my own, but couldn't find it.
>
> It can't be changed directly. It takes the color from the current theme.
>
> Theme current buttonLabel.
>
> I think the button morph should have a labelColor instance variable,
> that when set uses that color, and falls back to the theme color if not
> set.
>

Can I modify the current theme? I don't see a way to do that. Maybe I have
to create and use a new theme.

In any case it sounds like all buttons will then have the same label text
color. I can change the background color of each button to something
different, so that seems problematic because I can't choose a single label
text color that will look good with every button background color.

-- 
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240608/b57bbe7c/attachment.htm>


More information about the Cuis-dev mailing list