fix: missing hover hands (#26)
This commit is contained in:
parent
71e03f91c0
commit
17552b7a8b
1 changed files with 6 additions and 2 deletions
|
|
@ -171,8 +171,8 @@ Rectangle {
|
||||||
color: Qt.rgba(Theme.textPrimary.r, Theme.textPrimary.g, Theme.textPrimary.b, 0.15)
|
color: Qt.rgba(Theme.textPrimary.r, Theme.textPrimary.g, Theme.textPrimary.b, 0.15)
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
property real progressRatio: MusicManager.trackLength > 0 ?
|
property real progressRatio: Math.min(1, MusicManager.trackLength > 0 ?
|
||||||
(MusicManager.currentPosition / MusicManager.trackLength) : 0
|
(MusicManager.currentPosition / MusicManager.trackLength) : 0)
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: progressFill
|
id: progressFill
|
||||||
|
|
@ -212,6 +212,7 @@ Rectangle {
|
||||||
id: progressMouseArea
|
id: progressMouseArea
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
cursorShape: Qt.PointingHandCursor
|
||||||
enabled: MusicManager.trackLength > 0 && MusicManager.canSeek
|
enabled: MusicManager.trackLength > 0 && MusicManager.canSeek
|
||||||
|
|
||||||
onClicked: function(mouse) {
|
onClicked: function(mouse) {
|
||||||
|
|
@ -247,6 +248,7 @@ Rectangle {
|
||||||
id: previousButton
|
id: previousButton
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
cursorShape: Qt.PointingHandCursor
|
||||||
enabled: MusicManager.canGoPrevious
|
enabled: MusicManager.canGoPrevious
|
||||||
onClicked: MusicManager.previous()
|
onClicked: MusicManager.previous()
|
||||||
}
|
}
|
||||||
|
|
@ -273,6 +275,7 @@ Rectangle {
|
||||||
id: playButton
|
id: playButton
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
cursorShape: Qt.PointingHandCursor
|
||||||
enabled: MusicManager.canPlay || MusicManager.canPause
|
enabled: MusicManager.canPlay || MusicManager.canPause
|
||||||
onClicked: MusicManager.playPause()
|
onClicked: MusicManager.playPause()
|
||||||
}
|
}
|
||||||
|
|
@ -299,6 +302,7 @@ Rectangle {
|
||||||
id: nextButton
|
id: nextButton
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
cursorShape: Qt.PointingHandCursor
|
||||||
enabled: MusicManager.canGoNext
|
enabled: MusicManager.canGoNext
|
||||||
onClicked: MusicManager.next()
|
onClicked: MusicManager.next()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue