diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-03-15 20:07:38 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-03-15 20:07:38 +1100 |
| commit | 088a67fa48458c1ce946f082a33f34e0d6002126 (patch) | |
| tree | bec7b7d8f8db3c3496b21ccae2b4e98cfb24c74f /src/modules/launcher | |
| parent | launcher: wallpaper random by category (diff) | |
| download | caelestia-shell-088a67fa48458c1ce946f082a33f34e0d6002126.tar.gz caelestia-shell-088a67fa48458c1ce946f082a33f34e0d6002126.tar.bz2 caelestia-shell-088a67fa48458c1ce946f082a33f34e0d6002126.zip | |
launcher: remove windows mode
Also change mode colours to primary, secondary and tertiary
Diffstat (limited to 'src/modules/launcher')
| -rw-r--r-- | src/modules/launcher/index.tsx | 2 | ||||
| -rw-r--r-- | src/modules/launcher/modes.tsx | 16 | ||||
| -rw-r--r-- | src/modules/launcher/util.tsx | 2 |
3 files changed, 1 insertions, 19 deletions
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; |