mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-05 18:22:46 +00:00
WIP: Slowly bringing back viewmodels
This commit is contained in:
parent
9abee12658
commit
228f81984b
17 changed files with 292 additions and 96 deletions
|
@ -14,6 +14,11 @@ ApplicationWindow {
|
|||
height: 600
|
||||
visible: true
|
||||
property int _oldDepth: 0
|
||||
property alias playbackManager: playbackManager
|
||||
|
||||
J.PlaybackManager {
|
||||
id: playbackManager
|
||||
}
|
||||
|
||||
background: Background {
|
||||
id: background
|
||||
|
@ -43,4 +48,20 @@ ApplicationWindow {
|
|||
Component.onCompleted: {
|
||||
ApiClient.restoreSavedSession()
|
||||
}
|
||||
|
||||
footer: Column {
|
||||
id: footer
|
||||
Text {
|
||||
text: qsTr("Now playing")
|
||||
color: "white"
|
||||
}
|
||||
Text {
|
||||
text: playbackManager.item.name ? playbackManager.item.name : "Nothing"
|
||||
color: "white"
|
||||
}
|
||||
}
|
||||
Rectangle {
|
||||
color: "darkblue"
|
||||
anchors.fill: footer
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue