commit b533d8fd46f107183864cdce3d2753828473a255
parent f29a3fc8f3df601e6438f768b95fef05295c4319
Author: Manuel Geissbühler <manuel@debian>
Date: Fri, 27 Dec 2024 21:37:05 +0100
debugging
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/gui/screen.hpp b/src/gui/screen.hpp
@@ -25,7 +25,7 @@
class Screen {
private:
int32_t columnDesc[4] = {TIMELINE_COLUMN_WIDTH_PCT, MIDDLE_COLUMN_WIDTH_PCT, BUTTONS_COLUMN_WIDTH_PCT, LV_GRID_TEMPLATE_LAST};
- int32_t rowDesc[7] = {INSTRUCTIONS_ROW_HEIGHT_PCT, BOTTOM_ROW_HEIGHT_PCT, LV_GRID_TEMPLATE_LAST};
+ int32_t rowDesc[3] = {INSTRUCTIONS_ROW_HEIGHT_PCT, BOTTOM_ROW_HEIGHT_PCT, LV_GRID_TEMPLATE_LAST};
protected:
@@ -50,25 +50,25 @@ class Screen {
lv_obj_t *label;
timelineContainer = lv_obj_create(screenPointer);
lv_obj_set_size(timelineContainer, LV_SIZE_CONTENT, LV_SIZE_CONTENT);
- lv_obj_set_grid_cell(timelineContainer, LV_GRID_ALIGN_START, 0, 1, LV_GRID_ALIGN_START, 0, 2);
+ lv_obj_set_grid_cell(timelineContainer, LV_GRID_ALIGN_CENTER, 0, 1, LV_GRID_ALIGN_CENTER, 0, 2);
label = lv_label_create(timelineContainer);
lv_label_set_text(label, "timelineContainer");
instructionsContainer = lv_obj_create(screenPointer);
lv_obj_set_size(instructionsContainer, LV_SIZE_CONTENT, LV_SIZE_CONTENT);
- lv_obj_set_grid_cell(instructionsContainer, LV_GRID_ALIGN_START, 1, 1, LV_GRID_ALIGN_START, 0, 1);
+ lv_obj_set_grid_cell(instructionsContainer, LV_GRID_ALIGN_CENTER, 1, 1, LV_GRID_ALIGN_CENTER, 0, 1);
label = lv_label_create(instructionsContainer);
lv_label_set_text(label, "instructionsContainer");
buttonsContainer = lv_obj_create(screenPointer);
lv_obj_set_size(buttonsContainer, LV_SIZE_CONTENT, LV_SIZE_CONTENT);
- lv_obj_set_grid_cell(buttonsContainer, LV_GRID_ALIGN_START, 2, 1, LV_GRID_ALIGN_START, 0, 2);
+ lv_obj_set_grid_cell(buttonsContainer, LV_GRID_ALIGN_CENTER, 2, 1, LV_GRID_ALIGN_CENTER, 0, 2);
label = lv_label_create(buttonsContainer);
lv_label_set_text(label, "buttonsContainer");
mainContentContainer = lv_obj_create(screenPointer);
lv_obj_set_size(mainContentContainer, LV_SIZE_CONTENT, LV_SIZE_CONTENT);
- lv_obj_set_grid_cell(mainContentContainer, LV_GRID_ALIGN_START, 1, 1, LV_GRID_ALIGN_START, 1, 1);
+ lv_obj_set_grid_cell(mainContentContainer, LV_GRID_ALIGN_CENTER, 1, 1, LV_GRID_ALIGN_CENTER, 1, 1);
label = lv_label_create(mainContentContainer);
lv_label_set_text(label, "mainContenContainer");