-
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
1 parent
fdd74e1
commit 791e62c
Showing
4 changed files
with
60 additions
and
26 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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
Class { | ||
#name : #SPOCBoxedTextWithIcon, | ||
#superclass : #SPOCBoxedText, | ||
#category : #'SpotifyConnect-UI' | ||
} | ||
|
||
{ | ||
#category : #constructor, | ||
#'squeak_changestamp' : 'VK 6/19/2024 16:21' | ||
} | ||
SPOCBoxedTextWithIcon class >> newWithText: aString withIcon: anAssetPath [ | ||
|
||
| text | | ||
text := SPOCBoxedTextWithIcon new contents: aString; | ||
position: SPOCStyle iconPadding @ 0; | ||
withAssetPath: anAssetPath; | ||
yourself. | ||
^ text | ||
] | ||
|
||
{ | ||
#category : #initialization, | ||
#'squeak_changestamp' : 'VK 6/19/2024 16:23' | ||
} | ||
SPOCBoxedTextWithIcon >> initialize [ | ||
|
||
super initialize. | ||
] | ||
|
||
{ | ||
#category : #accessing, | ||
#'squeak_changestamp' : 'VK 6/19/2024 16:27' | ||
} | ||
SPOCBoxedTextWithIcon >> withAssetPath: anAssetPath [ | ||
|
||
self addMorph: (SPOCIcon new iconAsset: anAssetPath) | ||
] |
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
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
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