Skip to content

Commit

Permalink
skins/QMLDemo: Add cover art to deck row
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed May 26, 2021
1 parent 1d504dd commit 029d252
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions res/skins/QMLDemo/DeckRow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}

}

}

}

0 comments on commit 029d252

Please sign in to comment.