Browse Source

Adjusting QSS and palette to resolve #1976

+ Adding global QLabel and QTableView to QSS
+ Adding `Link` and `LinkVisited` to palette
+ Ensuring Windows sets a Monospaced font for the log console
merge-requests/911/head
Chris 2 months ago
committed by Adam Honse
parent
commit
310447c5f0
  1. 3
      qt/OpenRGBConsolePage.cpp
  2. 2
      qt/OpenRGBDialog2.cpp
  3. 7
      qt/windows_dark.qss

3
qt/OpenRGBConsolePage.cpp

@ -24,6 +24,9 @@ OpenRGBConsolePage::OpenRGBConsolePage(QWidget *parent) :
ui->log_level->setCurrentIndex(LogManager::get()->getLoglevel());
ui->log_level->blockSignals(false);
#ifdef _WIN32
ui->logs->setFontFamily("Courier New");
#endif
Refresh();
}

2
qt/OpenRGBDialog2.cpp

@ -394,6 +394,8 @@ OpenRGBDialog2::OpenRGBDialog2(QWidget *parent) : QMainWindow(parent), ui(new Op
{
QPalette pal = palette();
pal.setColor(QPalette::WindowText, Qt::white);
pal.setColor(QPalette::Link, QColor(0,127,220));
pal.setColor(QPalette::LinkVisited, QColor(64,196,220));
QApplication::setPalette(pal);
QFile darkTheme(":/windows_dark.qss");
darkTheme.open(QFile::ReadOnly);

7
qt/windows_dark.qss

@ -4,6 +4,11 @@ QMainWindow
color: white;
}
QLabel
{
color: white;
}
/* External QTabWidget */
QTabBar
@ -299,7 +304,7 @@ QDialog
/* QTableWidgets */
QTableWidget, QTableWidget *
QTableView, QTableWidget, QTableWidget *
{
background-color: #454545;
color: white;

Loading…
Cancel
Save