<div dir="ltr">This is much better! Thanks Hilaire. I attached a new changeset with your much simpler change.</div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sun, Feb 9, 2025 at 3:19 AM Hilaire Fernandes 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"><u></u>
<div bgcolor="#FFFFFF">
<p><font size="4">I find the color scheme a bit confusing with
Widget. Your interest is welcome. Nevertheless, adding a
dedicated flag to each LayoutMorph (we have a lot) may be
overkill and would add confusion to an already a bit confusing
system - at least for me.</font></p>
<p><font size="4">Have you tried exploring the doAdoptWidgetsColor.</font></p>
<p><font size="4">When changing as this (change in line 4): <br>
</font></p>
<p></p>
<div style="background:repeat rgb(255,255,255);overflow:auto;width:auto;border-style:solid;border-color:gray;border-width:0.1em 0.1em 0.1em 0.8em;padding:0.1em 0.6em">
<table>
<tbody>
<tr>
<td>
<pre style="margin:0px;line-height:125%">1
2
3
4
5</pre>
</td>
<td>
<pre style="margin:0px;line-height:125%"><span style="color:rgb(187,0,102);font-weight:bold">LayoutMorph</span><span style="color:rgb(0,102,187);font-weight:bold">>>adoptWidgetsColor:</span> <span style="color:rgb(153,102,51)">paneColor</span>
<span style="color:rgb(0,112,32)">super</span> <span style="color:rgb(0,102,187);font-weight:bold">adoptWidgetsColor:</span> <span style="color:rgb(153,102,51)">paneColor</span>.
<span style="color:rgb(153,102,51)">doAdoptWidgetsColor</span>
<span style="color:rgb(0,112,32)">ifTrue:</span> [ <span style="color:rgb(0,112,32)">self</span> <span style="color:rgb(0,102,187);font-weight:bold">color:</span> (<span style="color:rgb(187,0,102);font-weight:bold">Theme</span> <span style="color:rgb(0,102,187);font-weight:bold">current</span> <span style="color:rgb(0,102,187);font-weight:bold">buttonColorFrom:</span> <b><span style="color:rgb(153,102,51)">color</span></b>) ]
<span style="color:rgb(0,112,32)">ifFalse:</span> [ <span style="color:rgb(0,112,32)">self</span> <span style="color:rgb(0,102,187);font-weight:bold">color:</span> <span style="color:rgb(255,0,0);background-color:rgb(255,170,170)">`</span><span style="color:rgb(187,0,102);font-weight:bold">Color</span> <span style="color:rgb(0,102,187);font-weight:bold">transparent</span><span style="color:rgb(255,0,0);background-color:rgb(255,170,170)">`</span> ]
</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p><font size="4">Then your code example as (addition at line 3):</font></p>
<p></p>
<div style="background:repeat rgb(255,255,255);overflow:auto;width:auto;border-style:solid;border-color:gray;border-width:0.1em 0.1em 0.1em 0.8em;padding:0.1em 0.6em">
<table>
<tbody>
<tr>
<td>
<pre style="margin:0px;line-height:125%">1
2
3
4
5
6
7</pre>
</td>
<td>
<pre style="margin:0px;line-height:125%"><span style="color:rgb(153,102,51)">window</span> <span style="color:rgb(51,51,51)">:=</span> <span style="color:rgb(187,0,102);font-weight:bold">SystemWindow</span> <span style="color:rgb(0,112,32)">new</span>.
<span style="color:rgb(153,102,51)">column</span> <span style="color:rgb(51,51,51)">:=</span> <span style="color:rgb(153,102,51)">window</span> <span style="color:rgb(0,102,187);font-weight:bold">layoutMorph</span>.
<span style="color:rgb(153,102,51)">column</span> <span style="color:rgb(0,102,187);font-weight:bold">doAdoptWidgetsColor</span>.
<span style="color:rgb(153,102,51)">column</span> <span style="color:rgb(0,102,187);font-weight:bold">color:</span> <span style="color:rgb(187,0,102);font-weight:bold">Color</span> <span style="color:rgb(0,102,187);font-weight:bold">yellow</span>.
<span style="color:rgb(153,102,51)">column</span> <span style="color:rgb(0,102,187);font-weight:bold">addMorph:</span> (<span style="color:rgb(187,0,102);font-weight:bold">LabelMorph</span> <span style="color:rgb(0,102,187);font-weight:bold">contents:</span> <span style="background-color:rgb(255,240,240)">'foo'</span>).
<span style="color:rgb(153,102,51)">column</span> <span style="color:rgb(0,102,187);font-weight:bold">addMorph:</span> (<span style="color:rgb(187,0,102);font-weight:bold">LabelMorph</span> <span style="color:rgb(0,102,187);font-weight:bold">contents:</span> <span style="background-color:rgb(255,240,240)">'bar'</span>).
<span style="color:rgb(153,102,51)">window</span> <span style="color:rgb(0,102,187);font-weight:bold">openInWorld</span>.
</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p><font size="4">This achieve what your are looking for without an
additional variable. I have not explored much about the possible
consequences.<br>
</font></p>
<pre cols="72">--
<a href="http://mamot.fr/@drgeo" target="_blank">http://mamot.fr/@drgeo</a></pre>
</div>
-- <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><div><br clear="all"></div><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>