Reorder status icons
This commit is contained in:
parent
32d445d1f4
commit
610940d260
@ -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);
|
||||||
@ -26,6 +23,9 @@ void StatusIcons::Create() {
|
|||||||
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user