Skip to content

Commit

Permalink
bottom panel position change and small refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorKalvoda committed Jun 10, 2024
1 parent 3b34a02 commit 91a5ce2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/SpotifyConnect/SPOCApp.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ SPOCApp >> auth: anObject [

{
#category : #ui,
#'squeak_changestamp' : 'VK 6/9/2024 16:42'
#'squeak_changestamp' : 'VK 6/10/2024 12:21'
}
SPOCApp >> bottomPanelContent [

^ {self currentlyPlaying. self switchDevice. self player}
^ {self currentlyPlaying. self player. self switchDevice}
]

{
Expand Down
6 changes: 3 additions & 3 deletions src/SpotifyConnect/SPOCSwitchDevice.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,14 @@ SPOCSwitchDevice >> attachButton [

{
#category : #accessing,
#'squeak_changestamp' : 'VK 6/10/2024 12:08'
#'squeak_changestamp' : 'VK 6/10/2024 12:24'
}
SPOCSwitchDevice >> buildResultDisplay [

self resultDisplay: (SPOCScrollablePanel newWithExtent: (SPOCStyle devicesPanelWidth@SPOCStyle devicesPanelHeight)).
self resultDisplay position: self position + (0@SPOCStyle devicesPanelPadding).
self addMorph: self resultDisplay.
self hideResults.
]

{
Expand Down Expand Up @@ -172,7 +173,7 @@ SPOCSwitchDevice >> hideResults [

{
#category : #initialization,
#'squeak_changestamp' : 'VK 6/9/2024 18:28'
#'squeak_changestamp' : 'VK 6/10/2024 12:23'
}
SPOCSwitchDevice >> initialize [
super initialize.
Expand All @@ -183,7 +184,6 @@ SPOCSwitchDevice >> initialize [
devices: OrderedCollection new;
attachButton;
buildResultDisplay;
hideResults;
extendFully;
yourself
]
Expand Down

0 comments on commit 91a5ce2

Please sign in to comment.