<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Hi Marcel,</p>
<p><br>
</p>
<p>should we provide these layout constants via 60Deprecated? I see some packages on GitHub depending on them, and I would not be surprised if I would have used them myself somewhere. :-)</p>
<p><br>
</p>
<p>Best,</p>
<p>Christoph</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von commits@source.squeak.org <commits@source.squeak.org><br>
<b>Gesendet:</b> Mittwoch, 9. Februar 2022 14:00:46<br>
<b>An:</b> squeak-dev@lists.squeakfoundation.org; packages@lists.squeakfoundation.org<br>
<b>Betreff:</b> [squeak-dev] The Trunk: Tools-mt.1129.mcz</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Marcel Taeumel uploaded a new version of Tools to project The Trunk:<br>
<a href="http://source.squeak.org/trunk/Tools-mt.1129.mcz">http://source.squeak.org/trunk/Tools-mt.1129.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Tools-mt.1129<br>
Author: mt<br>
Time: 9 February 2022, 2:00:43.820754 pm<br>
UUID: fc1e3163-b722-5645-8f0c-b4bf03ef2b6e<br>
Ancestors: Tools-ct.1128<br>
<br>
Minor code cleanup. Makes the addition of ui-theme specific text attributes to illustrate "deprecation" of an artifact (e.g., class/method) re-usable via extension on Text.<br>
<br>
=============== Diff against Tools-ct.1128 ===============<br>
<br>
Item was removed:<br>
- ----- Method: CodeHolder>>defaultAnnotationPaneHeight (in category 'annotation') -----<br>
- defaultAnnotationPaneHeight<br>
-        "Answer the receiver's preferred default height for new annotation panes."<br>
- <br>
-        ^ Preferences parameterAt: #defaultAnnotationPaneHeight ifAbsentPut: [25]!<br>
<br>
Item was removed:<br>
- ----- Method: CodeHolder>>defaultButtonPaneHeight (in category 'annotation') -----<br>
- defaultButtonPaneHeight<br>
-        "Answer the user's preferred default height for new button panes."<br>
- <br>
-        ^ Preferences parameterAt: #defaultButtonPaneHeight ifAbsentPut: [25]!<br>
<br>
Item was changed:<br>
  ----- Method: CodeHolder>>formattedLabel:forSelector:inClass: (in category 'message list') -----<br>
  formattedLabel: aString forSelector: aSymbol inClass: aClass<br>
         "Show deprecated messages differently so that users recognize them quickly to avoid them. This is a performance critical method in the user interface."<br>
         <br>
-        | formattedLabel |<br>
         self flag: #investigate. "mt: aClass must never be nil!! Faulty tools should override this call themselves or fix the caller site."<br>
         aClass ifNil: [^ aString].<br>
         <br>
         (aSymbol = #Definition or: [aSymbol = #Comment])<br>
                 ifTrue: [aClass isDeprecated<br>
                         ifFalse: [^ aString]]<br>
                 ifFalse: [(aClass isDeprecated or: [(aClass compiledMethodAt: aSymbol ifAbsent: [^ aString]) isDeprecated])<br>
                         ifFalse: [^ aString]].<br>
         <br>
+        ^ aString asText addAttributesForDeprecation!<br>
-        formattedLabel := aString asText.<br>
-        <br>
-        (self userInterfaceTheme deprecatedMessageAttributes ifNil: [{TextColor gray. TextEmphasis struckOut}]) do: [:textAttribute |<br>
-                formattedLabel addAttribute: textAttribute].<br>
- <br>
-        ^ formattedLabel.!<br>
<br>
Item was added:<br>
+ ----- Method: Text>>addAttributesForDeprecation (in category '*Tools-attributes') -----<br>
+ addAttributesForDeprecation<br>
+        "Add text attributes to the receiver so that clients will recognize the underlying artifact (e.g., class or method) as deprecated."<br>
+        <br>
+        ((UserInterfaceTheme current get: #deprecatedMessageAttributes for: #CodeHolder)<br>
+                ifNil: [{TextColor gray. TextEmphasis struckOut}])<br>
+                        do: [:textAttribute | self addAttribute: textAttribute].!<br>
<br>
<br>
</div>
</span></font>
</body>
</html>