Symbolic Icons in workspaces

This commit is contained in:
Mephisto
2025-06-17 21:09:32 +03:00
committed by GitHub
parent f6705077f1
commit d7b20bc8b8
+2 -2
View File
@@ -1,7 +1,7 @@
import { bind, Variable } from "astal";
import { Gtk, Widget } from "astal/gtk3";
import AstalHyprland from "gi://AstalHyprland";
import { getAppIcon } from "../../scripts/apps";
import { getSymbolicIcon } from "../../scripts/apps";
let showWsNum: (Variable<boolean>|undefined);
export const showWorkspaceNumber = (show: boolean) =>
@@ -73,7 +73,7 @@ export function Workspaces(): Gtk.Widget {
: Boolean(lastClient)),
icon: lastClient ?
bind(lastClient, "class").as((clss) =>
getAppIcon(clss) ?? "application-x-executable-symbolic")
getSymbolicIcon(clss) ?? "application-x-executable-symbolic")
: undefined
} as Widget.IconProps)
])