| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- /* UI icons and the NBICO1 icon bundle.
- *
- * Shared by ngui (user/lib/ngui: enum ngui_icon, ngui_icon()) and the host
- * tool tools/mkicons.c, which rasterizes the Adwaita symbolic SVGs in
- * assets/icons/adwaita/ into /ramfs/icons/adwaita16.icn.
- *
- * ICON_LIST is an X-macro: X(ENUM_SUFFIX, "short name", "theme file"). The
- * order is the icon id and the order of the masks in the bundle, so append
- * only. */
- #ifndef ICON_ABI_H
- #define ICON_ABI_H
- #define ICON_LIST(X) \
- X(FOLDER, "folder", "folder-symbolic") \
- X(FILE, "file", "text-x-generic-symbolic") \
- X(DISK, "disk", "drive-harddisk-symbolic") \
- X(UP, "up", "go-up-symbolic") \
- X(HOME, "home", "go-home-symbolic") \
- X(REFRESH, "refresh", "view-refresh-symbolic") \
- X(PLUS, "plus", "list-add-symbolic") \
- X(CHEVRON_LEFT, "back", "go-previous-symbolic") \
- X(CHEVRON_RIGHT, "forward", "go-next-symbolic") \
- X(STOP, "stop", "process-stop-symbolic") \
- X(CLOSE, "close", "window-close-symbolic") \
- X(SEARCH, "search", "system-search-symbolic") \
- X(MENU, "menu", "open-menu-symbolic")
- /* ---- NBICO1 bundle ------------------------------------------------------
- * [struct icon_file_hdr][count x size*size coverage bytes]
- * One 8-bit coverage mask per icon (0 = transparent, 255 = opaque), rows
- * top to bottom, in ICON_LIST order. Symbolic icons are single-colour, so
- * the drawing side tints the mask with the theme colour. Little-endian. */
- #define ICON_FILE_MAGIC "NBICO1\0\0"
- struct icon_file_hdr {
- char magic[8];
- unsigned short count; /* number of masks */
- unsigned short size; /* mask edge in px, e.g. 16 */
- unsigned int reserved;
- };
- #endif
|