summaryrefslogtreecommitdiff
path: root/src/components/settings
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/settings')
-rw-r--r--src/components/settings/Settings.h38
1 files changed, 37 insertions, 1 deletions
diff --git a/src/components/settings/Settings.h b/src/components/settings/Settings.h
index 62586567..9661a199 100644
--- a/src/components/settings/Settings.h
+++ b/src/components/settings/Settings.h
@@ -34,7 +34,8 @@ namespace Pinetime {
Navy,
Magenta,
Purple,
- Orange
+ Orange,
+ Pink
};
enum class PTSGaugeStyle : uint8_t { Full, Half, Numeric };
@@ -44,6 +45,10 @@ namespace Pinetime {
Colors ColorBG = Colors::Black;
PTSGaugeStyle gaugeStyle = PTSGaugeStyle::Full;
};
+ struct WatchFaceInfineat {
+ bool showSideCover = true;
+ int colorIndex = 0;
+ };
Settings(Pinetime::Controllers::FS& fs);
@@ -97,6 +102,26 @@ namespace Pinetime {
return settings.PTS.ColorBG;
};
+ void SetInfineatShowSideCover(bool show) {
+ if (show != settings.watchFaceInfineat.showSideCover) {
+ settings.watchFaceInfineat.showSideCover = show;
+ settingsChanged = true;
+ }
+ };
+ bool GetInfineatShowSideCover() const {
+ return settings.watchFaceInfineat.showSideCover;
+ };
+
+ void SetInfineatColorIndex(int index) {
+ if (index != settings.watchFaceInfineat.colorIndex) {
+ settings.watchFaceInfineat.colorIndex = index;
+ settingsChanged = true;
+ }
+ };
+ int GetInfineatColorIndex() const {
+ return settings.watchFaceInfineat.colorIndex;
+ };
+
void SetPTSGaugeStyle(PTSGaugeStyle gaugeStyle) {
if (gaugeStyle != settings.PTS.gaugeStyle)
settingsChanged = true;
@@ -110,6 +135,14 @@ namespace Pinetime {
appMenu = menu;
};
+ void SetWatchfacesMenu(uint8_t menu) {
+ watchFacesMenu = menu;
+ };
+
+ uint8_t GetWatchfacesMenu() const {
+ return watchFacesMenu;
+ };
+
uint8_t GetAppMenu() const {
return appMenu;
};
@@ -238,6 +271,8 @@ namespace Pinetime {
PineTimeStyle PTS;
+ WatchFaceInfineat watchFaceInfineat;
+
std::bitset<4> wakeUpMode {0};
uint16_t shakeWakeThreshold = 150;
Controllers::BrightnessController::Levels brightLevel = Controllers::BrightnessController::Levels::Medium;
@@ -248,6 +283,7 @@ namespace Pinetime {
uint8_t appMenu = 0;
uint8_t settingsMenu = 0;
+ uint8_t watchFacesMenu = 0;
/* ble state is intentionally not saved with the other watch settings and initialized
* to off (false) on every boot because we always want ble to be enabled on startup
*/