Update apps.ts
add getSymbolicIcon() function
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user