From 610940d260fd1a49f5d1fef0b3667a50bc27f5d0 Mon Sep 17 00:00:00 2001 From: Josh Date: Thu, 9 May 2024 09:25:17 -0400 Subject: [PATCH] Reorder status icons --- src/displayapp/widgets/StatusIcons.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); }