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/screens/WatchFaceAnalog.cpp
displayapp/screens/WatchFaceDigital.cpp
displayapp/screens/WatchFaceInfineat.cpp
displayapp/screens/WatchFaceTerminal.cpp
displayapp/screens/WatchFacePineTimeStyle.cpp

View file

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