Skip to content

Commit 310447c

Browse files
Chr1sNoCalcProgrammer1
authored andcommitted
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
1 parent 74b2fb5 commit 310447c

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

qt/OpenRGBConsolePage.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ OpenRGBConsolePage::OpenRGBConsolePage(QWidget *parent) :
2424
ui->log_level->setCurrentIndex(LogManager::get()->getLoglevel());
2525
ui->log_level->blockSignals(false);
2626

27+
#ifdef _WIN32
28+
ui->logs->setFontFamily("Courier New");
29+
#endif
2730
Refresh();
2831
}
2932

qt/OpenRGBDialog2.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,8 @@ OpenRGBDialog2::OpenRGBDialog2(QWidget *parent) : QMainWindow(parent), ui(new Op
394394
{
395395
QPalette pal = palette();
396396
pal.setColor(QPalette::WindowText, Qt::white);
397+
pal.setColor(QPalette::Link, QColor(0,127,220));
398+
pal.setColor(QPalette::LinkVisited, QColor(64,196,220));
397399
QApplication::setPalette(pal);
398400
QFile darkTheme(":/windows_dark.qss");
399401
darkTheme.open(QFile::ReadOnly);

qt/windows_dark.qss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ QMainWindow
44
color: white;
55
}
66

7+
QLabel
8+
{
9+
color: white;
10+
}
11+
712
/* External QTabWidget */
813

914
QTabBar
@@ -299,7 +304,7 @@ QDialog
299304

300305
/* QTableWidgets */
301306

302-
QTableWidget, QTableWidget *
307+
QTableView, QTableWidget, QTableWidget *
303308
{
304309
background-color: #454545;
305310
color: white;

0 commit comments

Comments
 (0)