#pragma once #include #include #include #include "displayapp/screens/ScreenList.h" #include "components/settings/Settings.h" #include "displayapp/screens/Screen.h" #include "displayapp/screens/Symbols.h" #include "displayapp/screens/CheckboxList.h" #include "displayapp/screens/WatchFaceInfineat.h" #include "displayapp/screens/WatchFaceCasioStyleG7710.h" namespace Pinetime { namespace Applications { namespace Screens { class SettingWatchFace : public Screen { public: SettingWatchFace(DisplayApp* app, Pinetime::Controllers::Settings& settingsController, Pinetime::Controllers::FS& filesystem); ~SettingWatchFace() override; bool OnTouchEvent(TouchEvents event) override; private: auto CreateScreenList() const; std::unique_ptr CreateScreen(unsigned int screenNum) const; Controllers::Settings& settingsController; Pinetime::Controllers::FS& filesystem; static constexpr const char* title = "Watch face"; static constexpr const char* symbol = Symbols::home; static constexpr int settingsPerScreen = 4; // Increment this when more space is needed static constexpr int nScreens = 2; std::array watchfaces { {{"Digital face", true}, {"Analog face", true}, {"PineTimeStyle", true}, {"Terminal", true}, {"Infineat face", Applications::Screens::WatchFaceInfineat::IsAvailable(filesystem)}, {"Casio G7710", Applications::Screens::WatchFaceCasioStyleG7710::IsAvailable(filesystem)}, {"", false}, {"", false}}}; ScreenList screens; }; } } }