summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-07-29 15:26:45 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-07-29 15:27:02 +0800
commitdb6f779b1a8781b659838e5fcf929f5d3215cb4f (patch)
tree4121c3c66fc332d59ac4e9daef3bd715e2270e89
parent4792f2f322bee9ee2a2c4ed62386150f162ebd8b (diff)
mpris: use real width instead of implicitwidth
-rw-r--r--bar/Mpris.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/bar/Mpris.qml b/bar/Mpris.qml
index 93872cb..eff5ab7 100644
--- a/bar/Mpris.qml
+++ b/bar/Mpris.qml
@@ -29,7 +29,7 @@ Item {
return title.trim();
}
- implicitWidth: activePlayer ? rect.implicitWidth - General.rectMargin / 1.2 : 0
+ implicitWidth: activePlayer ? rect.width - General.rectMargin / 1.2 : 0
height: Bar.height + General.rectMargin / 1.5
opacity: activePlayer ? 1 : 0
@@ -167,7 +167,7 @@ Item {
duration: General.animateDuration / 4
}
}
- Behavior on implicitWidth {
+ Behavior on width {
ISpringAnimation {
spring: General.springAnimationSpring * 2
damping: General.springAnimationDamping * 1.3