From 5f64e9a4d86a12b0d3d7d543ce6fae644ba2d911 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Fri, 18 Jul 2025 14:01:53 +0800 Subject: mpris: better shadow --- bar/Mpris.qml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'bar') diff --git a/bar/Mpris.qml b/bar/Mpris.qml index e730fe9..a97685b 100644 --- a/bar/Mpris.qml +++ b/bar/Mpris.qml @@ -104,9 +104,21 @@ Item { opacity: activePlayer?.playbackState === MprisPlaybackState.Playing ? 1 : Bar.mediaPausedOpacity - RectangularShadow { + DropShadow { anchors.fill: image + source: image + opacity: activePlayer?.playbackState === MprisPlaybackState.Playing ? 1 : Bar.mediaPausedOpacity + radius: 6 + color: WallustColors.background + + Behavior on opacity { + NumberAnimation { + duration: General.animateDuration / 4 + easing.type: Easing.InOutQuad + } + } } + ClippingWrapperRectangle { id: image anchors.fill: parent -- cgit v1.2.3