From a92a298684d6e6d497ab7bef98ff1e380a707503 Mon Sep 17 00:00:00 2001 From: hachem Date: Sat, 5 Sep 2026 19:52:33 +0200 Subject: feat: ui refactor of doom and despair --- src/ui/icons.h | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/ui/icons.h (limited to 'src/ui/icons.h') diff --git a/src/ui/icons.h b/src/ui/icons.h new file mode 100644 index 0000000..deca7bd --- /dev/null +++ b/src/ui/icons.h @@ -0,0 +1,41 @@ +#pragma once + +// Phosphor icon glyphs (regular weight). Generated to match assets/fonts/Phosphor.ttf. +// Each value is the UTF-8 encoding of a Private-Use-Area codepoint; merge the font +// over the ui font and print these strings like any other text. + +namespace Hsdbg +{ + // merge range covering every glyph used below + inline constexpr unsigned int ICON_MIN_PH = 0xE000; + inline constexpr unsigned int ICON_MAX_PH = 0xEE00; +} + +#define ICON_PH_PLAY "\xEE\x8F\x90" // U+E3D0 +#define ICON_PH_PAUSE "\xEE\x8E\x9E" // U+E39E +#define ICON_PH_STOP "\xEE\x91\xAC" // U+E46C +#define ICON_PH_STEP_OVER "\xEE\x80\x96" // U+E016 +#define ICON_PH_STEP_INTO "\xEE\x81\x9C" // U+E05C +#define ICON_PH_STEP_OUT "\xEE\x81\xA6" // U+E066 +#define ICON_PH_FOLDER "\xEE\x89\x8A" // U+E24A +#define ICON_PH_FOLDER_OPEN "\xEE\x89\x96" // U+E256 +#define ICON_PH_FILE "\xEE\x88\xB0" // U+E230 +#define ICON_PH_FILE_CODE "\xEE\xA4\x94" // U+E914 +#define ICON_PH_CARET_RIGHT "\xEE\x84\xBA" // U+E13A +#define ICON_PH_CARET_DOWN "\xEE\x84\xB6" // U+E136 +#define ICON_PH_STACK "\xEE\x91\xA6" // U+E466 +#define ICON_PH_BUG "\xEE\x97\xB4" // U+E5F4 +#define ICON_PH_SEARCH "\xEE\x8C\x8C" // U+E30C +#define ICON_PH_GEAR "\xEE\x89\xB2" // U+E272 +#define ICON_PH_CPU "\xEE\x98\x90" // U+E610 +#define ICON_PH_LIST "\xEE\x8B\xB0" // U+E2F0 +#define ICON_PH_FUNCTION "\xEE\xAF\xA4" // U+EBE4 +#define ICON_PH_SLIDERS "\xEE\x90\xB4" // U+E434 +#define ICON_PH_TERMINAL "\xEE\xAB\xA8" // U+EAE8 +#define ICON_PH_DOT "\xEE\xB3\x9E" // U+ECDE +#define ICON_PH_CIRCLE "\xEE\x86\x8A" // U+E18A +#define ICON_PH_EYE "\xEE\x88\xA0" // U+E220 +#define ICON_PH_CUBE "\xEE\x87\x9A" // U+E1DA +#define ICON_PH_GAUGE "\xEE\x98\xA8" // U+E628 +#define ICON_PH_BRANCH "\xEE\x89\xB8" // U+E278 +#define ICON_PH_BRACKETS "\xEE\xA1\xA0" // U+E860 -- cgit v1.3