Add Infineat watchface to settings

This commit is contained in:
Diego Miguel 2022-02-26 20:43:33 +01:00
parent ae705f23a5
commit 17d37d5ca5
3 changed files with 16 additions and 1 deletions

View File

@ -424,6 +424,7 @@ list(APPEND SOURCE_FILES
displayapp/icons/bg_clock.c displayapp/icons/bg_clock.c
displayapp/screens/WatchFaceAnalog.cpp displayapp/screens/WatchFaceAnalog.cpp
displayapp/screens/WatchFaceDigital.cpp displayapp/screens/WatchFaceDigital.cpp
displayapp/screens/WatchFaceInfineat.cpp
displayapp/screens/WatchFaceTerminal.cpp displayapp/screens/WatchFaceTerminal.cpp
displayapp/screens/WatchFacePineTimeStyle.cpp displayapp/screens/WatchFacePineTimeStyle.cpp

View File

@ -10,6 +10,7 @@
#include "displayapp/DisplayApp.h" #include "displayapp/DisplayApp.h"
#include "displayapp/screens/WatchFaceDigital.h" #include "displayapp/screens/WatchFaceDigital.h"
#include "displayapp/screens/WatchFaceTerminal.h" #include "displayapp/screens/WatchFaceTerminal.h"
#include "displayapp/screens/WatchFaceInfineat.h"
#include "displayapp/screens/WatchFaceAnalog.h" #include "displayapp/screens/WatchFaceAnalog.h"
#include "displayapp/screens/WatchFacePineTimeStyle.h" #include "displayapp/screens/WatchFacePineTimeStyle.h"
@ -42,8 +43,11 @@ Clock::Clock(DisplayApp* app,
case 2: case 2:
return WatchFacePineTimeStyleScreen(); return WatchFacePineTimeStyleScreen();
break; break;
// case 3:
// return WatchFaceTerminalScreen();
// break;
case 3: case 3:
return WatchFaceTerminalScreen(); return WatchFaceInfineatScreen();
break; break;
} }
return WatchFaceDigitalScreen(); return WatchFaceDigitalScreen();
@ -103,3 +107,12 @@ std::unique_ptr<Screen> Clock::WatchFaceTerminalScreen() {
heartRateController, heartRateController,
motionController); motionController);
} }
std::unique_ptr<Screen> Clock::WatchFaceInfineatScreen() {
return std::make_unique<Screens::WatchFaceInfineat>(app,
dateTimeController,
bleController,
notificatioManager,
settingsController,
motionController);
}

View File

@ -48,6 +48,7 @@ namespace Pinetime {
std::unique_ptr<Screen> WatchFaceAnalogScreen(); std::unique_ptr<Screen> WatchFaceAnalogScreen();
std::unique_ptr<Screen> WatchFacePineTimeStyleScreen(); std::unique_ptr<Screen> WatchFacePineTimeStyleScreen();
std::unique_ptr<Screen> WatchFaceTerminalScreen(); std::unique_ptr<Screen> WatchFaceTerminalScreen();
std::unique_ptr<Screen> WatchFaceIfineatScreen();
}; };
} }
} }