summaryrefslogtreecommitdiff
path: root/src/DisplayApp/Screens/BatteryIcon.h
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-03-14 16:37:45 +0100
committerGitea <gitea@fake.local>2020-03-14 16:37:45 +0100
commit6c4afdc4f326d796e794279388ddd0a222a1d597 (patch)
treecb277bb2efe7bc51737db9784483c736a3a87937 /src/DisplayApp/Screens/BatteryIcon.h
parenta91c68c931cc8308e87acd796afb46ba70ae3dc2 (diff)
parent4d2aacf8639f565b822020cdb43c011e1a72dc7b (diff)
Merge branch 'battery-icon' of JF/PineTime into develop
Diffstat (limited to 'src/DisplayApp/Screens/BatteryIcon.h')
-rw-r--r--src/DisplayApp/Screens/BatteryIcon.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/DisplayApp/Screens/BatteryIcon.h b/src/DisplayApp/Screens/BatteryIcon.h
new file mode 100644
index 00000000..4e2a3a03
--- /dev/null
+++ b/src/DisplayApp/Screens/BatteryIcon.h
@@ -0,0 +1,15 @@
+#pragma once
+
+#include <libs/lvgl/src/lv_draw/lv_img_decoder.h>
+
+namespace Pinetime {
+ namespace Applications {
+ namespace Screens {
+ class BatteryIcon {
+ public:
+ static lv_img_dsc_t* GetUnknownIcon();
+ static lv_img_dsc_t* GetIcon(bool isCharging, float batteryPercent);
+ };
+ }
+ }
+} \ No newline at end of file