mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
update
This commit is contained in:
parent
2b7b63a18c
commit
638ef7093e
140 changed files with 307 additions and 121 deletions
13
modules/desktop/astal/src/utils/gtk.ts
Normal file
13
modules/desktop/astal/src/utils/gtk.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
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);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue