summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/PineTimeStyle.h
diff options
context:
space:
mode:
authorJF <JF002@users.noreply.github.com>2021-10-03 16:13:39 +0200
committerGitHub <noreply@github.com>2021-10-03 16:13:39 +0200
commitfa6c291d3ef9358af9754782ffb4fe6c0f6916dd (patch)
treec5bbcdcd592c04af08b914de5ff9142d08a356ee /src/displayapp/screens/PineTimeStyle.h
parent3442085a3c03fcc0975d1c8c46a838bc18ae5574 (diff)
parent980ac173888883b34367395fdf8ee76c0aea6f72 (diff)
Merge pull request #638 from Riksu9000/detect_full_charge
Detect full charge and improve watchface battery display
Diffstat (limited to 'src/displayapp/screens/PineTimeStyle.h')
-rw-r--r--src/displayapp/screens/PineTimeStyle.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/displayapp/screens/PineTimeStyle.h b/src/displayapp/screens/PineTimeStyle.h
index cb74ead5..ba473806 100644
--- a/src/displayapp/screens/PineTimeStyle.h
+++ b/src/displayapp/screens/PineTimeStyle.h
@@ -41,6 +41,7 @@ namespace Pinetime {
uint8_t currentDay = 0;
DirtyValue<uint8_t> batteryPercentRemaining {};
+ DirtyValue<bool> isCharging {};
DirtyValue<bool> bleState {};
DirtyValue<std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds>> currentDateTime {};
DirtyValue<bool> motionSensorOk {};
@@ -58,7 +59,6 @@ namespace Pinetime {
lv_obj_t* backgroundLabel;
lv_obj_t* batteryIcon;
lv_obj_t* bleIcon;
- lv_obj_t* batteryPlug;
lv_obj_t* calendarOuter;
lv_obj_t* calendarInner;
lv_obj_t* calendarBar1;
@@ -76,6 +76,8 @@ namespace Pinetime {
Controllers::Settings& settingsController;
Controllers::MotionController& motionController;
+ void SetBatteryIcon();
+
lv_task_t* taskRefresh;
};
}