:: commit 3f0591ee8c7714c52c39349fe02c120c36410dce

mintsuki <mintsuki@protonmail.com> — 2023-08-27 07:29

parents: 88bdc3b074

menu: Change menu arrow to use unicode big arrow

diff --git a/common/menu.c b/common/menu.c
index 79fc876f..696703e5 100644
--- a/common/menu.c
+++ b/common/menu.c
@@ -548,12 +548,14 @@ static size_t print_tree(size_t offset, size_t window, const char *shift, size_t
         }
         if (current_entry->sub) {
             if (!no_print) print(current_entry->expanded ? "[-]" : "[+]");
+            cur_len += 3;
         } else if (level) {
-            if (!no_print) print(serial ? "-> " : "─> ");
+            if (!no_print) print(serial ? "-> " : "─►");
+            cur_len += 2;
         } else {
             if (!no_print) print("   ");
+            cur_len += 3;
         }
-        cur_len += 3;
         if (base_index + max_entries == selected_entry) {
             *selected_menu_entry = current_entry;
             if (!no_print) print("\e[7m");
diff --git a/screenshot.png b/screenshot.png
index e1642507..ee107c05 100644
Binary files a/screenshot.png and b/screenshot.png differ
tab: 248 wrap: offon