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 + } + } }