mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 03:28:36 -07:00
Format
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user