Skip to content

Commit 23991c5

Browse files
committed
fixed centering issue on percent value
1 parent d88f2c0 commit 23991c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/displayapp/screens/BatteryInfo.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ void BatteryInfo::Refresh() {
6868
}
6969

7070
lv_label_set_text_fmt(percent, "%02i%%", batteryPercent);
71+
lv_obj_align(percent, charging_arc, LV_ALIGN_CENTER, 0, 0);
7172

7273
lv_obj_align(status, voltage, LV_ALIGN_IN_BOTTOM_MID, 0, -27);
7374
lv_label_set_text_fmt(voltage, "%1i.%02i volts", batteryVoltage / 1000, batteryVoltage % 1000 / 10);

0 commit comments

Comments
 (0)