aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/settings
diff options
context:
space:
mode:
authorITCactus <n/a>2022-05-09 17:45:53 +0200
committerITCactus <n/a>2022-06-30 15:14:23 +0200
commit319dfd23e7dd1ecfedea113e49dfe30b5a814c67 (patch)
treec216ae7c9204cf3e1ce7a1d83171f788df42efa7 /src/components/settings
parentc0770cde8a1416e8dad3064bf0de8168ec0915db (diff)
[new watchface] watchface inspired by G7710, with day of year and week number info
Diffstat (limited to 'src/components/settings')
-rw-r--r--src/components/settings/Settings.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/components/settings/Settings.h b/src/components/settings/Settings.h
index 3b113ead..83987b77 100644
--- a/src/components/settings/Settings.h
+++ b/src/components/settings/Settings.h
@@ -102,6 +102,14 @@ namespace Pinetime {
return appMenu;
};
+ void SetWatchfacesMenu(uint8_t menu) {
+ watchFacesMenu = menu;
+ };
+
+ uint8_t GetWatchfacesMenu() const {
+ return watchFacesMenu;
+ };
+
void SetSettingsMenu(uint8_t menu) {
settingsMenu = menu;
};
@@ -212,7 +220,7 @@ namespace Pinetime {
private:
Pinetime::Controllers::FS& fs;
- static constexpr uint32_t settingsVersion = 0x0003;
+ static constexpr uint32_t settingsVersion = 0x0004;
struct SettingsData {
uint32_t version = settingsVersion;
uint32_t stepsGoal = 10000;
@@ -236,6 +244,8 @@ 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
*/