mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-04 20:54:16 -04:00
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
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user