Skip to content

Commit

Permalink
Merge FeatureThemes into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonia Heinen committed Jun 22, 2024
2 parents fdbb3e1 + 401231b commit 37c2e1b
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 15 deletions.
8 changes: 1 addition & 7 deletions Squello-Core.package/SPBLabel.class/instance/asMorph.st
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
converting
asMorph

^ SPBLabelMorph new
backgroundColor: self color;
color: self color makeForegroundColor;
contents: self title;
extent: 100@21;
lock;
yourself.
^ SPBLabelMorph createFromLabel: self.
2 changes: 1 addition & 1 deletion Squello-Core.package/SPBLabel.class/methodProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"instance" : {
"=" : "jh 7/31/2022 13:05",
"asForm" : "tk 8/2/2022 23:37",
"asMorph" : "AH 6/20/2024 23:57",
"asMorph" : "AH 6/22/2024 15:56",
"asString" : "lo 6/5/2022 14:49",
"color" : "lo 5/16/2022 22:01",
"color:" : "lo 5/23/2022 16:52",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
instance creation
createFromLabel: aLabel

^ SPBLabelMorph new
backgroundColor: aLabel color;
color: aLabel color makeForegroundColor;
contents: aLabel title;
lock;
yourself.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
as yet unclassified
initialization
applyUserInterfaceTheme

super applyUserInterfaceTheme.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
constants
defaultCornerRadius

^ 8.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
as yet unclassified
initialization
initialize

super initialize.
self cornerStyle: #rounded;
cornerRadius: 8;
margins: 4@2.
self applyUserInterfaceTheme.
cornerRadius: self defaultCornerRadius;
margins: self padding;
applyUserInterfaceTheme.
4 changes: 4 additions & 0 deletions Squello-Core.package/SPBLabelMorph.class/instance/padding.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
constants
padding

^ 4 @ 2.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"class" : {
},
"createFromLabel:" : "AH 6/22/2024 15:59" },
"instance" : {
"applyUserInterfaceTheme" : "AH 6/20/2024 23:12",
"initialize" : "AH 6/20/2024 23:06" } }
"defaultCornerRadius" : "AH 6/22/2024 16:02",
"initialize" : "AH 6/22/2024 16:02",
"padding" : "AH 6/22/2024 16:02" } }

0 comments on commit 37c2e1b

Please sign in to comment.