mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-31 03:45:38 +00:00
Qt: Reset palette and style when selecting default theme
Fixes palette and style getting stuck when switching to default theme after having used dark fusion theme earlier in the same session.
This commit is contained in:
parent
ad727c7991
commit
788a9a6768
|
@ -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