diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-07-18 14:01:53 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-07-18 14:01:53 +0800 |
| commit | 5f64e9a4d86a12b0d3d7d543ce6fae644ba2d911 (patch) | |
| tree | 5dcbd9ae6dc4ee744244cd22b75dc31aa8283b92 /bar | |
| parent | 9826f860f140d9b39e76ffa143f25f0104c03e1b (diff) | |
mpris: better shadow
Diffstat (limited to 'bar')
| -rw-r--r-- | bar/Mpris.qml | 14 |
1 files changed, 13 insertions, 1 deletions
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 |
