From fa01d709c55353ae9fa3e7fb761bae777582708e Mon Sep 17 00:00:00 2001 From: Eriq Taing Date: Mon, 22 Jun 2026 00:03:13 -0400 Subject: [PATCH] Update PlayerControl.qml changed progress into a scrubber --- osd/PlayerControl.qml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/osd/PlayerControl.qml b/osd/PlayerControl.qml index 0742106..2a43c4e 100644 --- a/osd/PlayerControl.qml +++ b/osd/PlayerControl.qml @@ -188,10 +188,11 @@ Item { elide: Text.ElideRight text: playerController.player?.trackArtist } - Rectangle { + id: scrubber Layout.fillWidth: true - Layout.preferredHeight: 4 + Layout.preferredHeight: 8 + Layout.rightMargin: 8 color: blendedColors.colLayer1 visible: playerController.player?.length > 0 @@ -203,6 +204,17 @@ Item { width: (playerController.player?.position / playerController.player?.length) * parent.width radius: parent.height / 2 } + + MouseArea { + id: scrubberInteract + anchors.fill: parent + onClicked: { + if (playerController.player) { + var pos = (mouseX / parent.width) * playerController.player.length + playerController.player.position = pos + } + } + } } RowLayout { Layout.fillWidth: true