Merge branch 'pts-options' of github.com:kieranc/InfiniTime into kieranc-pts-options

# Conflicts:
#	src/components/settings/Settings.h
This commit is contained in:
Jean-François Milants
2022-10-02 18:30:41 +02:00
5 changed files with 155 additions and 26 deletions

View File

@@ -37,10 +37,13 @@ namespace Pinetime {
Orange,
Pink
};
enum class PTSGaugeStyle : uint8_t { Full, Half, Numeric };
struct PineTimeStyle {
Colors ColorTime = Colors::Teal;
Colors ColorBar = Colors::Teal;
Colors ColorBG = Colors::Black;
PTSGaugeStyle gaugeStyle = PTSGaugeStyle::Full;
};
struct WatchFaceInfineat {
bool showSideCover = true;
@@ -119,6 +122,15 @@ namespace Pinetime {
return settings.watchFaceInfineat.colorIndex;
};
void SetPTSGaugeStyle(PTSGaugeStyle gaugeStyle) {
if (gaugeStyle != settings.PTS.gaugeStyle)
settingsChanged = true;
settings.PTS.gaugeStyle = gaugeStyle;
};
PTSGaugeStyle GetPTSGaugeStyle() const {
return settings.PTS.gaugeStyle;
};
void SetAppMenu(uint8_t menu) {
appMenu = menu;
};