From e728d5973347e3e2aff535e7692782f8e2d82010 Mon Sep 17 00:00:00 2001 From: Josh Date: Thu, 9 May 2024 09:28:12 -0400 Subject: [PATCH] Fix battery percentage position in status icons --- src/displayapp/widgets/StatusIcons.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/displayapp/widgets/StatusIcons.cpp b/src/displayapp/widgets/StatusIcons.cpp index 83c8338a..ff0b9613 100644 --- a/src/displayapp/widgets/StatusIcons.cpp +++ b/src/displayapp/widgets/StatusIcons.cpp @@ -22,8 +22,8 @@ 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); + + label_battery_value = lv_label_create(container, nullptr); lv_label_set_text_static(label_battery_value, "00%"); lv_obj_align(container, nullptr, LV_ALIGN_IN_TOP_RIGHT, 0, 0);