* T114 display fix

This commit is contained in:
Scott Powell
2026-07-24 18:35:56 +10:00
parent 0c04a47355
commit f83ad03e5e
2 changed files with 14 additions and 10 deletions
+5 -1
View File
@@ -204,7 +204,11 @@ public:
renderBatteryIndicator(display, _task->getBattMilliVolts());
// curr page indicator
display.setColor(UIColor::title_bkg);
if (UIColor::title_bkg == UIColor::window_bkg) {
display.setColor(UIColor::title_txt);
} else {
display.setColor(UIColor::title_bkg);
}
int y = 14;
int x = display.width() / 2 - 5 * (HomePage::Count-1);
for (uint8_t i = 0; i < HomePage::Count; i++, x += 10) {
+9 -9
View File
@@ -27,15 +27,15 @@
#endif
// Color scheme
ColorVal UIColor::window_bkg = OLEDDISPLAY_COLOR::WHITE;
ColorVal UIColor::title_bkg = OLEDDISPLAY_COLOR::WHITE;
ColorVal UIColor::title_txt = OLEDDISPLAY_COLOR::BLACK;
ColorVal UIColor::primary_txt = OLEDDISPLAY_COLOR::BLACK;
ColorVal UIColor::secondary_txt = OLEDDISPLAY_COLOR::BLACK;
ColorVal UIColor::warning_txt = OLEDDISPLAY_COLOR::BLACK;
ColorVal UIColor::popup_bkg = OLEDDISPLAY_COLOR::WHITE;
ColorVal UIColor::popup_txt = OLEDDISPLAY_COLOR::BLACK;
ColorVal UIColor::corp_blue = OLEDDISPLAY_COLOR::BLACK;
ColorVal UIColor::window_bkg = OLEDDISPLAY_COLOR::BLACK;
ColorVal UIColor::title_bkg = OLEDDISPLAY_COLOR::BLACK;
ColorVal UIColor::title_txt = OLEDDISPLAY_COLOR::WHITE;
ColorVal UIColor::primary_txt = OLEDDISPLAY_COLOR::WHITE;
ColorVal UIColor::secondary_txt = OLEDDISPLAY_COLOR::WHITE;
ColorVal UIColor::warning_txt = OLEDDISPLAY_COLOR::WHITE;
ColorVal UIColor::popup_bkg = OLEDDISPLAY_COLOR::BLACK;
ColorVal UIColor::popup_txt = OLEDDISPLAY_COLOR::WHITE;
ColorVal UIColor::corp_blue = OLEDDISPLAY_COLOR::WHITE;
bool ST7789Display::begin() {
if(!_isOn) {