fancy open animation, but still no padding

This commit is contained in:
Benjamin Palko 2025-07-23 16:03:41 -04:00
parent 1e087a4f2d
commit 56cd758dd5
6 changed files with 145 additions and 42 deletions

View file

@ -38,32 +38,17 @@ Clickable {
anchors.centerIn: parent
}
PopupWindow {
id: popup
Menu {
id: menu
visible: root.menuOpened
color: 'transparent'
opened: root.menuOpened
anchor.item: root
anchor.rect.x: root.width / 2 - width / 2
anchor.rect.y: root.height + 8
implicitWidth: menu.width
implicitHeight: menu.height
Rectangle {
anchors.fill: parent
color: Theme.palette.base300
radius: 8
}
Menu {
id: menu
menuOpener: QsMenuOpener {
menu: trayItem.menu
}
menuOpener: QsMenuOpener {
menu: trayItem.menu
}
}
}