summaryrefslogtreecommitdiff
path: root/src/DisplayApp/Screens/BatteryIcon.h
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-07-04 13:58:15 +0200
committerJF <jf@codingfield.com>2020-07-04 13:58:15 +0200
commitda39f402e5b91c78b724bfe568efc9339459f5a2 (patch)
treed2508ce6eca43c29516feb4d2680cba17890af45 /src/DisplayApp/Screens/BatteryIcon.h
parentbb11891b6e66efdc0a0fc8a9761d94719fd4748f (diff)
Replace bitmap icons by font icons (provided by AwesomeFont and LVGL). These icons are smaller in memory and quicker to draw.
BLE and battery icon replaced in Clock screen. Added heartbeat and step icons in Clock screen. Replace all labels in Menu by icons. Add doc to generate new font.
Diffstat (limited to 'src/DisplayApp/Screens/BatteryIcon.h')
-rw-r--r--src/DisplayApp/Screens/BatteryIcon.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/DisplayApp/Screens/BatteryIcon.h b/src/DisplayApp/Screens/BatteryIcon.h
index 4e2a3a03..58f04a87 100644
--- a/src/DisplayApp/Screens/BatteryIcon.h
+++ b/src/DisplayApp/Screens/BatteryIcon.h
@@ -7,8 +7,9 @@ namespace Pinetime {
namespace Screens {
class BatteryIcon {
public:
- static lv_img_dsc_t* GetUnknownIcon();
- static lv_img_dsc_t* GetIcon(bool isCharging, float batteryPercent);
+ static const char* GetUnknownIcon();
+ static const char* GetBatteryIcon(float batteryPercent);
+ static const char* GetPlugIcon(bool isCharging);
};
}
}