<div dir="ltr">I tried your suggestions, but I'm doing something wrong. Here's what I did. Do you see where I went wrong?<div><br><div>- added <font face="monospace">labelColor</font> instance variable to <font face="monospace">PluggableButtonMorph</font> class</div><div><br></div><div>- added this line to the instance <font face="monospace">initializeMethod</font>:</div><div><br></div><div> <font face="monospace">labelColor := Theme current buttonLabel</font>.<br></div><div><br></div><div>- added these instance methods:</div><div><br></div><div><font face="monospace"> labelColor: aColor<br> labelColor := aColor<br></font></div><div><font face="monospace"><br></font></div><div><font face="monospace"> labelColor<br> ^labelColor</font><br></div><div><br></div><div>- changed this line in the <font face="monospace">drawEmbossedLabelOn:</font> method which used to refer to <font face="monospace">Theme current buttonLabel</font></div><div><br></div><div><font face="monospace"> colorForLabel := self enableLabelColorWith: labelColor.</font><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jun 8, 2024 at 4:09 PM Mariano Montone via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><br>
El 8/6/24 a las 17:48, Mark Volkmann via Cuis-dev escribió:<br>
> How can I change the color of the label text in a PluggableButtonMorph?<br>
> I tried hard to find the answer on my own, but couldn't find it.<br>
<br>
It can't be changed directly. It takes the color from the current theme.<br>
<br>
Theme current buttonLabel.<br>
<br>
I think the button morph should have a labelColor instance variable, <br>
that when set uses that color, and falls back to the theme color if not set.<br>
<br>
<br>
Mariano<br>
<br>
-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><font face="arial, helvetica, sans-serif">R. Mark Volkmann</font></div><div><span style="font-size:12.8px"><font face="arial, helvetica, sans-serif">Object Computing, Inc.</font></span></div></div></div></div></div></div></div></div>