aboutsummaryrefslogtreecommitdiffstats
path: root/src/DisplayApp/Screens/BleIcon.cpp
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/BleIcon.cpp
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/BleIcon.cpp')
-rw-r--r--src/DisplayApp/Screens/BleIcon.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/DisplayApp/Screens/BleIcon.cpp b/src/DisplayApp/Screens/BleIcon.cpp
index 28a7727c..1bbbd053 100644
--- a/src/DisplayApp/Screens/BleIcon.cpp
+++ b/src/DisplayApp/Screens/BleIcon.cpp
@@ -1,12 +1,8 @@
#include "BleIcon.h"
-
+#include "Symbols.h"
using namespace Pinetime::Applications::Screens;
-
-extern lv_img_dsc_t ck_os_bt_connected;
-extern lv_img_dsc_t ck_os_bt_disconnected;
-
-lv_img_dsc_t *BleIcon::GetIcon(bool isConnected) {
- if(isConnected) return &ck_os_bt_connected;
- else return &ck_os_bt_disconnected;
+const char* BleIcon::GetIcon(bool isConnected) {
+ if(isConnected) return Symbols::bluetooth;
+ else return "";
} \ No newline at end of file