From 519eaa9d29f0c525f9e76a544fdd4d61b2c6bb0e Mon Sep 17 00:00:00 2001 From: lucy Date: Tue, 20 Jan 2026 13:00:53 +0100 Subject: [PATCH] add playing indicator to mpris --- modules/bar/Mpris.qml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/modules/bar/Mpris.qml b/modules/bar/Mpris.qml index aa62b9a..88c271c 100644 --- a/modules/bar/Mpris.qml +++ b/modules/bar/Mpris.qml @@ -24,10 +24,21 @@ Rectangle { return null; } anchors.horizontalCenter: parent.horizontalCenter - implicitWidth: mprisText.implicitWidth + implicitWidth: statusRow.implicitWidth + + Row { + id: statusRow + property var combinedText: root.spotify.trackArtist + " - " + root.spotify.trackTitle + " " + property var status: !root.spotify.isPlaying ? "play_arrow" : "pause" CustomText { id: mprisText - text: root.spotify != null ? root.spotify.trackArtist + " - " + root.spotify.trackTitle : "" + text: root.spotify != null ? parent.combinedText : "" + } + CustomIcon { + id: mprisStatus + text: parent.status + } + } } MouseArea {