From dcd914dbae039560a4ad4db4edd0264845f7024b Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 15 Jan 2025 15:22:22 +1100 Subject: better popup window Not manual using css, instead use a combination of css opacity and Hyprland animations --- app.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'app.tsx') diff --git a/app.tsx b/app.tsx index 86d98e6..e38c352 100644 --- a/app.tsx +++ b/app.tsx @@ -5,7 +5,6 @@ import Bar from "./modules/bar"; import Launcher from "./modules/launcher"; import NotifPopups from "./modules/notifpopups"; import Players from "./services/players"; -import { PopupWindow } from "./utils/widgets"; const loadStyleAsync = async () => { if (!GLib.file_test(`${SRC}/scss/scheme/_index.scss`, GLib.FileTest.EXISTS)) @@ -34,13 +33,7 @@ App.start({ else if (request === "media next") Players.get_default().lastPlayer?.next(); else if (request === "media previous") Players.get_default().lastPlayer?.previous(); else if (request === "media stop") Players.get_default().lastPlayer?.stop(); - else if (request.startsWith("toggle")) { - const window = App.get_window(request.slice(7)); - if (window instanceof PopupWindow) window.toggle(); - else App.toggle_window(request.slice(7)); - - log = false; - } else return res("Unknown command: " + request); + else return res("Unknown command: " + request); if (log) console.log(`Request handled: ${request}`); res("OK"); -- cgit v1.2.3-freya