Reorder status icons

This commit is contained in:
Josh 2024-05-09 09:25:17 -04:00
parent 32d445d1f4
commit 610940d260

View File

@ -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_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); 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); bleIcon = lv_label_create(container, nullptr);
lv_label_set_text_static(bleIcon, Screens::Symbols::bluetooth); 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); lv_label_set_text_static(batteryPlug, Screens::Symbols::plug);
batteryIcon.Create(container); 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); lv_obj_align(container, nullptr, LV_ALIGN_IN_TOP_RIGHT, 0, 0);
} }