Commit 4cd51978 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

kcms/colors: notify changes when writing groupWMOut config

This fixes that the titlebar does not update its accent color when
switching from transparent to another color.

Test: choose From current color scheme, apply and then choose From
wallpaper, apply.
parent f5fe8b72
Pipeline #224077 passed with stage
in 8 minutes and 58 seconds
......@@ -279,17 +279,17 @@ void applyScheme(const QString &colorSchemePath, KConfig *configOutput, KConfig:
if (tintAccent) {
const auto tintedWindowBackground = tintColor(windowBackground, getAccent(), tintFactor);
if (!applyAccentToTitlebar) {
groupWMOut.writeEntry("activeBackground", tintedWindowBackground);
groupWMOut.writeEntry("activeForeground", accentForeground(tintedWindowBackground, true));
groupWMOut.writeEntry("activeBackground", tintedWindowBackground, writeConfigFlag);
groupWMOut.writeEntry("activeForeground", accentForeground(tintedWindowBackground, true), writeConfigFlag);
}
groupWMOut.writeEntry("inactiveBackground", tintedWindowBackground);
groupWMOut.writeEntry("inactiveForeground", accentForeground(tintedWindowBackground, false));
groupWMOut.writeEntry("inactiveBackground", tintedWindowBackground, writeConfigFlag);
groupWMOut.writeEntry("inactiveForeground", accentForeground(tintedWindowBackground, false), writeConfigFlag);
}
if (applyAccentToTitlebar) {
const auto accentedWindowBackground = accentBackground(getAccent(), windowBackground);
groupWMOut.writeEntry("activeBackground", accentedWindowBackground);
groupWMOut.writeEntry("activeForeground", accentForeground(accentedWindowBackground, true));
groupWMOut.writeEntry("activeBackground", accentedWindowBackground, writeConfigFlag);
groupWMOut.writeEntry("activeForeground", accentForeground(accentedWindowBackground, true), writeConfigFlag);
}
}
......
Supports Markdown
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