aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens/Timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/displayapp/screens/Timer.h')
-rw-r--r--src/displayapp/screens/Timer.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/displayapp/screens/Timer.h b/src/displayapp/screens/Timer.h
index c1f7f9e2..2dcc5973 100644
--- a/src/displayapp/screens/Timer.h
+++ b/src/displayapp/screens/Timer.h
@@ -4,6 +4,7 @@
#include "components/datetime/DateTimeController.h"
#include "systemtask/SystemTask.h"
#include "displayapp/LittleVgl.h"
+#include "displayapp/widgets/Counter.h"
#include "components/timer/TimerController.h"
@@ -19,23 +20,15 @@ namespace Pinetime::Applications::Screens {
void OnButtonEvent(lv_obj_t* obj, lv_event_t event);
private:
- void CreateButtons();
- bool running;
- uint8_t secondsToSet = 0;
- uint8_t minutesToSet = 0;
+ void SetTimerRunning();
+ void SetTimerStopped();
Controllers::TimerController& timerController;
lv_obj_t* time;
lv_obj_t* msecTime;
lv_obj_t* btnPlayPause;
lv_obj_t* txtPlayPause;
- lv_obj_t* btnMinutesUp;
- lv_obj_t* btnMinutesDown;
- lv_obj_t* btnSecondsUp;
- lv_obj_t* btnSecondsDown;
- lv_obj_t* txtMUp;
- lv_obj_t* txtMDown;
- lv_obj_t* txtSUp;
- lv_obj_t* txtSDown;
lv_task_t* taskRefresh;
+ Widgets::Counter minuteCounter = Widgets::Counter(0, 59);
+ Widgets::Counter secondCounter = Widgets::Counter(0, 59);
};
}