summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bar/Mpris.qml14
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