fix(cpn): screen colors in simulator for B&W OLED radios (#4779)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "simulateduiwidget.h"
|
||||
#include "ui_simulateduiwidgetJumperTPRO.h"
|
||||
#include "eeprominterface.h"
|
||||
|
||||
// NOTE: RadioUiAction(NUMBER,...): NUMBER relates to enum EnumKeys in the specific board.h
|
||||
|
||||
@@ -31,13 +32,15 @@ SimulatedUIWidgetJumperTPRO::SimulatedUIWidgetJumperTPRO(SimulatorInterface *sim
|
||||
m_backlightColors << QColor(255,195,151);
|
||||
m_backlightColors << QColor(247,242,159);
|
||||
|
||||
if (getCurrentBoard() == Board::BOARD_JUMPER_TPROV2) {
|
||||
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(167, 167, 167);"
|
||||
"}";
|
||||
|
||||
QTimer * tim = new QTimer(this);
|
||||
|
||||
Reference in New Issue
Block a user