<body><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000">
Well, I think that #screenUnscaled is a more elegant solution for the things happening in UserInterfaceTheme >> #fixFontsAndScaleAound: :-)<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;'>
<p style='color: #AAAAAA; margin-top: 10px;'>Am 12.11.2020 09:36:24 schrieb Marcel Taeumel <marcel.taeumel@hpi.de>:</p><div style='font-family:Arial,Helvetica,sans-serif'><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000">
In Vivide, I added #scaleValueToDisplay on Integer and Point besides the already existing #scaleIconToDisplay on Form. Tobias (topa) suggested a different approach for DPI-awareness, that is, #screenScaled and #screenUnscaled -- which I did not fully understand yet.<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;'>
<p style='color: #AAAAAA; margin-top: 10px;'>Am 11.11.2020 18:33:54 schrieb commits@source.squeak.org <commits@source.squeak.org>:</p><div style='font-family:Arial,Helvetica,sans-serif'>A new version of Morphic was added to project The Inbox:<br>http://source.squeak.org/inbox/Morphic-ct.1714.mcz<br><br>==================== Summary ====================<br><br>Name: Morphic-ct.1714<br>Author: ct<br>Time: 11 November 2020, 6:33:33.254952 pm<br>UUID: ffa0dcf6-075e-f04b-876f-fdee1186c309<br>Ancestors: Morphic-mt.1710<br><br>Honor hi-dpi settings for halo, window, and keyboard-focus indication borders.<br><br>Argh, this makes all these methods harder to read ... Did I patch the methods at the right abstraction level? Please review!<br><br>=============== Diff against Morphic-mt.1710 ===============<br><br>Item was changed:<br> ----- Method: Morph>>keyboardFocusWidth (in category 'drawing') -----<br> keyboardFocusWidth<br> <br>+ ^ ((self userInterfaceTheme keyboardFocusWidth ifNil: [3]) * RealEstateAgent scaleFactor) rounded!<br>- ^ self userInterfaceTheme keyboardFocusWidth ifNil: [3]!<br><br>Item was changed:<br> ----- Method: SimpleHaloMorph>>drawOn: (in category 'drawing') -----<br> drawOn: aCanvas <br> "Draw this morph only if it has no target."<br> <br> (Preferences showBoundsInHalo and: [self target isWorldMorph not])<br> ifTrue: [<br> aCanvas<br> frameAndFillRectangle: self bounds<br> fillColor: Color transparent<br>+ borderWidth: (2 * RealEstateAgent scaleFactor) rounded<br>- borderWidth: 2<br> borderColor: (self userInterfaceTheme borderColor ifNil: [Color blue alpha: 0.8])]!<br><br>Item was changed:<br> ----- Method: SystemWindow>>setDefaultParameters (in category 'initialization') -----<br> setDefaultParameters<br> <br> Preferences menuAppearance3d<br> ifFalse: [self hasDropShadow: false]<br> ifTrue: [<br> self addDropShadow.<br> self hasDropShadow: self isKeyWindow. "maybe turn off again"].<br> <br>+ self borderWidth: ((self userInterfaceTheme borderWidth ifNil: [1]) * RealEstateAgent scaleFactor) rounded.<br>- self borderWidth: (self userInterfaceTheme borderWidth ifNil: [1]).<br> label font: (self userInterfaceTheme titleFont ifNil: [TextStyle defaultFont]).!<br><br><br></div></blockquote>
</div></div></blockquote>
</div></body>