3
0
Fork 0
forked from suyu/suyu

ui: Touching QPalette::Text broke dark -> light UI. don't do

This commit is contained in:
Kyle K 2022-04-12 12:50:56 -07:00
parent 38dd6dc190
commit f6695814be

View file

@ -3654,10 +3654,8 @@ void GMainWindow::UpdateUITheme() {
QPalette new_pal(qApp->palette()); QPalette new_pal(qApp->palette());
if (UISettings::IsDarkTheme()) { if (UISettings::IsDarkTheme()) {
new_pal.setColor(QPalette::Text, QColor(255, 255, 255, 255));
new_pal.setColor(QPalette::Link, QColor(0, 190, 255, 255)); new_pal.setColor(QPalette::Link, QColor(0, 190, 255, 255));
} else { } else {
new_pal.setColor(QPalette::Text, QColor(0, 0, 0, 255));
new_pal.setColor(QPalette::Link, QColor(0, 140, 200, 255)); new_pal.setColor(QPalette::Link, QColor(0, 140, 200, 255));
} }
qApp->setPalette(new_pal); qApp->setPalette(new_pal);