Symbolic Icons in workspaces
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import { bind, Variable } from "astal";
|
import { bind, Variable } from "astal";
|
||||||
import { Gtk, Widget } from "astal/gtk3";
|
import { Gtk, Widget } from "astal/gtk3";
|
||||||
import AstalHyprland from "gi://AstalHyprland";
|
import AstalHyprland from "gi://AstalHyprland";
|
||||||
import { getAppIcon } from "../../scripts/apps";
|
import { getSymbolicIcon } from "../../scripts/apps";
|
||||||
|
|
||||||
let showWsNum: (Variable<boolean>|undefined);
|
let showWsNum: (Variable<boolean>|undefined);
|
||||||
export const showWorkspaceNumber = (show: boolean) =>
|
export const showWorkspaceNumber = (show: boolean) =>
|
||||||
@@ -73,7 +73,7 @@ export function Workspaces(): Gtk.Widget {
|
|||||||
: Boolean(lastClient)),
|
: Boolean(lastClient)),
|
||||||
icon: lastClient ?
|
icon: lastClient ?
|
||||||
bind(lastClient, "class").as((clss) =>
|
bind(lastClient, "class").as((clss) =>
|
||||||
getAppIcon(clss) ?? "application-x-executable-symbolic")
|
getSymbolicIcon(clss) ?? "application-x-executable-symbolic")
|
||||||
: undefined
|
: undefined
|
||||||
} as Widget.IconProps)
|
} as Widget.IconProps)
|
||||||
])
|
])
|
||||||
|
|||||||
Reference in New Issue
Block a user