<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
For clarification: There is a "not" missing at the end. And no changes to the list of factors when absolute values are shown, which is the default.<div><br></div><div>Best,</div><div>Marcel</div><div class="mb_sig"></div>
<blockquote class="history_container" type="cite" style="border-left-style: solid;border-width: 1px;margin-top: 20px;margin-left: 0px;padding-left: 10px;min-width: 500px">
<p style="color: #AAAAAA; margin-top: 10px;">Am 25.04.2022 10:50:58 schrieb commits@source.squeak.org <commits@source.squeak.org>:</p><div style="font-family:Arial,Helvetica,sans-serif">Marcel Taeumel uploaded a new version of Morphic to project The Trunk:<br>http://source.squeak.org/trunk/Morphic-mt.1969.mcz<br><br>==================== Summary ====================<br><br>Name: Morphic-mt.1969<br>Author: mt<br>Time: 25 April 2022, 10:50:38.356234 am<br>UUID: 0455e656-cb7c-5247-8c3e-3a747a82cdf2<br>Ancestors: Morphic-tpr.1968<br><br>Tweak list of scale factors. Only allow to go above 100% if you choose to only show factors relative to the current platform scale factor.<br><br>Well, you can still type-in any custom factor but to select the ones with pre-rendered fonts will be more difficult. For example, when the platform recommends 2.0, then 75%, 100%, 125%, and 150% would be 37.5%, 50%, 62.25%, and 75%. Rounding those to 25% steps would work.<br><br>=============== Diff against Morphic-tpr.1968 ===============<br><br>Item was changed:<br> ----- Method: TheWorldMainDockingBar>>scaleFactorsOn: (in category 'submenu - extras') -----<br> scaleFactorsOn: menu<br> <br>+ | showsRelative presets currentScaleFactor currentPlatformScaleFactor |<br>+ showsRelative := DisplayScreen relativeScaleFactorEnabled.<br>- | presets currentScaleFactor currentPlatformScaleFactor |<br> currentScaleFactor := (Display relativeUiScaleFactor * 100) rounded.<br> currentPlatformScaleFactor := Display platformScaleFactorKnown<br> ifTrue: [(Display platformScaleFactor * 100) rounded].<br>+ showsRelative<br>+ ifFalse: [presets := 75 to: 300 by: 25]<br>+ ifTrue: [presets := 100 to: 200 by: 25].<br>- presets := 75 to: 300 by: 25.<br> <br> presets do: [:scale |<br>+ showsRelative ifFalse: [<br>+ scale = 100 ifTrue: [menu addLine]. "Normal scales."<br>+ scale = 175 ifTrue: [menu addLine]. "TTCFont used after this line..."].<br>- scale = 100 ifTrue: [menu addLine]. "Normal scales."<br>- scale = 175 ifTrue: [menu addLine]. "TTCFont used after this line..."<br> menu addItem: [:item|<br> item<br>+ contents: ('{1}{2}%{3}' format: {<br>- contents: ('{1}{2}%{3}{4}' format: {<br> currentScaleFactor = scale ifTrue: ['<yes>'] ifFalse: ['<no>'].<br> scale.<br>+ showsRelative ifTrue: [''] ifFalse: [<br>+ scale = currentPlatformScaleFactor<br>+ ifTrue: [' (recommended)' translated] ifFalse: ['']] });<br>- DisplayScreen relativeScaleFactorEnabled<br>- ifTrue: ['' "macOS"] ifFalse: [<br>- scale = currentPlatformScaleFactor<br>- ifTrue: [' (recommended)' translated] ifFalse: ['']].<br>- scale = 75 ifTrue: [' (low ppi)' translated] ifFalse: ['']<br>- });<br> target: Display;<br> selector: #relativeUiScaleFactor:;<br> arguments: {scale / 100}]].<br> <br> menu addLine.<br> menu addItem: [:item |<br> item<br> contents: ((presets includes: currentScaleFactor) not ifTrue: ['<yes>' , 'Custom: ' translated, currentScaleFactor, '% ...'] ifFalse: ['<no>' , 'Other scale factor...' translated]);<br> target: self;<br> selector: #chooseCustomScaleFactor].!<br><br><br></no></yes></no></yes></div></blockquote></div>