<div dir="ltr"><div dir="auto">Does it matter if the text is white on black?</div><div dir="auto"><br></div><div>Note that "Smalltalk classNamed: ..." is not Environments-friendly unless we changed the default binding of #Smalltalk.</div><div><br></div><div>Also, why not use a Symbol for the class name? The bindings all have Symbols as keys anyway, so you might trigger a conversion on each invocation. Didn't look it up though.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Tobias Pape <<a href="mailto:Das.Linux@gmx.de" target="_blank">Das.Linux@gmx.de</a>> schrieb am Sa., 18. Apr. 2020, 16:30:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
> On 18.04.2020, at 15:37, Thiede, Christoph <<a href="mailto:Christoph.Thiede@student.hpi.uni-potsdam.de" rel="noreferrer" target="_blank">Christoph.Thiede@student.hpi.uni-potsdam.de</a>> wrote:<br>
> <br>
> > +                ifNil: [TextColor black "Fall back"]<br>
> <br>
> Do you think there would be the need for an explicit FallbackTextAttribute, which acts like a null object?<br>
<br>
That's essentially what it is.<br>
No need to overengineer.<br>
<br>
Best regards<br>
        -Tobias<br>
<br>
> Von: Squeak-dev <<a href="mailto:squeak-dev-bounces@lists.squeakfoundation.org" rel="noreferrer" target="_blank">squeak-dev-bounces@lists.squeakfoundation.org</a>> im Auftrag von <a href="mailto:commits@source.squeak.org" rel="noreferrer" target="_blank">commits@source.squeak.org</a> <<a href="mailto:commits@source.squeak.org" rel="noreferrer" target="_blank">commits@source.squeak.org</a>><br>
> Gesendet: Freitag, 17. April 2020 16:52:44<br>
> An: <a href="mailto:squeak-dev@lists.squeakfoundation.org" rel="noreferrer" target="_blank">squeak-dev@lists.squeakfoundation.org</a>; <a href="mailto:packages@lists.squeakfoundation.org" rel="noreferrer" target="_blank">packages@lists.squeakfoundation.org</a><br>
> Betreff: [squeak-dev] The Trunk: Graphics-mt.430.mcz<br>
>  <br>
> Marcel Taeumel uploaded a new version of Graphics to project The Trunk:<br>
> <a href="http://source.squeak.org/trunk/Graphics-mt.430.mcz" rel="noreferrer noreferrer" target="_blank">http://source.squeak.org/trunk/Graphics-mt.430.mcz</a><br>
> <br>
> ==================== Summary ====================<br>
> <br>
> Name: Graphics-mt.430<br>
> Author: mt<br>
> Time: 17 April 2020, 4:52:36.27086 pm<br>
> UUID: 1e5eac6b-e758-8445-b60e-7b09db8dcc63<br>
> Ancestors: Graphics-nice.429<br>
> <br>
> Adds a simple way to use forms as text anchors without exposing Morphic, where such anchors are currently implemented.<br>
> <br>
> =============== Diff against Graphics-nice.429 ===============<br>
> <br>
> Item was added:<br>
> + ----- Method: Form>>asTextAnchor (in category 'converting') -----<br>
> + asTextAnchor<br>
> +        "Convert the receiver to be embedded in text."<br>
> + <br>
> +        self flag: #refactor. "mt: Text anchors should work outside of Morphic, too. Any instance of Form could be embedded in Text."<br>
> +        ^ (Smalltalk classNamed: 'TextAnchor')<br>
> +                ifNil: [TextColor black "Fall back"]<br>
> +                ifNotNil: [:cls | cls new anchoredMorph: self]!<br>
<br>
<br>
<br>
</blockquote></div>