summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-07-15 18:18:03 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-07-15 18:18:03 +0800
commit2898f1f5cc0f5a6ad1cc3e8ea6d87fe2b6e32dd0 (patch)
treee2f69c2b5d80c477ad8045f6df6642e7f2d94629
parenta92952081a331b7ecbb332d4b89f187ce74b9c02 (diff)
mpris: better width
-rw-r--r--bar/Mpris.qml5
1 files changed, 1 insertions, 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