summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/PineTimeStyle.cpp
diff options
context:
space:
mode:
authorKieran Cawthray <kieranc@gmail.com>2021-06-25 21:55:51 +0200
committerKieran Cawthray <kieranc@gmail.com>2021-06-25 21:55:51 +0200
commit6889cf1ed86f72f85a208961956ef6dff5972210 (patch)
tree5070ae94f08bfb76880c171fd62c8099afbc25a2 /src/displayapp/screens/PineTimeStyle.cpp
parent800daecf9038dc495327da71aff5dcf3cee82e40 (diff)
Fix the fix, whoops
Diffstat (limited to 'src/displayapp/screens/PineTimeStyle.cpp')
-rw-r--r--src/displayapp/screens/PineTimeStyle.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/displayapp/screens/PineTimeStyle.cpp b/src/displayapp/screens/PineTimeStyle.cpp
index ad1d2db0..76db86e3 100644
--- a/src/displayapp/screens/PineTimeStyle.cpp
+++ b/src/displayapp/screens/PineTimeStyle.cpp
@@ -61,6 +61,13 @@ PineTimeStyle::PineTimeStyle(DisplayApp* app,
displayedChar[3] = 0;
displayedChar[4] = 0;
+ //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);
+ }
+
/* Create a 200px wide background rectangle */
timebar = lv_obj_create(lv_scr_act(), nullptr);
@@ -207,13 +214,6 @@ 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();