summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/settings/SettingWatchFace.h
diff options
context:
space:
mode:
authorSteveAmor <SteveAmor@users.noreply.github.com>2022-01-02 22:27:43 +0000
committerSteveAmor <SteveAmor@users.noreply.github.com>2022-01-02 22:27:43 +0000
commitcc259b6a4ac93d507fa372a41ea653dedeb791ea (patch)
tree3c8b8b937b2b91149003195679ce5acda1154c4d /src/displayapp/screens/settings/SettingWatchFace.h
parent94561b233136334c7507925b04a345adb0e6c769 (diff)
parente0013e730448f4dc142e3610f970f22c807ac41e (diff)
resolves conflicts
Diffstat (limited to 'src/displayapp/screens/settings/SettingWatchFace.h')
-rw-r--r--src/displayapp/screens/settings/SettingWatchFace.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/displayapp/screens/settings/SettingWatchFace.h b/src/displayapp/screens/settings/SettingWatchFace.h
index d4a96c6d..ccba7d13 100644
--- a/src/displayapp/screens/settings/SettingWatchFace.h
+++ b/src/displayapp/screens/settings/SettingWatchFace.h
@@ -1,7 +1,9 @@
#pragma once
+#include <array>
#include <cstdint>
#include <lvgl/lvgl.h>
+
#include "components/settings/Settings.h"
#include "displayapp/screens/Screen.h"
@@ -18,9 +20,10 @@ namespace Pinetime {
void UpdateSelected(lv_obj_t* object, lv_event_t event);
private:
+ static constexpr std::array<const char*, 3> options = {" Digital face", " Analog face", " PineTimeStyle"};
Controllers::Settings& settingsController;
- uint8_t optionsTotal;
- lv_obj_t* cbOption[2];
+
+ lv_obj_t* cbOption[options.size()];
};
}
}