From 17552b7a8bda0ce5bf5a2bcbef3280fd1b0f55fc Mon Sep 17 00:00:00 2001 From: ferrreo Date: Fri, 18 Jul 2025 19:03:00 +0100 Subject: [PATCH] fix: missing hover hands (#26) --- Widgets/Sidebar/Panel/Music.qml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Widgets/Sidebar/Panel/Music.qml b/Widgets/Sidebar/Panel/Music.qml index 521351a4..553f3b3c 100644 --- a/Widgets/Sidebar/Panel/Music.qml +++ b/Widgets/Sidebar/Panel/Music.qml @@ -171,8 +171,8 @@ Rectangle { color: Qt.rgba(Theme.textPrimary.r, Theme.textPrimary.g, Theme.textPrimary.b, 0.15) Layout.fillWidth: true - property real progressRatio: MusicManager.trackLength > 0 ? - (MusicManager.currentPosition / MusicManager.trackLength) : 0 + property real progressRatio: Math.min(1, MusicManager.trackLength > 0 ? + (MusicManager.currentPosition / MusicManager.trackLength) : 0) Rectangle { id: progressFill @@ -212,6 +212,7 @@ Rectangle { id: progressMouseArea anchors.fill: parent hoverEnabled: true + cursorShape: Qt.PointingHandCursor enabled: MusicManager.trackLength > 0 && MusicManager.canSeek onClicked: function(mouse) { @@ -247,6 +248,7 @@ Rectangle { id: previousButton anchors.fill: parent hoverEnabled: true + cursorShape: Qt.PointingHandCursor enabled: MusicManager.canGoPrevious onClicked: MusicManager.previous() } @@ -273,6 +275,7 @@ Rectangle { id: playButton anchors.fill: parent hoverEnabled: true + cursorShape: Qt.PointingHandCursor enabled: MusicManager.canPlay || MusicManager.canPause onClicked: MusicManager.playPause() } @@ -299,6 +302,7 @@ Rectangle { id: nextButton anchors.fill: parent hoverEnabled: true + cursorShape: Qt.PointingHandCursor enabled: MusicManager.canGoNext onClicked: MusicManager.next() }