Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-tonyg.1804.mcz
==================== Summary ====================
Name: Morphic-tonyg.1804
Author: tonyg
Time: 29 November 2021, 1:26:42.579417 pm
UUID: 91dd5db6-e377-48c1-a9aa-bab83670c14f
Ancestors: Morphic-mt.1803
Suggested customization hooks to set various kinds of grip/scrollbar sizes. I have found this useful for working with Squeak on cell-phone sized devices with high DPI.
=============== Diff against Morphic-mt.1803 ===============
Item was changed:
----- Method: AbstractResizerMorph class>>gripThickness (in category 'preferences') -----
gripThickness
"A number in pixels that encodes the area were the user can target splitters or edge grips."
<preference: 'Grip Thickness'
category: 'windows'
description: 'A number in pixels that encodes the area were the user can target splitters or edge grips such as in application windows. Bigger grips make it easier to click on them.'
type: #Number>
+ ^ GripThickness ifNil: [(UserInterfaceTheme current get: #gripThickness) ifNil: [4]]!
- ^ GripThickness ifNil: [4]!
Item was changed:
----- Method: AbstractResizerMorph class>>handleLength (in category 'preferences') -----
handleLength
<preference: 'Handle Length'
category: 'windows'
description: 'AThe size of a grip handle if shown. Can be interpreted as width or height, depending of the resizer orientation. Does not affect the clickable area. See grip thickness for that.'
type: #Number>
+ ^ HandleLength ifNil: [(UserInterfaceTheme current get: #handleLength) ifNil: [25]]!
- ^ HandleLength ifNil: [25]!
Item was changed:
----- Method: ScrollPane class>>scrollBarThickness (in category 'defaults') -----
scrollBarThickness
-
^ Preferences scrollBarsNarrow
+ ifTrue: [(UserInterfaceTheme current get: #scrollBarThicknessNarrow) ifNil: [10]]
+ ifFalse: [(UserInterfaceTheme current get: #scrollBarThickness) ifNil: [14]]!
- ifTrue: [10]
- ifFalse: [14]!
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-ct.1531.mcz
==================== Summary ====================
Name: Morphic-ct.1531
Author: ct
Time: 20 September 2019, 8:46:54.327726 pm
UUID: 9ba3d907-10d4-524a-9e97-cd66a530f0ef
Ancestors: Morphic-mt.1526
Fix a bug in MorphicProject>>#applyUserInterfaceTheme
While working with many Projects during the latest weeks, I often noticed DNUs when changing the UI theme. Apparently UserInterfaceTheme>>#apply asks ALL objects in memory to apply the theme, so if a project was recently closed and not yet gc'ed, I got an error.
=============== Diff against Morphic-mt.1526 ===============
Item was changed:
----- Method: MorphicProject>>canApplyUserInterfaceTheme (in category 'updating') -----
canApplyUserInterfaceTheme
+ ^ world notNil!
- ^ true!
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-ct.1534.mcz
==================== Summary ====================
Name: Morphic-ct.1534
Author: ct
Time: 20 September 2019, 8:57:09.233726 pm
UUID: 9adeb330-a9c3-9b4c-a8e8-ee1ff7566968
Ancestors: Morphic-mt.1526
Add convenience constructor for NewColorPickerMorph. We don't need a color if we have the getter.
=============== Diff against Morphic-mt.1526 ===============
Item was added:
+ ----- Method: NewColorPickerMorph class>>on:getColorSelector:setColorSelector: (in category 'create') -----
+ on: objectToHaveItsColorSet getColorSelector: colorGetterSymbol setColorSelector: colorSetterSymbol
+ ^ self
+ on: objectToHaveItsColorSet
+ originalColor: (colorGetterSymbol value: objectToHaveItsColorSet)
+ setColorSelector: colorSetterSymbol!
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-ct.1539.mcz
==================== Summary ====================
Name: Morphic-ct.1539
Author: ct
Time: 1 October 2019, 2:30:30.532339 pm
UUID: 18bcdacc-91ad-9f40-87b4-1a1b0996373b
Ancestors: Morphic-ct.1534
Add even more convenient constructor for NewColorPickerMorph
(NewColorPickerMorph on: Morph new openInWorld colorSelector: #color) openInHand
=============== Diff against Morphic-ct.1534 ===============
Item was added:
+ ----- Method: NewColorPickerMorph class>>on:colorSelector: (in category 'create') -----
+ on: objectToHaveItsColorSet colorSelector: colorSymbol
+ ^ self
+ on: objectToHaveItsColorSet
+ getColorSelector: colorSymbol
+ setColorSelector: colorSymbol asMutator!
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-ct.1617.mcz
==================== Summary ====================
Name: Morphic-ct.1617
Author: ct
Time: 12 January 2020, 3:34:20.453555 am
UUID: d75dd5ad-8420-c443-9314-c01d96409fae
Ancestors: Morphic-tpr.1616
Fixes #applyUserInterfaceTheme on SystemProgressMorph really!
Explanation: Resetting the ProgressMorph from the class side is definively bad, because it deletes the progress morph if currently visible. The current instance-side implementation was not reliable either, because if the UniqueInstance is not in world, it cannot apply the new UI theme. Thus we need to override #canApplyUserInterfaceTheme from Morph.
This commit replaces Morphic-ct.1615. See also: http://forum.world.st/SystemProgressMorph-applyUserInterfaceTheme-td5108129…
=============== Diff against Morphic-tpr.1616 ===============
Item was removed:
- ----- Method: SystemProgressMorph class>>applyUserInterfaceTheme (in category 'preferences') -----
- applyUserInterfaceTheme
-
- self reset.!
Item was added:
+ ----- Method: SystemProgressMorph>>canApplyUserInterfaceTheme (in category 'updating') -----
+ canApplyUserInterfaceTheme
+
+ ^ true!
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-ct.1686.mcz
==================== Summary ====================
Name: Morphic-ct.1686
Author: ct
Time: 17 September 2020, 5:41:03.546813 pm
UUID: 412bd6fc-041c-e74e-959c-498a12f39817
Ancestors: Morphic-mt.1683
Fix: Don't defer construction of main docking bar when initializing a new MorphicProject. Such lazy construction can be really disturbing when preparing a project from another one, as it will be done in Objectland.
=============== Diff against Morphic-mt.1683 ===============
Item was changed:
----- Method: MorphicProject>>initialize (in category 'initialize') -----
initialize
"Initialize a new Morphic Project"
+
super initialize.
+
world := PasteUpMorph newWorldForProject: self.
self setWorldBackground: true.
+
Locale switchToID: CurrentProject localeID.
+ Preferences useVectorVocabulary ifTrue: [world installVectorVocabulary].
+
+ self assureMainDockingBarPresenceMatchesPreference.!
- Preferences useVectorVocabulary ifTrue: [world installVectorVocabulary]!