diff options
| author | Riku Isokoski <riksu9000@gmail.com> | 2021-09-03 11:35:38 (GMT) |
|---|---|---|
| committer | Riku Isokoski <riksu9000@gmail.com> | 2021-09-03 11:35:38 (GMT) |
| commit | fd52ca8fe6f42226ec32a001f4c61dc100ead94a (patch) | |
| tree | 250d929d0c9bfb682e7884c907f284a785b2484f /src/displayapp/screens/PineTimeStyle.h | |
| parent | 6f9f0e8b0e42a5526d47ca664534fb6b0ccb6ace (diff) | |
Detect full charge and improve watchface display
Diffstat (limited to 'src/displayapp/screens/PineTimeStyle.h')
| -rw-r--r-- | src/displayapp/screens/PineTimeStyle.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/displayapp/screens/PineTimeStyle.h b/src/displayapp/screens/PineTimeStyle.h index cb74ead..ba47380 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; }; } |
