diff options
| author | JF <JF002@users.noreply.github.com> | 2022-09-27 21:27:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-27 21:27:36 +0200 |
| commit | 63932810d2707e6c530dae64b209ac240137dc17 (patch) | |
| tree | c6b6b10268726781ce6ee9ef8b64c99680e11ae5 /src/displayapp/screens/settings/SettingWatchFace.h | |
| parent | f699261ca326c76b72a864cb9576cf4c69bd5474 (diff) | |
| parent | 58586d0ad1ebeefd7a6f269089f467ccba2f468c (diff) | |
Merge pull request #1024 from dmlls/infineat-pr
Infineat Watchface + support for external resources.
Diffstat (limited to 'src/displayapp/screens/settings/SettingWatchFace.h')
| -rw-r--r-- | src/displayapp/screens/settings/SettingWatchFace.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/displayapp/screens/settings/SettingWatchFace.h b/src/displayapp/screens/settings/SettingWatchFace.h index d65f4a22..7d14554e 100644 --- a/src/displayapp/screens/settings/SettingWatchFace.h +++ b/src/displayapp/screens/settings/SettingWatchFace.h @@ -4,8 +4,10 @@ #include <cstdint> #include <lvgl/lvgl.h> +#include "displayapp/screens/ScreenList.h" #include "components/settings/Settings.h" #include "displayapp/screens/Screen.h" +#include "displayapp/screens/Symbols.h" namespace Pinetime { @@ -17,13 +19,16 @@ namespace Pinetime { SettingWatchFace(DisplayApp* app, Pinetime::Controllers::Settings& settingsController); ~SettingWatchFace() override; - void UpdateSelected(lv_obj_t* object, lv_event_t event); + bool OnTouchEvent(TouchEvents event) override; private: - static constexpr std::array<const char*, 4> options = {"Digital face", "Analog face", "PineTimeStyle", "Terminal"}; Controllers::Settings& settingsController; + ScreenList<2> screens; - lv_obj_t* cbOption[options.size()]; + static constexpr const char* title = "Watch face"; + static constexpr const char* symbol = Symbols::home; + std::unique_ptr<Screen> CreateScreen1(); + std::unique_ptr<Screen> CreateScreen2(); }; } } |
