aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorMax Friedrich <minacode@users.noreply.github.com>2023-04-30 17:03:46 +0200
committerGitHub <noreply@github.com>2023-04-30 17:03:46 +0200
commit020a7fd11d1b18fd7ac29ccc00b9c6f6e0cdb17b (patch)
treefd0a9aa11b201b573ce8826638b515fe61ffff23 /src/components
parent5f19f689f9ebe1b00f3f7da22b20fb2700811375 (diff)
Refactor watch face to enum (#1339)
change watch face from int to enum --------- Co-authored-by: minacode <minamoto9@web.de>
Diffstat (limited to 'src/components')
-rw-r--r--src/components/settings/Settings.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/components/settings/Settings.h b/src/components/settings/Settings.h
index d1e71656..0a55c08a 100644
--- a/src/components/settings/Settings.h
+++ b/src/components/settings/Settings.h
@@ -3,6 +3,7 @@
#include <bitset>
#include "components/brightness/BrightnessController.h"
#include "components/fs/FS.h"
+#include "displayapp/WatchFaces.h"
namespace Pinetime {
namespace Controllers {
@@ -61,15 +62,15 @@ namespace Pinetime {
void Init();
void SaveSettings();
- void SetClockFace(uint8_t face) {
- if (face != settings.clockFace) {
+ void SetWatchFace(Pinetime::Applications::WatchFace face) {
+ if (face != settings.watchFace) {
settingsChanged = true;
}
- settings.clockFace = face;
+ settings.watchFace = face;
};
- uint8_t GetClockFace() const {
- return settings.clockFace;
+ Pinetime::Applications::WatchFace GetWatchFace() const {
+ return settings.watchFace;
};
void SetChimeOption(ChimesOption chimeOption) {
@@ -276,7 +277,7 @@ namespace Pinetime {
ClockType clockType = ClockType::H24;
Notification notificationStatus = Notification::On;
- uint8_t clockFace = 0;
+ Pinetime::Applications::WatchFace watchFace = Pinetime::Applications::WatchFace::Digital;
ChimesOption chimesOption = ChimesOption::None;
PineTimeStyle PTS;