mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-12 22:37:21 +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
|
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());
|
qApp->setStyleSheet(QString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user