diff options
| author | Riku Isokoski <riksu9000@gmail.com> | 2022-04-07 17:28:04 +0300 |
|---|---|---|
| committer | Riku Isokoski <riksu9000@gmail.com> | 2022-04-25 17:03:08 +0300 |
| commit | b31fbb4adb0f895ff32b93fff492070e44716d54 (patch) | |
| tree | 337c1fe0065f7f20738804b74e824347e87bc207 /src/displayapp/screens/BatteryIcon.h | |
| parent | 54df828665b135aa5e49a2e182bad59d2d705039 (diff) | |
New sharper batteryicon. Remove old unused batteryicons
Diffstat (limited to 'src/displayapp/screens/BatteryIcon.h')
| -rw-r--r-- | src/displayapp/screens/BatteryIcon.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/displayapp/screens/BatteryIcon.h b/src/displayapp/screens/BatteryIcon.h index bec2e4e0..81f94ac4 100644 --- a/src/displayapp/screens/BatteryIcon.h +++ b/src/displayapp/screens/BatteryIcon.h @@ -1,15 +1,24 @@ #pragma once #include <cstdint> +#include <lvgl/src/lv_core/lv_obj.h> namespace Pinetime { namespace Applications { namespace Screens { class BatteryIcon { public: + void Create(lv_obj_t* parent); + + void SetColor(lv_color_t); + void SetBatteryPercentage(uint8_t percentage); + lv_obj_t* GetObject(); + static const char* GetUnknownIcon(); - static const char* GetBatteryIcon(uint8_t batteryPercent); static const char* GetPlugIcon(bool isCharging); + private: + lv_obj_t* batteryImg; + lv_obj_t* batteryJuice; }; } } -}
\ No newline at end of file +} |
