SetingTimeFormat use CheckboxList, reduce duplication

This commit is contained in:
Riku Isokoski
2023-01-03 17:09:59 +02:00
parent 96165a8541
commit 3c9b3435a5
3 changed files with 49 additions and 71 deletions

View File

@@ -28,7 +28,9 @@ CheckboxList::CheckboxList(const uint8_t screenID,
// Set the background to Black
lv_obj_set_style_local_bg_color(lv_scr_act(), LV_OBJ_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_BLACK);
pageIndicator.Create();
if (numScreens > 1) {
pageIndicator.Create();
}
lv_obj_t* container1 = lv_cont_create(lv_scr_act(), nullptr);