Update apps.ts

add getSymbolicIcon() function
This commit is contained in:
Mephisto
2025-06-14 12:34:56 +03:00
committed by GitHub
parent d67fd5fc03
commit 4dca391224
+7
View File
@@ -69,3 +69,10 @@ export function getAppIcon(app: (string|AstalApps.Application)): (string|undefin
return getIconByAppName(app.name); return getIconByAppName(app.name);
} }
export function getSymbolicIcon(app: (string|AstalApps.Application)): (string|undefined) {
if (Astal.Icon.lookup_icon(`${getAppIcon(app)}-symbolic`))
return `${getAppIcon(app)}-symbolic`
return undefined;
}