generated from hpi-swa-teaching/SWT-Demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
28 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
Squello-Core.package/SPBLabelMorph.class/class/createFromLabel..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
2 changes: 1 addition & 1 deletion
2
Squello-Core.package/SPBLabelMorph.class/instance/applyUserInterfaceTheme.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
as yet unclassified | ||
initialization | ||
applyUserInterfaceTheme | ||
|
||
super applyUserInterfaceTheme. | ||
|
4 changes: 4 additions & 0 deletions
4
Squello-Core.package/SPBLabelMorph.class/instance/defaultCornerRadius.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
constants | ||
defaultCornerRadius | ||
|
||
^ 8. |
8 changes: 4 additions & 4 deletions
8
Squello-Core.package/SPBLabelMorph.class/instance/initialize.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
constants | ||
padding | ||
|
||
^ 4 @ 2. |
6 changes: 4 additions & 2 deletions
6
Squello-Core.package/SPBLabelMorph.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" } } |