mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-12 11:18:35 -07:00
commit new compact menu style
This commit is contained in:
@@ -371,10 +371,10 @@ static void menu_draw_callback(Canvas* canvas, void* _model) {
|
|||||||
canvas_set_font(canvas, FontKeyboard);
|
canvas_set_font(canvas, FontKeyboard);
|
||||||
|
|
||||||
for(size_t i = 0; i < 2; i++) {
|
for(size_t i = 0; i < 2; i++) {
|
||||||
for(size_t j = 0; j < 7; j++) { // Change 5 to 6 to accommodate the extra row
|
for(size_t j = 0; j < 7; j++) {
|
||||||
index = i * 7 + j + (position - (position % 14)); // Change 10 to 12
|
index = i * 7 + j + (position - (position % 14));
|
||||||
if(index >= items_count) continue;
|
if(index >= items_count) continue;
|
||||||
y_off = (9 * j) - 4; // Adjust the y offset
|
y_off = (9 * j) - 4;
|
||||||
x_off = 64 * i;
|
x_off = 64 * i;
|
||||||
bool selected = index == position;
|
bool selected = index == position;
|
||||||
size_t scroll_counter = menu_scroll_counter(model, selected);
|
size_t scroll_counter = menu_scroll_counter(model, selected);
|
||||||
|
|||||||
Reference in New Issue
Block a user