diff --git a/src/displayapp/UserApps.h b/src/displayapp/UserApps.h index c7a719d8..113f5b64 100644 --- a/src/displayapp/UserApps.h +++ b/src/displayapp/UserApps.h @@ -11,6 +11,7 @@ #include "displayapp/screens/ApplicationList.h" #include "displayapp/screens/WatchFaceDigital.h" #include "displayapp/screens/WatchFaceAnalog.h" +#include "displayapp/screens/WatchFaceBinary.h" #include "displayapp/screens/WatchFaceCasioStyleG7710.h" #include "displayapp/screens/WatchFaceInfineat.h" #include "displayapp/screens/WatchFacePineTimeStyle.h" diff --git a/src/displayapp/screens/WatchFaceBinary.h b/src/displayapp/screens/WatchFaceBinary.h index a872815d..4f4f8736 100644 --- a/src/displayapp/screens/WatchFaceBinary.h +++ b/src/displayapp/screens/WatchFaceBinary.h @@ -84,5 +84,25 @@ namespace Pinetime { Widgets::StatusIcons statusIcons; }; } + + template <> + struct WatchFaceTraits { + static constexpr WatchFace watchFace = WatchFace::Binary; + static constexpr const char* name = "Binary face"; + + static Screens::Screen* Create(AppControllers& controllers) { + return new Screens::WatchFaceBinary(controllers.dateTimeController, + controllers.batteryController, + controllers.bleController, + controllers.notificationManager, + controllers.settingsController, + controllers.heartRateController, + controllers.motionController); + }; + + static bool IsAvailable(Pinetime::Controllers::FS& filesystem) { + return true; + } + }; } }