Commit 4837b277 authored by Gilles Caulier's avatar Gilles Caulier 🗼
Browse files

Dispatch colors theme properly to widget style manager for main windows

BUGS: 172632
BUGS: 241116
BUGS: 146938
BUGS: 265554
BUGS: 240148
BUGS: 252700
BUGS: 168669
BUGS: 179898
BUGS: 220068
FIXED-IN: 5.0.0
parent ffc6e1a3
......@@ -112,7 +112,6 @@ QString ThemeManager::currentThemeName() const
}
QAction* const action = d->themeMenuActionGroup->checkedAction();
return (!action ? defaultThemeName()
: action->text().remove(QLatin1Char('&')));
}
......@@ -149,6 +148,8 @@ void ThemeManager::slotChangePalette()
QString filename = d->themeMap.value(theme);
KSharedConfigPtr config = KSharedConfig::openConfig(filename);
// hint for the style to synchronize the color scheme with the window manager/compositor
qApp->setProperty("KDE_COLOR_SCHEME_PATH", filename);
qApp->setPalette(SchemeManager::createApplicationPalette(config));
qCDebug(DIGIKAM_WIDGETS_LOG) << theme << " :: " << filename;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment