From 1926753794d27cca26bf659ba2a4a39994c97b90 Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Tue, 14 Mar 2023 22:47:06 +0000 Subject: [PATCH] Improve wii ui style --- applications/services/gui/modules/menu.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/applications/services/gui/modules/menu.c b/applications/services/gui/modules/menu.c index bdf145bd4..e850451c0 100644 --- a/applications/services/gui/modules/menu.c +++ b/applications/services/gui/modules/menu.c @@ -57,23 +57,29 @@ static void menu_draw_callback(Canvas* canvas, void* _model) { item_i = shift_position + i; if(item_i >= items_count) break; item = MenuItemArray_get(model->items, item_i); - x_off = (i / 2) * 40 + 5; + x_off = (i / 2) * 43 + 1; y_off = (i % 2) * 32; + if(item_i == position) { + elements_slightly_rounded_box(canvas, 0 + x_off, 0 + y_off, 40, 30); + canvas_set_color(canvas, ColorWhite); + } if(item->icon) { - canvas_draw_icon_animation(canvas, 11 + x_off, 4 + y_off, item->icon); + canvas_draw_icon_animation(canvas, 13 + x_off, 2 + y_off, item->icon); } furi_string_set(name, item->label); elements_scrollable_text_line( canvas, - 18 + x_off, - 24 + y_off, - 32, + 20 + x_off, + 23 + y_off, + 36, name, 0, false, true); if(item_i == position) { - elements_frame(canvas, 0 + x_off, 0 + y_off, 36, 30); + canvas_set_color(canvas, ColorBlack); + } else { + elements_frame(canvas, 0 + x_off, 0 + y_off, 40, 30); } } furi_string_free(name);