From b520eb490c7b99659bdb685995e5ad4a3507cbb3 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 13 Jul 2025 17:16:14 +0800 Subject: workspace more fix + activewindow] --- bar/Mpris.qml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'bar/Mpris.qml') diff --git a/bar/Mpris.qml b/bar/Mpris.qml index 8d56335..5abd2d4 100644 --- a/bar/Mpris.qml +++ b/bar/Mpris.qml @@ -46,10 +46,27 @@ Item { } } - Text { + implicitWidth: rect.width + 3 // +3 cause it look better somehow + + // TODO fancy animation progress bar etc. + Rectangle { + id: rect anchors.verticalCenter: parent.verticalCenter - text: root.state + " " + root.cleanedTitle + " [" + root.progress + "]" + // TODO: move to IRect + implicitWidth: text.width + General.rectMargin * 2 + implicitHeight: parent.height + color: Colors.alt + radius: Style.rounding.smaller + Text { + id: text + // TODO: use IText + font.pixelSize: General.fontSize + anchors.centerIn: parent + anchors.verticalCenter: parent.verticalCenter + text: root.state + " " + root.cleanedTitle + " [" + root.progress + "]" + } } + // hover // Text { // text: root.activePlayer.trackTitle + " by " + root.activePlayer.trackArtist + " - " + root.activePlayer.trackAlbum + root.activePlayer.position + "/" + root.activePlayer.length -- cgit v1.2.3