summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/HeartRate.h
diff options
context:
space:
mode:
authorJoaquim <joaquim.org@gmail.com>2021-04-04 02:08:51 (GMT)
committerJoaquim <joaquim.org@gmail.com>2021-04-04 02:08:51 (GMT)
commit1d3742e14f09316a1d795527713eb8f9742f0ffb (patch)
tree6bc6343538506b68256aa057121e063d22f8ed1a /src/displayapp/screens/HeartRate.h
parent58a2d000c4d49d96121894d6dd6bb861d7564bea (diff)
Big UI and navigation Rewrite
new navigation add some color to the apps redesign menus new settings menu new quick settings code clean up size reduction by converting navigation images to font and more...
Diffstat (limited to 'src/displayapp/screens/HeartRate.h')
-rw-r--r--src/displayapp/screens/HeartRate.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/displayapp/screens/HeartRate.h b/src/displayapp/screens/HeartRate.h
index b942499..c8f3699 100644
--- a/src/displayapp/screens/HeartRate.h
+++ b/src/displayapp/screens/HeartRate.h
@@ -4,6 +4,7 @@
#include <chrono>
#include "Screen.h"
#include <bits/unique_ptr.h>
+#include "systemtask/SystemTask.h"
#include <libs/lvgl/src/lv_core/lv_style.h>
#include <libs/lvgl/src/lv_core/lv_obj.h>
@@ -16,25 +17,24 @@ namespace Pinetime {
class HeartRate : public Screen{
public:
- HeartRate(DisplayApp* app, Controllers::HeartRateController& HeartRateController);
+ HeartRate(DisplayApp* app, Controllers::HeartRateController& HeartRateController, System::SystemTask &systemTask);
~HeartRate() override;
bool Refresh() override;
- bool OnButtonPushed() override;
+
void OnStartStopEvent(lv_event_t event);
private:
Controllers::HeartRateController& heartRateController;
+ Pinetime::System::SystemTask& systemTask;
void UpdateStartStopButton(bool isRunning);
lv_obj_t* label_hr;
lv_obj_t* label_bpm;
lv_obj_t* label_status;
- lv_style_t labelBigStyle;
- lv_style_t* labelStyle;
lv_obj_t* btn_startStop;
lv_obj_t* label_startStop;
- bool running = true;
+
};
}