summaryrefslogtreecommitdiff
path: root/src/components/settings/Settings.h
diff options
context:
space:
mode:
authorDiego Miguel <dmlls@diegomiguel.me>2022-03-02 00:05:31 +0100
committerDiego Miguel <dmlls@diegomiguel.me>2022-06-11 16:56:35 +0200
commitc2ecd4c73179fac7cea866ddbfaaa3727e03dd51 (patch)
treeee160792410025e807a3720782bbe9e4a175a65f /src/components/settings/Settings.h
parenta89fca7f86eead50ab1ace17827c13e6abe3a582 (diff)
Add Infineat settings to settings controller
Diffstat (limited to 'src/components/settings/Settings.h')
-rw-r--r--src/components/settings/Settings.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/components/settings/Settings.h b/src/components/settings/Settings.h
index 3b113ead..686024b2 100644
--- a/src/components/settings/Settings.h
+++ b/src/components/settings/Settings.h
@@ -41,6 +41,10 @@ namespace Pinetime {
Colors ColorBar = Colors::Teal;
Colors ColorBG = Colors::Black;
};
+ struct WatchFaceInfineat {
+ bool showSideCover = true;
+ int colorIndex = 0;
+ };
Settings(Pinetime::Controllers::FS& fs);
@@ -94,6 +98,24 @@ namespace Pinetime {
return settings.PTS.ColorBG;
};
+ void SetInfineatShowSideCover(bool show) {
+ if (show != settings.watchFaceInfineat.showSideCover)
+ settingsChanged = true;
+ settings.watchFaceInfineat.showSideCover = show;
+ };
+ bool GetInfineatShowSideCover() const {
+ return settings.watchFaceInfineat.showSideCover;
+ };
+
+ void SetInfineatColorIndex(int index) {
+ if (index != settings.watchFaceInfineat.colorIndex)
+ settingsChanged = true;
+ settings.watchFaceInfineat.colorIndex = index;
+ };
+ int GetInfineatColorIndex() const {
+ return settings.watchFaceInfineat.colorIndex;
+ };
+
void SetAppMenu(uint8_t menu) {
appMenu = menu;
};
@@ -226,6 +248,8 @@ namespace Pinetime {
PineTimeStyle PTS;
+ WatchFaceInfineat watchFaceInfineat;
+
std::bitset<4> wakeUpMode {0};
uint16_t shakeWakeThreshold = 150;
Controllers::BrightnessController::Levels brightLevel = Controllers::BrightnessController::Levels::Medium;