mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +00:00
Merge pull request #568 from ggrtk/qt-theme
Qt: Reset palette and style when selecting default theme
This commit is contained in:
commit
f1cfe1b954
|
@ -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…
Reference in a new issue