From a0dcd97aa637489bdfed2c39e06b037c80dae43c Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Fri, 14 Nov 2025 10:11:57 -0500 Subject: [PATCH] TrayMenu: minimal fade-in animation when appearing. --- Modules/Bar/Extras/TrayMenu.qml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Modules/Bar/Extras/TrayMenu.qml b/Modules/Bar/Extras/TrayMenu.qml index f4e17e78..e0831f7a 100644 --- a/Modules/Bar/Extras/TrayMenu.qml +++ b/Modules/Bar/Extras/TrayMenu.qml @@ -122,6 +122,16 @@ PopupWindow { border.color: Color.mOutline border.width: Math.max(1, Style.borderS) radius: Style.radiusM + + // Fade-in animation + opacity: root.visible ? 1.0 : 0.0 + + Behavior on opacity { + NumberAnimation { + duration: Style.animationNormal + easing.type: Easing.OutQuad + } + } } Flickable { @@ -131,6 +141,16 @@ PopupWindow { contentHeight: columnLayout.implicitHeight interactive: true + // Fade-in animation + opacity: root.visible ? 1.0 : 0.0 + + Behavior on opacity { + NumberAnimation { + duration: Style.animationNormal + easing.type: Easing.OutQuad + } + } + // Use a ColumnLayout to handle menu item arrangement ColumnLayout { id: columnLayout