[squeak-dev] The Trunk: MorphicExtras-ct.334.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Sep 13 10:48:58 UTC 2022


Christoph Thiede uploaded a new version of MorphicExtras to project The Trunk:
http://source.squeak.org/trunk/MorphicExtras-ct.334.mcz

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

Name: MorphicExtras-ct.334
Author: ct
Time: 13 September 2022, 12:48:55.351245 pm
UUID: f0833010-8910-ed49-b92e-9ff467ecd684
Ancestors: MorphicExtras-ct.333

Improves high-dpi support for DropDownChoiceMorph (sharp sub menu marker).

=============== Diff against MorphicExtras-ct.333 ===============

Item was added:
+ ----- Method: DropDownChoiceMorph class>>applyUserInterfaceTheme (in category 'updating') -----
+ applyUserInterfaceTheme
+ 
+ 	self initializeSubMenuMarker.!

Item was changed:
  ----- Method: DropDownChoiceMorph class>>initialize (in category 'class initialization') -----
  initialize
  	"DropDownChoiceMorph initialize"
  
+ 	self initializeSubMenuMarker.!
- 	| f |
- 	f := Form
- 		extent: 5 at 9
- 		fromArray: #(2147483648 3221225472 3758096384 4026531840 4160749568 4026531840 3758096384 3221225472 2147483648)
- 		offset: 0 at 0.
- 	SubMenuMarker := ColorForm mappingWhiteToTransparentFrom: f.
- !

Item was added:
+ ----- Method: DropDownChoiceMorph class>>initializeSubMenuMarker (in category 'class initialization') -----
+ initializeSubMenuMarker
+ 
+ 	| form |
+ 	form := Form extent: 5 px @ 9 px depth: 1.
+ 	form getCanvas
+ 		drawPolygon: {0 @ 0. 0 @ form height. form width @ (form height // 2)}
+ 		fillStyle: Color black.
+ 	SubMenuMarker := ColorForm mappingWhiteToTransparentFrom: form.!

Item was added:
+ ----- Method: DropDownChoiceMorph class>>themeProperties (in category 'updating') -----
+ themeProperties
+ 	"Ensure that #applyUserInterfaceTheme is sent."
+ 
+ 	^ super themeProperties
+ 		, {{#placeholder. '<placeholder>'. 'Just a placeholder to ensure that this class is sent #applyUserInterfaceTheme updates.'}}!



More information about the Squeak-dev mailing list