[squeak-dev] The Trunk: Morphic-mt.1894.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Feb 14 08:47:26 UTC 2022


Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1894.mcz

==================== Summary ====================

Name: Morphic-mt.1894
Author: mt
Time: 14 February 2022, 9:47:21.389624 am
UUID: dc8511c4-0214-2140-b00b-aa212c7c46c6
Ancestors: Morphic-ct.1893

Revises indication of a morph's keyboard focus via #keyboardFocusWidth, which now excludes the border width while that indication still covers the border (width). Thus, we reduce #keyboardFocusWidth in all UI themes depending on the #borderWidth of their scrollables.

Community ... -1
Monokai ... +/- 0
Solarized (light/dark) ... +/- 0
Squeak (incl. duller) ... -1
Trim ... -1

This makes it easier to calculate extra typographiy-related margins such as #textMargins.

=============== Diff against Morphic-ct.1893 ===============

Item was changed:
  ----- Method: Morph>>drawKeyboardFocusIndicationOn: (in category 'drawing') -----
  drawKeyboardFocusIndicationOn: aCanvas
  
  	self wantsRoundedCorners
+ 		ifTrue: [aCanvas frameRoundRect: self bounds radius: self cornerRadius width: self keyboardFocusWidth + self borderWidth color: self keyboardFocusColor]
+ 		ifFalse: [aCanvas frameRectangle: self bounds width: self keyboardFocusWidth + self borderWidth color: self keyboardFocusColor].!
- 		ifTrue: [aCanvas frameRoundRect: self innerBounds radius: self cornerRadius width: self keyboardFocusWidth color: self keyboardFocusColor]
- 		ifFalse: [aCanvas frameRectangle: self innerBounds width: self keyboardFocusWidth color: self keyboardFocusColor].!

Item was changed:
  ----- Method: Morph>>keyboardFocusWidth (in category 'drawing') -----
  keyboardFocusWidth
  
+ 	^ ((self userInterfaceTheme keyboardFocusWidth ifNil: [2]) * RealEstateAgent scaleFactor) truncated!
- 	^ ((self userInterfaceTheme keyboardFocusWidth ifNil: [3]) * RealEstateAgent scaleFactor) truncated!



More information about the Squeak-dev mailing list