|
|
@ -14,6 +14,7 @@
|
|
|
|
#include "../DisplayApp.h"
|
|
|
|
#include "../DisplayApp.h"
|
|
|
|
#include "WatchFaceDigital.h"
|
|
|
|
#include "WatchFaceDigital.h"
|
|
|
|
#include "WatchFaceAnalog.h"
|
|
|
|
#include "WatchFaceAnalog.h"
|
|
|
|
|
|
|
|
#include "PineTimeStyle.h"
|
|
|
|
|
|
|
|
|
|
|
|
using namespace Pinetime::Applications::Screens;
|
|
|
|
using namespace Pinetime::Applications::Screens;
|
|
|
|
|
|
|
|
|
|
|
@ -42,6 +43,9 @@ Clock::Clock(DisplayApp* app,
|
|
|
|
[this]() -> std::unique_ptr<Screen> {
|
|
|
|
[this]() -> std::unique_ptr<Screen> {
|
|
|
|
return WatchFaceAnalogScreen();
|
|
|
|
return WatchFaceAnalogScreen();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
[this]() -> std::unique_ptr<Screen> {
|
|
|
|
|
|
|
|
return PineTimeStyleScreen();
|
|
|
|
|
|
|
|
},
|
|
|
|
// Examples for more watch faces
|
|
|
|
// Examples for more watch faces
|
|
|
|
//[this]() -> std::unique_ptr<Screen> { return WatchFaceMinimalScreen(); },
|
|
|
|
//[this]() -> std::unique_ptr<Screen> { return WatchFaceMinimalScreen(); },
|
|
|
|
//[this]() -> std::unique_ptr<Screen> { return WatchFaceCustomScreen(); }
|
|
|
|
//[this]() -> std::unique_ptr<Screen> { return WatchFaceCustomScreen(); }
|
|
|
@ -80,6 +84,16 @@ std::unique_ptr<Screen> Clock::WatchFaceAnalogScreen() {
|
|
|
|
app, dateTimeController, batteryController, bleController, notificatioManager, settingsController);
|
|
|
|
app, dateTimeController, batteryController, bleController, notificatioManager, settingsController);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::unique_ptr<Screen> Clock::PineTimeStyleScreen() {
|
|
|
|
|
|
|
|
return std::make_unique<Screens::PineTimeStyle>(app,
|
|
|
|
|
|
|
|
dateTimeController,
|
|
|
|
|
|
|
|
batteryController,
|
|
|
|
|
|
|
|
bleController,
|
|
|
|
|
|
|
|
notificatioManager,
|
|
|
|
|
|
|
|
settingsController,
|
|
|
|
|
|
|
|
heartRateController);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
// Examples for more watch faces
|
|
|
|
// Examples for more watch faces
|
|
|
|
std::unique_ptr<Screen> Clock::WatchFaceMinimalScreen() {
|
|
|
|
std::unique_ptr<Screen> Clock::WatchFaceMinimalScreen() {
|
|
|
|