commit 73ac456acbe33dbc7328d273413fd3cadb6f5e33
parent 5db212ab9c290771adc157b2d29a7bd294bd59c1
Author: Manuel Geissbühler <manuel@debian>
Date: Sat, 28 Dec 2024 08:46:43 +0100
testing
Diffstat:
1 file changed, 4 insertions(+), 9 deletions(-)
diff --git a/src/gui/screen.hpp b/src/gui/screen.hpp
@@ -62,21 +62,16 @@ class Screen {
//Add empty widdgets to the Grid Layout as containers to be filled by child classes
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_STRETCH, 0, 1, LV_GRID_ALIGN_STRETCH, 0, 2);
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_STRETCH, 1, 1, LV_GRID_ALIGN_STRETCH, 0, 1);
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_STRETCH, 2, 1, LV_GRID_ALIGN_STRETCH, 0, 2);
mainContentContainer = lv_obj_create(screenPointer);
-
- lv_obj_set_grid_cell(mainContentContainer, LV_GRID_ALIGN_START, 1, 1, LV_GRID_ALIGN_START, 1, 1);
- lv_obj_set_size(mainContentContainer, lv_pct(100), lv_pct(100));
+ lv_obj_set_grid_cell(mainContentContainer, LV_GRID_ALIGN_STRETCH, 1, 1, LV_GRID_ALIGN_STRETCH, 1, 1);
lv_color_t color;
color.blue = 0;
color.green = 100;