From 2898f1f5cc0f5a6ad1cc3e8ea6d87fe2b6e32dd0 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Tue, 15 Jul 2025 18:18:03 +0800 Subject: mpris: better width --- bar/Mpris.qml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bar/Mpris.qml b/bar/Mpris.qml index 9b9e51a..8d1b42f 100644 --- a/bar/Mpris.qml +++ b/bar/Mpris.qml @@ -28,7 +28,7 @@ Item { return title.trim(); } - implicitWidth: activePlayer ? rect.implicitWidth : 0 + implicitWidth: activePlayer ? rect.implicitWidth - General.rectMargin : 0 height: Bar.height + General.rectMargin / 1.5 opacity: activePlayer ? 1 : 0 @@ -39,7 +39,6 @@ Item { height: parent.height - General.rectMargin radius: Style.rounding.smaller color: "transparent" - clip: true ProgressBar { id: pBar @@ -55,8 +54,6 @@ Item { } contentItem: Item { Rectangle { - width: pBar.visualPosition * parent.width - height: parent.height color: Colors.primary radius: Style.rounding.smaller - 1 -- cgit v1.2.3