summaryrefslogtreecommitdiff
path: root/app.tsx
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-15 15:22:22 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-15 15:22:22 +1100
commitdcd914dbae039560a4ad4db4edd0264845f7024b (patch)
tree4a79a2758eef3f3f0cdd287b0c72c125652d6ada /app.tsx
parentbar: media use identity (diff)
downloadcaelestia-shell-dcd914dbae039560a4ad4db4edd0264845f7024b.tar.gz
caelestia-shell-dcd914dbae039560a4ad4db4edd0264845f7024b.tar.bz2
caelestia-shell-dcd914dbae039560a4ad4db4edd0264845f7024b.zip
better popup window
Not manual using css, instead use a combination of css opacity and Hyprland animations
Diffstat (limited to 'app.tsx')
-rw-r--r--app.tsx9
1 files changed, 1 insertions, 8 deletions
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");