mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-12 12:35:46 -04: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:
@ -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());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user