Merge pull request #568 from ggrtk/qt-theme

Qt: Reset palette and style when selecting default theme
pull/571/head
Connor McLaughlin 5 years ago committed by GitHub
commit f1cfe1b954
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -672,6 +672,12 @@ void MainWindow::updateTheme()
}
else
{
qApp->setPalette(QApplication::style()->standardPalette());
QStringList available_styles = QStyleFactory::keys();
if (!available_styles.empty())
qApp->setStyle(QStyleFactory::create(available_styles.first()));
qApp->setStyleSheet(QString());
}

Loading…
Cancel
Save