Skip to content

Commit 178c1fc

Browse files
committed
initial creation of CasioStyleAE21W WatchFace
1 parent c8b34b8 commit 178c1fc

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ list(APPEND SOURCE_FILES
431431
displayapp/screens/WatchFaceCasioStyleG7710.cpp
432432
displayapp/screens/WatchFaceCasioStyleAE21W.cpp
433433
displayapp/screens/WatchFacePrideFlag.cpp
434+
displayapp/screens/WatchFaceCasioStyleAE21W.cpp
434435

435436
##
436437

src/displayapp/apps/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ else()
3030
set(DEFAULT_WATCHFACE_TYPES "${DEFAULT_WATCHFACE_TYPES}, WatchFace::CasioStyleG7710")
3131
set(DEFAULT_WATCHFACE_TYPES "${DEFAULT_WATCHFACE_TYPES}, WatchFace::CasioStyleAE21W")
3232
set(DEFAULT_WATCHFACE_TYPES "${DEFAULT_WATCHFACE_TYPES}, WatchFace::PrideFlag")
33+
set(DEFAULT_WATCHFACE_TYPES "${DEFAULT_WATCHFACE_TYPES}, WatchFace::CasioStyleAE21W")
3334
set(WATCHFACE_TYPES "${DEFAULT_WATCHFACE_TYPES}" CACHE STRING "List of watch faces to build into the firmware")
3435
endif()
3536

src/displayapp/screens/WatchFaceCasioStyleAE21W.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ WatchFaceCasioStyleAE21W::WatchFaceCasioStyleAE21W(Controllers::DateTime& dateTi
640640
lv_label_set_text_static(labelBtnSettings, Symbols::settings);
641641
lv_obj_set_hidden(btnSettings, true);
642642

643-
taskRefresh = lv_task_create(RefreshTaskCallback, LV_DISP_DEF_REFR_PERIOD, LV_TASK_PRIO_MID, this);
643+
taskRefresh = lv_task_create(RefreshTaskCallback, LV_DISP_DEF_REFR_PERIOD, LV_TASK_PRIO_MID, this);
644644
Refresh();
645645
}
646646

@@ -727,6 +727,7 @@ void WatchFaceCasioStyleAE21W::Refresh() {
727727
}
728728

729729
notificationState = notificationManager.AreNewNotificationsAvailable();
730+
730731
if (notificationState.IsUpdated()) {
731732
lv_label_set_text_static(notificationIcon, NotificationIcon::GetIcon(notificationState.Get()));
732733
}

src/displayapp/screens/WatchFaceCasioStyleAE21W.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ namespace Pinetime {
4545
bool OnButtonPushed() override;
4646
void UpdateSelected(lv_obj_t* object, lv_event_t event);
4747
void CloseMenu();
48-
4948
void Refresh() override;
5049

5150
static bool IsAvailable(Pinetime::Controllers::FS& filesystem);

0 commit comments

Comments
 (0)