From 46178a73763710f2ced5f7ee5565e8811384c9fa Mon Sep 17 00:00:00 2001 From: Felitendo Date: Wed, 23 Sep 2026 00:17:34 +0200 Subject: [PATCH] fix: drop the shadow layer before the island slides away --- src/agent/qml/Bubble.qml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/agent/qml/Bubble.qml b/src/agent/qml/Bubble.qml index 977a379..323b95e 100644 --- a/src/agent/qml/Bubble.qml +++ b/src/agent/qml/Bubble.qml @@ -159,14 +159,18 @@ Item { // From size alone, so it cannot jump when the island turns. radius: root.minimal ? height / 2 : Math.min(Theme.openRadius, height / 2) - layer.enabled: true + // The shadow goes first when it closes, and with it the layer + // the effect draws into: some drivers leave a faint dark box of + // that layer's margin behind a moving island. + property real shadow: root.expanded ? 0.35 : 0 + Behavior on shadow { NumberAnimation { duration: (root.opening ? 200 : 120) * root.pace } } + layer.enabled: shadow > 0.001 layer.effect: MultiEffect { shadowEnabled: true shadowColor: "#000000" - shadowOpacity: root.expanded ? 0.35 : 0 + shadowOpacity: shape.shadow shadowBlur: 0.7 shadowVerticalOffset: 3 - Behavior on shadowOpacity { NumberAnimation { duration: 200 * root.pace } } } }