Compare commits

..

No commits in common. "32d445d1f47be076e8d0c85913be4cf414032d2b" and "42cf686dae295439610574e75666d2ec91157428" have entirely different histories.

2 changed files with 0 additions and 6 deletions

View File

@ -14,10 +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);
@ -39,7 +35,6 @@ void StatusIcons::Update() {
if (batteryPercentRemaining.IsUpdated()) {
auto batteryPercent = batteryPercentRemaining.Get();
batteryIcon.SetBatteryPercentage(batteryPercent);
lv_label_set_text_fmt(label_battery_value, "%d%%", batteryPercent);
}
bleState = bleController.IsConnected();

View File

@ -36,7 +36,6 @@ namespace Pinetime {
lv_obj_t* bleIcon;
lv_obj_t* batteryPlug;
lv_obj_t* container;
lv_obj_t* label_battery_value;
};
}
}