<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" 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><!-- HTML generated using hilite.me --></p>
    <div
style="background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.1em .6em;">
      <table>
        <tbody>
          <tr>
            <td>
              <pre style="margin: 0; line-height: 125%">1
2
3
4
5</pre>
            </td>
            <td>
              <pre style="margin: 0; line-height: 125%"><span
              style="color: #BB0066; font-weight: bold">LayoutMorph</span><span
              style="color: #0066BB; font-weight: bold">>>adoptWidgetsColor:</span> <span
              style="color: #996633">paneColor</span>
    <span style="color: #007020">super</span> <span
              style="color: #0066BB; font-weight: bold">adoptWidgetsColor:</span> <span
              style="color: #996633">paneColor</span>.
    <span style="color: #996633">doAdoptWidgetsColor</span>
        <span style="color: #007020">ifTrue:</span> [ <span
              style="color: #007020">self</span> <span
              style="color: #0066BB; font-weight: bold">color:</span> (<span
              style="color: #BB0066; font-weight: bold">Theme</span> <span
              style="color: #0066BB; font-weight: bold">current</span> <span
              style="color: #0066BB; font-weight: bold">buttonColorFrom:</span> <b><span
              style="color: #996633">color</span></b>) ]
        <span style="color: #007020">ifFalse:</span> [ <span
              style="color: #007020">self</span> <span
              style="color: #0066BB; font-weight: bold">color:</span> <span
              style="color: #FF0000; background-color: #FFAAAA">`</span><span
              style="color: #BB0066; font-weight: bold">Color</span> <span
              style="color: #0066BB; font-weight: bold">transparent</span><span
              style="color: #FF0000; background-color: #FFAAAA">`</span> ]
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
    <p><font size="4">Then your code example as (addition at line 3):</font></p>
    <p><!-- HTML generated using hilite.me --></p>
    <div
style="background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.1em .6em;">
      <table>
        <tbody>
          <tr>
            <td>
              <pre style="margin: 0; line-height: 125%">1
2
3
4
5
6
7</pre>
            </td>
            <td>
              <pre style="margin: 0; line-height: 125%"><span
              style="color: #996633">window</span> <span
              style="color: #333333">:=</span> <span
              style="color: #BB0066; font-weight: bold">SystemWindow</span> <span
              style="color: #007020">new</span>.
<span style="color: #996633">column</span> <span style="color: #333333">:=</span> <span
              style="color: #996633">window</span> <span
              style="color: #0066BB; font-weight: bold">layoutMorph</span>.
<span style="color: #996633">column</span> <span
              style="color: #0066BB; font-weight: bold">doAdoptWidgetsColor</span>.
<span style="color: #996633">column</span> <span
              style="color: #0066BB; font-weight: bold">color:</span> <span
              style="color: #BB0066; font-weight: bold">Color</span> <span
              style="color: #0066BB; font-weight: bold">yellow</span>.
<span style="color: #996633">column</span> <span
              style="color: #0066BB; font-weight: bold">addMorph:</span> (<span
              style="color: #BB0066; font-weight: bold">LabelMorph</span> <span
              style="color: #0066BB; font-weight: bold">contents:</span> <span
              style="background-color: #fff0f0">'foo'</span>).
<span style="color: #996633">column</span> <span
              style="color: #0066BB; font-weight: bold">addMorph:</span> (<span
              style="color: #BB0066; font-weight: bold">LabelMorph</span> <span
              style="color: #0066BB; font-weight: bold">contents:</span> <span
              style="background-color: #fff0f0">'bar'</span>).
<span style="color: #996633">window</span> <span
              style="color: #0066BB; 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 class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://mamot.fr/@drgeo">http://mamot.fr/@drgeo</a></pre>
  </body>
</html>