fix(cpn): screen colors in simulator for B&W OLED radios (#4779)

This commit is contained in:
philmoz
2024-03-21 09:20:56 +10:00
committed by GitHub
parent 373b8e9355
commit 2ded1192a6
13 changed files with 114 additions and 224 deletions
@@ -29,13 +29,13 @@ SimulatedUIWidgetJumperT20::SimulatedUIWidgetJumperT20(SimulatorInterface *simul
m_backlightColors << QColor(255,195,151);
m_backlightColors << QColor(247,242,159);
ui->lcd->setBgDefaultColor(QColor(0, 0, 0));
ui->lcd->setFgDefaultColor(QColor(255, 255, 255));
setLcd(ui->lcd);
QString css = "#radioUiWidget {"
"background-color: qlineargradient(spread:reflect, x1:0, y1:0, x2:0, y2:1,"
"stop:0 rgba(255, 255, 255, 255),"
"stop:0.757062 rgba(241, 238, 238, 255),"
"stop:1 rgba(247, 245, 245, 255));"
"background-color: rgb(200, 200, 200);"
"}";
QTimer * tim = new QTimer(this);