mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
impr: Added icons to all menu items on macOS
This commit is contained in:
@@ -47,6 +47,10 @@
|
||||
|
||||
#if defined(OS_WEB)
|
||||
#include <emscripten.h>
|
||||
#elif defined(OS_MACOS)
|
||||
extern "C" {
|
||||
void macosRegisterFont(const unsigned char *data, size_t size);
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace hex {
|
||||
@@ -1205,6 +1209,10 @@ namespace hex {
|
||||
offset,
|
||||
fontSizeMultiplier
|
||||
);
|
||||
|
||||
#if defined(OS_MACOS)
|
||||
macosRegisterFont(data.data(), data.size_bytes());
|
||||
#endif
|
||||
}
|
||||
|
||||
void registerFont(const Font& font) {
|
||||
|
||||
Reference in New Issue
Block a user