Skip to content

Commit

Permalink
skins/QMLDemo: Add spinny to decks
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed May 28, 2021
1 parent 3d048c6 commit a66efd6
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions res/skins/QMLDemo/Deck.qml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,33 @@ Item {
color: "black"
}

Item {
id: spinny
anchors.fill: coverArt

// The Spinnies are automatically hidden if the track
// is stopped. This is not really useful, but is nice for
// demo'ing transitions.
Mixxx.ControlProxy {
group: root.group
key: "play"
onValueChanged: spinnyIndicator.indicatorVisible = (value > 0.0)
}

MixxxControls.Spinny {
id: spinnyIndicator
anchors.fill: parent
group: root.group
indicatorVisible: false
indicatorDelegate: Image {
mipmap: true
width: spinnyIndicator.width
height: spinnyIndicator.height
source: "../LateNight/palemoon/style/spinny_indicator.svg"
}
}
}

Item {
id: trackText

Expand Down

0 comments on commit a66efd6

Please sign in to comment.