diff options
author | Kieran Cawthray <kieranc@gmail.com> | 2021-06-25 21:36:55 +0200 |
---|---|---|
committer | Kieran Cawthray <kieranc@gmail.com> | 2021-06-25 21:36:55 +0200 |
commit | 800daecf9038dc495327da71aff5dcf3cee82e40 (patch) | |
tree | 292b5c8680994495dc1805da08f8d44a4fc0368e /src/displayapp/screens/PineTimeStyle.cpp | |
parent | f3b40cb7a62c4927fb9fe921fdaa3b38809163f5 (diff) |
Add a check to set default colors if all colors are white
Diffstat (limited to 'src/displayapp/screens/PineTimeStyle.cpp')
-rw-r--r-- | src/displayapp/screens/PineTimeStyle.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/displayapp/screens/PineTimeStyle.cpp b/src/displayapp/screens/PineTimeStyle.cpp index cbabca6f..ad1d2db0 100644 --- a/src/displayapp/screens/PineTimeStyle.cpp +++ b/src/displayapp/screens/PineTimeStyle.cpp @@ -207,6 +207,13 @@ PineTimeStyle::~PineTimeStyle() { } bool PineTimeStyle::Refresh() { + //Feels like a hack, but if all the colors are white, this is probably not what the user wants + if (settingsController.GetPTSColorTime() + settingsController.GetPTSColorBar() + settingsController.GetPTSColorBG() == 0) { + settingsController.SetPTSColorTime(11); + settingsController.SetPTSColorBar(11); + settingsController.SetPTSColorBG(3); + } + batteryPercentRemaining = batteryController.PercentRemaining(); if (batteryPercentRemaining.IsUpdated()) { auto batteryPercent = batteryPercentRemaining.Get(); |