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

commits at source.squeak.org commits at source.squeak.org
Wed Jan 18 15:31:09 UTC 2023


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

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

Name: Morphic-mt.2066
Author: mt
Time: 18 January 2023, 4:31:06.284866 pm
UUID: 09e7ba96-fd4e-da4a-9716-d37c0c62c428
Ancestors: Morphic-mt.2065

Fixes high-dpi support for multi-selection lists.

=============== Diff against Morphic-mt.2065 ===============

Item was changed:
  ----- Method: LazyListMorph>>drawSelectionFor:withColor:on: (in category 'drawing') -----
  drawSelectionFor: index withColor: color on: aCanvas
  	
  	| selectionDrawBounds fill |
  	index ifNil: [ ^self ].
  	index = 0 ifTrue: [ ^self ].
  	selectionDrawBounds := self drawBoundsForRow: index.
  	selectionDrawBounds := selectionDrawBounds intersect: self bounds.
  	
  	fill := color isColor
  		ifTrue: [SolidFillStyle color: color]
  		ifFalse: [color].
  	fill isGradientFill ifTrue: [
  		fill origin: selectionDrawBounds topLeft.
  		fill direction: 0@ selectionDrawBounds height].
  	
  	listSource hasMultiSelection
  		ifFalse: [aCanvas fillRectangle: selectionDrawBounds fillStyle: fill]
+ 		ifTrue: [aCanvas frameRectangle: selectionDrawBounds width: 1 px color: fill asColor] .!
- 		ifTrue: [aCanvas frameRectangle: selectionDrawBounds color: fill asColor] .!



More information about the Squeak-dev mailing list