Replies: 1 comment
-
|
if you're using gtk3: if you're using gtk4, you could use something like this: import { Gtk } from "astal/gtk4";
const lookupIcon = (name: string, monochrome: boolean) => {
const iconName = `${name}${monochrome?"-symbolic":""}`
const fallbackIcon = `${icons.fallback.executable}${monochrome?"-symbolic":""}`
return iconSet.lookup_icon(iconName, [fallbackIcon], 16, 1, null, null)?.icon_name
}
`
I'm not sure though if this is a good way to do so. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There was a method in agsv1 "Utils.lookUpIcon" that let you check the existence of icon. Is there something similar in agsv2?
Beta Was this translation helpful? Give feedback.
All reactions