Embedd assets icons

This commit is contained in:
2026-10-18 02:57:29 +02:00
parent b77b4a3fc6
commit 726a7ae92d
19 changed files with 1202 additions and 126 deletions

16
data/icons.gresource.xml Normal file
View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Icons compiled into the GUI executable (glib-compile-resources), so the
window has its icon even when no assets are installed. The prefix mirrors
the reverse-DNS app id (shared/ipc_ids.h); the icons/ subtree mirrors the
hicolor layout so gtk_icon_theme_add_resource_path() can serve
gtk_window_set_icon_name("gkeymapper") from the binary. The <file> paths are
relative to the repository root (--sourcedir=.). -->
<gresources>
<gresource prefix="/dev/rager/gkeymapper">
<file alias="icon.png">assets/icon.png</file>
</gresource>
<gresource prefix="/dev/rager/gkeymapper/icons">
<file alias="256x256/apps/gkeymapper.png">assets/icon.png</file>
<file alias="scalable/apps/gkeymapper.svg">assets/icon.svg</file>
</gresource>
</gresources>