mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-02 10:51:57 +00:00
refactor(ui): upstream's UIColor palette in place of the DARK/LIGHT enum
- DisplayDriver takes ColorVal; each driver's .cpp defines the UIColor roles (window_bkg, primary_txt, ...) in its own values. ui-new draws in two: window_bkg and primary_txt. OLED and e-ink look as before (sim screens pixel-identical). - E213, E290, LGFX, Null, ST7735, ST7789LCD, U8g2 taken whole from upstream (with them the rewritten ST7735 driver and the Heltec V4 R8 TFT display). - SH1106, SSD1306, ST7789, EinkGfxDisplay and the sim drivers converted. - ui-orig, ui-tiny, simple_* get upstream's colour roles; the repeater's UI taken from upstream (its power-off screen). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -230,7 +230,7 @@ void setup() {
|
||||
#endif
|
||||
// Three dots mid-screen: no words, so no orientation (the settings aren't read yet).
|
||||
const int dot = disp->width() >= 240 ? 6 : 3;
|
||||
disp->setColor(DisplayDriver::LIGHT);
|
||||
disp->setColor(UIColor::primary_txt);
|
||||
for (int i = -1; i <= 1; i++)
|
||||
disp->fillRect(disp->width() / 2 + i * 3 * dot - dot / 2, disp->height() / 2 - dot / 2, dot, dot);
|
||||
disp->endFrame();
|
||||
|
||||
Reference in New Issue
Block a user