summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKieran Cawthray <kieranc@gmail.com>2021-06-25 21:36:55 +0200
committerKieran Cawthray <kieranc@gmail.com>2021-06-25 21:36:55 +0200
commit800daecf9038dc495327da71aff5dcf3cee82e40 (patch)
tree292b5c8680994495dc1805da08f8d44a4fc0368e /src
parentf3b40cb7a62c4927fb9fe921fdaa3b38809163f5 (diff)
Add a check to set default colors if all colors are white
Diffstat (limited to 'src')
-rw-r--r--src/displayapp/screens/PineTimeStyle.cpp7
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();