From 2f575bc54182aa4b87def6149c49d0f39a1fda69 Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Sun, 31 Aug 2025 20:39:16 -0400 Subject: [PATCH] focus and transition --- components/StyledMenu.qml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/components/StyledMenu.qml b/components/StyledMenu.qml index a9f48f7..24815b6 100644 --- a/components/StyledMenu.qml +++ b/components/StyledMenu.qml @@ -8,5 +8,21 @@ Menu { palette.window: Theme.palette.base100 palette.base: Theme.palette.base100 + focus: true closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent + + enter: Transition { + NumberAnimation { + property: "opacity" + from: 0.0 + to: 1.0 + } + } + exit: Transition { + NumberAnimation { + property: "opacity" + from: 1.0 + to: 0.0 + } + } }