Fix battery percentage position in status icons
This commit is contained in:
parent
610940d260
commit
e728d59733
@ -22,8 +22,8 @@ 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);
|
label_battery_value = lv_label_create(container, nullptr);
|
||||||
lv_label_set_text_static(label_battery_value, "00%");
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user