This commit is contained in:
Nickolaj Jepsen 2025-02-20 22:50:06 +01:00
parent 2b7b63a18c
commit 638ef7093e
140 changed files with 307 additions and 121 deletions

View file

@ -1,13 +0,0 @@
import { Gdk, Gtk } from "astal/gtk4";
export const hasIcon = (name: string): boolean => {
if (!name) {
return false;
}
const display = Gdk.Display.get_default();
if (!display) {
return false;
}
return Gtk.IconTheme.get_for_display(display).has_icon(name);
};