InfiniTime/src/displayapp/screens/settings/SettingWatchFace.h

36 lines
902 B
C
Raw Normal View History

#pragma once
2021-09-20 08:13:46 -04:00
#include <array>
#include <cstdint>
#include <lvgl/lvgl.h>
2022-03-06 07:32:06 -05:00
#include "displayapp/screens/ScreenList.h"
2021-12-03 14:39:18 -05:00
#include "components/settings/Settings.h"
#include "displayapp/screens/Screen.h"
2022-03-06 07:32:06 -05:00
#include "displayapp/screens/Symbols.h"
2021-12-03 14:39:18 -05:00
namespace Pinetime {
namespace Applications {
namespace Screens {
class SettingWatchFace : public Screen {
2021-04-24 05:00:45 -04:00
public:
SettingWatchFace(DisplayApp* app, Pinetime::Controllers::Settings& settingsController);
~SettingWatchFace() override;
2022-03-06 07:32:06 -05:00
bool OnTouchEvent(TouchEvents event) override;
2021-04-24 05:00:45 -04:00
private:
Controllers::Settings& settingsController;
2022-03-06 07:32:06 -05:00
ScreenList<2> screens;
2021-09-20 08:13:46 -04:00
2022-03-06 07:32:06 -05:00
static constexpr const char* title = "Watch face";
static constexpr const char* symbol = Symbols::home;
std::unique_ptr<Screen> CreateScreen1();
std::unique_ptr<Screen> CreateScreen2();
};
}
}
}