diff options
author | Jean-François Milants <jf@codingfield.com> | 2022-10-02 18:30:41 +0200 |
---|---|---|
committer | Jean-François Milants <jf@codingfield.com> | 2022-10-02 18:30:41 +0200 |
commit | 738c012a730da22dfbddacdf49d3632075677dd1 (patch) | |
tree | e8e214f9e78662bea25b2709a1b8ccd1a80d9a23 /src/components/settings | |
parent | 7b115fe42c596356004c10ec123b76db85ee81f3 (diff) | |
parent | 4fe834efda5f7c5a1f35c6ca3b07f4f2662fc4b8 (diff) |
Merge branch 'pts-options' of github.com:kieranc/InfiniTime into kieranc-pts-options
# Conflicts:
# src/components/settings/Settings.h
Diffstat (limited to 'src/components/settings')
-rw-r--r-- | src/components/settings/Settings.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/components/settings/Settings.h b/src/components/settings/Settings.h index e39ed2f9..9661a199 100644 --- a/src/components/settings/Settings.h +++ b/src/components/settings/Settings.h @@ -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; }; |