mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
complete rework v3
This commit is contained in:
parent
7409e9ca10
commit
366a0e221a
131 changed files with 20171 additions and 585 deletions
13
parts/modules/desktop/astal/src/utils/gtk.ts
Normal file
13
parts/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