summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/BatteryInfo.cpp
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2021-07-13 20:31:26 +0200
committerJean-François Milants <jf@codingfield.com>2021-07-13 20:31:26 +0200
commit3e705548442f1f208c2092ffc865ae824ee0955a (patch)
tree7385ab23e93eb7746cf459c64679ddcdaff4fc41 /src/displayapp/screens/BatteryInfo.cpp
parente21f6a7f414d1f832e8fddfeaab3b9de05aa3459 (diff)
parent4f378e8726fdcff72598aa6ed12eeaa6b3e61355 (diff)
Merge branch 'develop' into notify-battery-level
# Conflicts: # src/displayapp/screens/BatteryInfo.cpp
Diffstat (limited to 'src/displayapp/screens/BatteryInfo.cpp')
-rw-r--r--src/displayapp/screens/BatteryInfo.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/displayapp/screens/BatteryInfo.cpp b/src/displayapp/screens/BatteryInfo.cpp
index 2af024e7..609bef65 100644
--- a/src/displayapp/screens/BatteryInfo.cpp
+++ b/src/displayapp/screens/BatteryInfo.cpp
@@ -95,16 +95,16 @@ void BatteryInfo::UpdateScreen() {
if (batteryController.IsCharging() and batteryPercent < 100) {
lv_obj_set_style_local_bg_color(charging_bar, LV_BAR_PART_INDIC, LV_STATE_DEFAULT, LV_COLOR_RED);
- lv_label_set_text_static(status, "Battery charging");
+ lv_label_set_text_static(status, "Charging");
} else if (batteryPercent == 100) {
lv_obj_set_style_local_bg_color(charging_bar, LV_BAR_PART_INDIC, LV_STATE_DEFAULT, LV_COLOR_BLUE);
- lv_label_set_text_static(status, "Battery is fully charged");
+ lv_label_set_text_static(status, "Fully charged");
} else if (batteryPercent < 10) {
lv_obj_set_style_local_bg_color(charging_bar, LV_BAR_PART_INDIC, LV_STATE_DEFAULT, LV_COLOR_YELLOW);
- lv_label_set_text_static(status, "Battery is low");
+ lv_label_set_text_static(status, "Battery low");
} else {
lv_obj_set_style_local_bg_color(charging_bar, LV_BAR_PART_INDIC, LV_STATE_DEFAULT, LV_COLOR_GREEN);
- lv_label_set_text_static(status, "Battery discharging");
+ lv_label_set_text_static(status, "Discharging");
}
lv_label_set_text_fmt(percent, "%02i%%", batteryPercent);