diff --git a/src/displayapp/widgets/StatusIcons.cpp b/src/displayapp/widgets/StatusIcons.cpp index bf330140..83c8338a 100644 --- a/src/displayapp/widgets/StatusIcons.cpp +++ b/src/displayapp/widgets/StatusIcons.cpp @@ -14,9 +14,6 @@ void StatusIcons::Create() { lv_obj_set_style_local_pad_inner(container, LV_CONT_PART_MAIN, LV_STATE_DEFAULT, 5); lv_obj_set_style_local_bg_opa(container, LV_CONT_PART_MAIN, LV_STATE_DEFAULT, LV_OPA_TRANSP); - label_battery_value = lv_label_create(lv_scr_act(), nullptr); - lv_obj_align(label_battery_value, lv_scr_act(), LV_ALIGN_IN_TOP_RIGHT, 0, 0); - lv_label_set_text_static(label_battery_value, "00%"); bleIcon = lv_label_create(container, nullptr); lv_label_set_text_static(bleIcon, Screens::Symbols::bluetooth); @@ -25,6 +22,9 @@ void StatusIcons::Create() { lv_label_set_text_static(batteryPlug, Screens::Symbols::plug); batteryIcon.Create(container); + + label_battery_value = lv_label_create(lv_scr_act(), nullptr); + lv_label_set_text_static(label_battery_value, "00%"); lv_obj_align(container, nullptr, LV_ALIGN_IN_TOP_RIGHT, 0, 0); }