1313#include " components/motion/MotionController.h"
1414#include " components/ble/SimpleWeatherService.h"
1515#include " components/settings/Settings.h"
16- #include " components/alarm/AlarmController.h"
1716
1817using namespace Pinetime ::Applications::Screens;
1918
@@ -25,16 +24,14 @@ WatchFaceDigital::WatchFaceDigital(Controllers::DateTime& dateTimeController,
2524 Controllers::Settings& settingsController,
2625 Controllers::HeartRateController& heartRateController,
2726 Controllers::MotionController& motionController,
28- Controllers::SimpleWeatherService& weatherService,
29- Controllers::AlarmController& alarmController)
27+ Controllers::SimpleWeatherService& weatherService)
3028 : currentDateTime {{}},
3129 dateTimeController {dateTimeController},
3230 notificationManager {notificationManager},
3331 settingsController {settingsController},
3432 heartRateController {heartRateController},
3533 motionController {motionController},
3634 weatherService {weatherService},
37- alarmController {alarmController},
3835 statusIcons (batteryController, bleController, alarmController) {
3936
4037 statusIcons.Create ();
@@ -89,11 +86,6 @@ WatchFaceDigital::WatchFaceDigital(Controllers::DateTime& dateTimeController,
8986 lv_label_set_text_static (stepIcon, Symbols::shoe);
9087 lv_obj_align (stepIcon, stepValue, LV_ALIGN_OUT_LEFT_MID, -5 , 0 );
9188
92- alarmIcon = lv_label_create (lv_scr_act (), nullptr );
93- lv_obj_set_style_local_text_color (alarmIcon, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex (0x00FFE7 ));
94- lv_label_set_text_static (alarmIcon, Symbols::bell);
95- lv_obj_align (alarmIcon, nullptr , LV_ALIGN_IN_TOP_LEFT, 0 , 0 );
96-
9789 taskRefresh = lv_task_create (RefreshTaskCallback, LV_DISP_DEF_REFR_PERIOD, LV_TASK_PRIO_MID, this );
9890 Refresh ();
9991}
@@ -199,13 +191,4 @@ void WatchFaceDigital::Refresh() {
199191 lv_obj_realign (temperature);
200192 lv_obj_realign (weatherIcon);
201193 }
202-
203- alarmSet = alarmController.IsEnabled ();
204- if (alarmSet.Get ()) {
205- lv_obj_set_style_local_text_color (alarmIcon, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex (0x6AA84F ));
206- lv_obj_realign (alarmIcon);
207- } else {
208- lv_obj_set_style_local_text_color (alarmIcon, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex (0x1B1B1B ));
209- lv_obj_realign (alarmIcon);
210- }
211194}
0 commit comments