From af33eb7fe9bb700626f23462f63d4377a0adb76d Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Mon, 3 Nov 2025 14:18:09 -0500 Subject: [PATCH] NPanel: added animation on backgroundColor to avoid snap/jumps --- Widgets/NPanel.qml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Widgets/NPanel.qml b/Widgets/NPanel.qml index d8480a06..3fff1d91 100644 --- a/Widgets/NPanel.qml +++ b/Widgets/NPanel.qml @@ -206,6 +206,13 @@ Item { backgroundColor: root.attachedToBar ? Qt.alpha(root.panelBackgroundColor, Settings.data.bar.backgroundOpacity) : root.panelBackgroundColor + Behavior on backgroundColor { + ColorAnimation { + duration: Style.animationFast + easing.type: Easing.InOutQuad + } + } + // Animation properties opacity: root.animationProgress scale: root.attachedToBar ? 1 : (0.95 + root.animationProgress * 0.05)