Skip to content

Commit 5a7c855

Browse files
committed
FullscreenUI: Use command/option key icons on MacOS
And the Windows icon on Windows.
1 parent 9f94d6b commit 5a7c855

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

dep/imgui/include/IconsPromptFont.h

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,6 @@
295295
#define ICON_PF_KEY_TILDE "\xF0\x9F\xB3\x99"
296296
#define ICON_PF_KEY_DASH "\xF0\x9F\xB3\x9A"
297297
#define ICON_PF_KEY_EQUAL "\xF0\x9F\xB3\x9B"
298-
#define ICON_PF_KEY_LEFT_ALT "\xF0\x9F\xB3\x9C"
299-
#define ICON_PF_KEY_RIGHT_ALT "\xF0\x9F\xB3\x9D"
300298
#define ICON_PF_KEY_LEFT_CTRL "\xF0\x9F\xB3\x9E"
301299
#define ICON_PF_KEY_RIGHT_CTRL "\xF0\x9F\xB3\x9F"
302300
#define ICON_PF_KEY_LEFT_SHIFT "\xF0\x9F\xB3\xA0"
@@ -379,7 +377,6 @@
379377
#define ICON_PF_DUALSHOCK_CONTROLLER "\xF0\x9F\xB3\xA4"
380378
#define ICON_PF_PLAYSTATION "\xF0\x9F\xB3\xA5"
381379
#define ICON_PF_XBOX "\xF0\x9F\xB3\xA6"
382-
#define ICON_PF_KEY_SUPER "\xF0\x9F\xB3\xA7"
383380
#define ICON_PF_KEY_NUMPAD_1 "\xF0\x9F\xB3\xA8"
384381
#define ICON_PF_KEY_NUMPAD_2 "\xF0\x9F\xB3\xA9"
385382
#define ICON_PF_KEY_NUMPAD_3 "\xF0\x9F\xB3\xAA"
@@ -397,7 +394,20 @@
397394
#define ICON_PF_KEY_NUMPAD_DIVIDE "\xF0\x9F\xB3\xB6"
398395
#define ICON_PF_KEY_NUMPAD_MULTIPLY "\xF0\x9F\xB3\xB7"
399396
#define ICON_PF_KEY_NUMPAD_EQUAL "\xF0\x9F\xB3\xB8"
400-
#define ICON_PF_KEY_OPTION "\xF0\x9F\xB3\xB9"
401-
#define ICON_PF_KEY_COMMAND "\xF0\x9F\xB3\xBA"
402397
#define ICON_PF_MENU "\xF0\x9F\xB3\xBB"
403398
#define ICON_PF_KEY_MINUS "\xF0\x9F\xB3\xBC"
399+
400+
// Platform specific keys.
401+
#if defined(_WIN32)
402+
#define ICON_PF_KEY_SUPER "\xE2\x90\xAA"
403+
#define ICON_PF_KEY_LEFT_ALT "\xF0\x9F\xB3\x9C"
404+
#define ICON_PF_KEY_RIGHT_ALT "\xF0\x9F\xB3\x9D"
405+
#elif defined(__APPLE__)
406+
#define ICON_PF_KEY_SUPER "\xF0\x9F\xB3\xBA"
407+
#define ICON_PF_KEY_LEFT_ALT "\xF0\x9F\xB3\xB9"
408+
#define ICON_PF_KEY_RIGHT_ALT "\xF0\x9F\xB3\xB9"
409+
#else
410+
#define ICON_PF_KEY_SUPER "\xF0\x9F\xB3\xA7"
411+
#define ICON_PF_KEY_LEFT_ALT "\xF0\x9F\xB3\x9C"
412+
#define ICON_PF_KEY_RIGHT_ALT "\xF0\x9F\xB3\x9D"
413+
#endif

0 commit comments

Comments
 (0)