1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-29 07:52:50 -05:00

native tray menu

This commit is contained in:
bbedward
2025-08-07 17:01:52 -04:00
parent 3dae0ec5e3
commit 9b7ca88e11
4 changed files with 22 additions and 214 deletions

View File

@@ -542,16 +542,7 @@ PanelWindow {
id: systemTrayComponent
SystemTrayBar {
onMenuRequested: (menu, item, x, y) => {
systemTrayContextMenu.currentTrayMenu = menu;
systemTrayContextMenu.currentTrayItem = item;
systemTrayContextMenu.contextMenuX = rightSection.x + rightSection.width - 400 - Theme.spacingL;
systemTrayContextMenu.contextMenuY = Theme.barHeight - Theme.spacingXS;
systemTrayContextMenu.showContextMenu = true;
if (menu) {
menu.menuVisible = true;
}
}
parentWindow: root
}
}