updated design

This commit is contained in:
2026-08-11 16:34:09 +02:00
parent 3e02c3f36a
commit 39f925cb58
17 changed files with 859 additions and 19 deletions
+7
View File
@@ -53,6 +53,7 @@ PopupWindow {
function open() {
if (!menuHandle) return;
PopupCoordinator.claim(root);
closeAnim.stop();
shown = true;
openAnim.restart();
@@ -68,6 +69,11 @@ PopupWindow {
if (shown) close(); else open();
}
// Shared name used by PopupCoordinator for every transient surface.
function dismiss() {
close();
}
// The grab can only take hold once the popup is actually mapped. Asked for
// in the same tick as `shown`, Hyprland has no surface to hand it and
// clears it immediately — which closed the menu the instant it opened.
@@ -145,6 +151,7 @@ PopupWindow {
onFinished: {
root.shown = false;
holder.x = root.bleed;
PopupCoordinator.release(root);
}
}
}