@@ -45,6 +45,16 @@ namespace Pinetime {
45
45
PTSWeather weatherEnable = PTSWeather::Off;
46
46
};
47
47
48
+ enum class ContentStyle : uint8_t { Off, Date, Steps, Battery, Heart, Weather };
49
+
50
+ struct WatchFacePhoto {
51
+ Colors ColorTime = Colors::White;
52
+ bool PhotoBackground = true ;
53
+ Colors ColorBG = Colors::Black;
54
+ ContentStyle contentStyleTop = ContentStyle::Date;
55
+ ContentStyle contentStyleBottom = ContentStyle::Steps;
56
+ };
57
+
48
58
struct WatchFaceInfineat {
49
59
bool showSideCover = true ;
50
60
int colorIndex = 0 ;
@@ -112,6 +122,57 @@ namespace Pinetime {
112
122
return settings.PTS .ColorBG ;
113
123
};
114
124
125
+ void SetPhotoFaceColorTime (Colors colorTime) {
126
+ if (colorTime != settings.watchFacePhoto .ColorTime )
127
+ settingsChanged = true ;
128
+ settings.watchFacePhoto .ColorTime = colorTime;
129
+ };
130
+
131
+ Colors GetPhotoFaceColorTime () const {
132
+ return settings.watchFacePhoto .ColorTime ;
133
+ };
134
+
135
+ void SetPhotoFaceColorBG (Colors colorBG) {
136
+ if (colorBG != settings.watchFacePhoto .ColorBG )
137
+ settingsChanged = true ;
138
+ settings.watchFacePhoto .ColorBG = colorBG;
139
+ };
140
+
141
+ Colors GetPhotoFaceColorBG () const {
142
+ return settings.watchFacePhoto .ColorBG ;
143
+ };
144
+
145
+ void SetPhotoFaceContentTop (ContentStyle contentStyle) {
146
+ if (contentStyle != settings.watchFacePhoto .contentStyleTop )
147
+ settingsChanged = true ;
148
+ settings.watchFacePhoto .contentStyleTop = contentStyle;
149
+ };
150
+
151
+ ContentStyle GetPhotoFaceContentTop () const {
152
+ return settings.watchFacePhoto .contentStyleTop ;
153
+ };
154
+
155
+ void SetPhotoFaceContentBottom (ContentStyle contentStyle) {
156
+ if (contentStyle != settings.watchFacePhoto .contentStyleBottom )
157
+ settingsChanged = true ;
158
+ settings.watchFacePhoto .contentStyleBottom = contentStyle;
159
+ };
160
+
161
+ ContentStyle GetPhotoFaceContentBottom () const {
162
+ return settings.watchFacePhoto .contentStyleBottom ;
163
+ };
164
+
165
+ void SetPhotoFaceShowPhoto (bool show) {
166
+ if (show != settings.watchFacePhoto .PhotoBackground ) {
167
+ settings.watchFacePhoto .PhotoBackground = show;
168
+ settingsChanged = true ;
169
+ }
170
+ };
171
+
172
+ bool GetPhotoFaceShowPhoto () const {
173
+ return settings.watchFacePhoto .PhotoBackground ;
174
+ };
175
+
115
176
void SetInfineatShowSideCover (bool show) {
116
177
if (show != settings.watchFaceInfineat .showSideCover ) {
117
178
settings.watchFaceInfineat .showSideCover = show;
@@ -286,7 +347,7 @@ namespace Pinetime {
286
347
private:
287
348
Pinetime::Controllers::FS& fs;
288
349
289
- static constexpr uint32_t settingsVersion = 0x0007 ;
350
+ static constexpr uint32_t settingsVersion = 0x0008 ;
290
351
291
352
struct SettingsData {
292
353
uint32_t version = settingsVersion;
@@ -304,6 +365,8 @@ namespace Pinetime {
304
365
305
366
WatchFaceInfineat watchFaceInfineat;
306
367
368
+ WatchFacePhoto watchFacePhoto;
369
+
307
370
std::bitset<5 > wakeUpMode {0 };
308
371
uint16_t shakeWakeThreshold = 150 ;
309
372
0 commit comments