From 4dca3912248bcc189378b5a4b467c2fcae9d588e Mon Sep 17 00:00:00 2001 From: Mephisto <38382271+NotMephisto@users.noreply.github.com> Date: Sat, 14 Jun 2025 12:34:56 +0300 Subject: [PATCH] Update apps.ts add getSymbolicIcon() function --- ags/scripts/apps.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ags/scripts/apps.ts b/ags/scripts/apps.ts index 19a8820..ae1fb77 100644 --- a/ags/scripts/apps.ts +++ b/ags/scripts/apps.ts @@ -69,3 +69,10 @@ export function getAppIcon(app: (string|AstalApps.Application)): (string|undefin 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; +}