mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-06 05:23:56 -07:00
Only repolish visible widgets.
Took 5 minutes
This commit is contained in:
parent
616c79d6d9
commit
7c2fd9cc48
1 changed files with 5 additions and 3 deletions
|
|
@ -410,11 +410,13 @@ void ThemeManager::themeChangedSlot()
|
||||||
// palette (WA_SetPalette not set). Calling it unconditionally would clobber
|
// palette (WA_SetPalette not set). Calling it unconditionally would clobber
|
||||||
// intentional per-widget palette customisations across the whole app.
|
// intentional per-widget palette customisations across the whole app.
|
||||||
for (QWidget *widget : qApp->allWidgets()) {
|
for (QWidget *widget : qApp->allWidgets()) {
|
||||||
|
if (widget->isVisible()) {
|
||||||
newStyle->unpolish(widget);
|
newStyle->unpolish(widget);
|
||||||
newStyle->polish(widget);
|
newStyle->polish(widget);
|
||||||
|
|
||||||
widget->update();
|
widget->update();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (dirPath.isEmpty()) {
|
if (dirPath.isEmpty()) {
|
||||||
// set default values
|
// set default values
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue