This commit is contained in:
Willy-JL
2023-07-28 00:31:58 +02:00
parent 27fb23d4ce
commit 586d63f223
7 changed files with 25 additions and 16 deletions

View File

@@ -165,9 +165,11 @@ static void menu_draw_callback(Canvas* canvas, void* _model) {
if(i == 0) {
width += 6;
height += 6;
elements_bold_rounded_frame(canvas, pos_x - width / 2, pos_y - height / 2, width, height + 4);
elements_bold_rounded_frame(
canvas, pos_x - width / 2, pos_y - height / 2, width, height + 4);
canvas_set_font(canvas, FontBatteryPercent);
canvas_draw_str_aligned(canvas, pos_x, pos_y + height / 2 + 1, AlignCenter, AlignBottom, "START");
canvas_draw_str_aligned(
canvas, pos_x, pos_y + height / 2 + 1, AlignCenter, AlignBottom, "START");
canvas_draw_rframe(canvas, 0, 0, 128, 18, 3);
canvas_draw_line(canvas, 60, 18, 64, 26);
@@ -178,11 +180,18 @@ static void menu_draw_callback(Canvas* canvas, void* _model) {
canvas_set_color(canvas, ColorBlack);
canvas_set_font(canvas, FontPrimary);
canvas_draw_str_aligned(canvas, pos_x, pos_y - height / 2 - 7, AlignCenter, AlignBottom, item->label);
canvas_draw_str_aligned(
canvas,
pos_x,
pos_y - height / 2 - 7,
AlignCenter,
AlignBottom,
item->label);
} else {
pos_x += (width + 6) * i;
pos_y += 2;
elements_slightly_rounded_frame(canvas, pos_x - width / 2, pos_y - height / 2, width, height);
elements_slightly_rounded_frame(
canvas, pos_x - width / 2, pos_y - height / 2, width, height);
}
if(item->icon) {
canvas_draw_icon_animation(