From 029d25224e715d3ea6a18057b7e229f75ac1777b Mon Sep 17 00:00:00 2001 From: Jan Holthuis Date: Tue, 25 May 2021 23:06:50 +0200 Subject: [PATCH] skins/QMLDemo: Add cover art to deck row --- res/skins/QMLDemo/DeckRow.qml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/res/skins/QMLDemo/DeckRow.qml b/res/skins/QMLDemo/DeckRow.qml index 16ceb8c8a518..748980b5f519 100644 --- a/res/skins/QMLDemo/DeckRow.qml +++ b/res/skins/QMLDemo/DeckRow.qml @@ -16,6 +16,20 @@ Item { anchors.fill: parent Layout.margins: 0 + Rectangle { + Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter + implicitWidth: 50 + implicitHeight: 50 + Layout.margins: 5 + color: "#121213" + + Image { + anchors.fill: parent + source: leftDeckPlayer.coverArtUrl + } + + } + Rectangle { color: root.leftDeckPlayer.color Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter @@ -241,6 +255,20 @@ Item { } + Rectangle { + Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter + implicitWidth: 50 + implicitHeight: 50 + Layout.margins: 5 + color: "#121213" + + Image { + anchors.fill: parent + source: rightDeckPlayer.coverArtUrl + } + + } + } }