From 68ff5c691a9baf0d891b48f1aaf942f597843ae8 Mon Sep 17 00:00:00 2001 From: jordanmontt Date: Wed, 6 Aug 2025 10:51:12 +0200 Subject: [PATCH 1/4] Adding pastels themes to the baseline of Morphic. --- .../BaselineOfMorphic.class.st | 13 ++++++++++++- src/BaselineOfPharo/BaselineOfPharo.class.st | 17 +++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/src/BaselineOfMorphic/BaselineOfMorphic.class.st b/src/BaselineOfMorphic/BaselineOfMorphic.class.st index ec60f0c9fd2..eee0307c146 100644 --- a/src/BaselineOfMorphic/BaselineOfMorphic.class.st +++ b/src/BaselineOfMorphic/BaselineOfMorphic.class.st @@ -97,7 +97,8 @@ BaselineOfMorphic >> baseline: spec [ loads: 'core' ]. spec package: 'Polymorph-Widgets'. - spec package: 'DarkBlueTheme'. + "Custom themes" + self loadThemes: spec. spec package: 'Images-Animated'. @@ -241,6 +242,16 @@ BaselineOfMorphic >> loadBitmapSourcePro [ TextConstants TextSharedInformation at: #'Bitmap Source Code Pro' put: codePro. ] +{ #category : 'baseline' } +BaselineOfMorphic >> loadThemes: spec [ + + spec package: 'DarkBlueTheme'. + spec baseline: 'Pastels' with: [ + spec + repository: (self classNamed: #BaselineOfPharo) pastelsRepository; + loads: 'default' ] +] + { #category : 'actions' } BaselineOfMorphic >> postload: loader package: packageSpec [ diff --git a/src/BaselineOfPharo/BaselineOfPharo.class.st b/src/BaselineOfPharo/BaselineOfPharo.class.st index b083717654b..ca427fdb84c 100644 --- a/src/BaselineOfPharo/BaselineOfPharo.class.st +++ b/src/BaselineOfPharo/BaselineOfPharo.class.st @@ -104,6 +104,23 @@ BaselineOfPharo class >> newToolsRepository [ ^ (self externalProjectNamed: 'NewTools') repository ] +{ #category : 'accessing - external projects' } +BaselineOfPharo class >> pastels [ + + + ^ PharoExternalProject + newName: 'Pastels' + owner: 'Ducasse' + project: 'Pastels' + version: 'master' +] + +{ #category : 'repository urls' } +BaselineOfPharo class >> pastelsRepository [ + + ^ (self externalProjectNamed: 'Pastels') repository +] + { #category : 'class initialization' } BaselineOfPharo class >> reset [