From 088a67fa48458c1ce946f082a33f34e0d6002126 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 15 Mar 2025 20:07:38 +1100 Subject: launcher: remove windows mode Also change mode colours to primary, secondary and tertiary --- src/modules/launcher/index.tsx | 2 -- src/modules/launcher/modes.tsx | 16 ---------------- src/modules/launcher/util.tsx | 2 +- 3 files changed, 1 insertion(+), 19 deletions(-) (limited to 'src/modules/launcher') diff --git a/src/modules/launcher/index.tsx b/src/modules/launcher/index.tsx index 3f8645e..973f5cd 100644 --- a/src/modules/launcher/index.tsx +++ b/src/modules/launcher/index.tsx @@ -10,7 +10,6 @@ const getModeIcon = (mode: Mode) => { if (mode === "apps") return "apps"; if (mode === "files") return "folder"; if (mode === "math") return "calculate"; - if (mode === "windows") return "select_window"; return "search"; }; @@ -18,7 +17,6 @@ const getPrettyMode = (mode: Mode) => { if (mode === "apps") return "Apps"; if (mode === "files") return "Files"; if (mode === "math") return "Math"; - if (mode === "windows") return "Windows"; return mode; }; diff --git a/src/modules/launcher/modes.tsx b/src/modules/launcher/modes.tsx index 3f6e03e..0db7cd5 100644 --- a/src/modules/launcher/modes.tsx +++ b/src/modules/launcher/modes.tsx @@ -218,24 +218,8 @@ class Math extends Widget.Box implements LauncherContent { } } -@register() -class Windows extends Widget.Box implements LauncherContent { - constructor() { - super({ name: "windows", className: "windows" }); - } - - updateContent(search: string): void { - throw new Error("Method not implemented."); - } - - handleActivate(search: string): void { - throw new Error("Method not implemented."); - } -} - export default () => ({ apps: new Apps(), files: new Files(), math: new Math(), - windows: new Windows(), }); diff --git a/src/modules/launcher/util.tsx b/src/modules/launcher/util.tsx index 3c4e8bf..8288588 100644 --- a/src/modules/launcher/util.tsx +++ b/src/modules/launcher/util.tsx @@ -2,7 +2,7 @@ import { FlowBox } from "@/utils/widgets"; import type { Variable } from "astal"; import { App, Gtk } from "astal/gtk3"; -export type Mode = "apps" | "files" | "math" | "windows"; +export type Mode = "apps" | "files" | "math"; export interface LauncherContent { updateContent(search: string): void; -- cgit v1.2.3-freya