Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/qt/appearancewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ void AppearanceWidget::updateTheme(const QString& theme)
QString newValue = theme.isEmpty() ? ui->theme->currentData().toString() : theme;
if (GUIUtil::getActiveTheme() != newValue) {
QSettings().setValue("theme", newValue);
GUIUtil::loadTheme();
// Force loading the theme
GUIUtil::loadTheme(nullptr, true);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/qt/guiutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ namespace GUIUtil
bool dashThemeActive();

/** Load the theme and update all UI elements according to the appearance settings. */
void loadTheme(QWidget* widget = nullptr, bool fForce = true);
void loadTheme(QWidget* widget = nullptr, bool fForce = false);

/** Disable the OS default focus rect for macOS because we have custom focus rects
* set in the css files */
Expand Down