Add Infineat settings to settings controller
This commit is contained in:
parent
a89fca7f86
commit
c2ecd4c731
|
@ -41,6 +41,10 @@ namespace Pinetime {
|
||||||
Colors ColorBar = Colors::Teal;
|
Colors ColorBar = Colors::Teal;
|
||||||
Colors ColorBG = Colors::Black;
|
Colors ColorBG = Colors::Black;
|
||||||
};
|
};
|
||||||
|
struct WatchFaceInfineat {
|
||||||
|
bool showSideCover = true;
|
||||||
|
int colorIndex = 0;
|
||||||
|
};
|
||||||
|
|
||||||
Settings(Pinetime::Controllers::FS& fs);
|
Settings(Pinetime::Controllers::FS& fs);
|
||||||
|
|
||||||
|
@ -94,6 +98,24 @@ namespace Pinetime {
|
||||||
return settings.PTS.ColorBG;
|
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) {
|
void SetAppMenu(uint8_t menu) {
|
||||||
appMenu = menu;
|
appMenu = menu;
|
||||||
};
|
};
|
||||||
|
@ -226,6 +248,8 @@ namespace Pinetime {
|
||||||
|
|
||||||
PineTimeStyle PTS;
|
PineTimeStyle PTS;
|
||||||
|
|
||||||
|
WatchFaceInfineat watchFaceInfineat;
|
||||||
|
|
||||||
std::bitset<4> wakeUpMode {0};
|
std::bitset<4> wakeUpMode {0};
|
||||||
uint16_t shakeWakeThreshold = 150;
|
uint16_t shakeWakeThreshold = 150;
|
||||||
Controllers::BrightnessController::Levels brightLevel = Controllers::BrightnessController::Levels::Medium;
|
Controllers::BrightnessController::Levels brightLevel = Controllers::BrightnessController::Levels::Medium;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user