diff --git a/kcms/colors/colorsapplicator.cpp b/kcms/colors/colorsapplicator.cpp index 56d212f9a..e8d462057 100644 --- a/kcms/colors/colorsapplicator.cpp +++ b/kcms/colors/colorsapplicator.cpp @@ -277,12 +277,10 @@ void applyScheme(const QString &colorSchemePath, KConfig *configOutput, KConfig: const auto accentedWindowBackground = accentBackground(getAccent(), windowBackground); const auto inactiveWindowBackground = tintColor(windowBackground, getAccent(), tintFactor); - if (applyAccentToTitlebar) { - groupWMOut.writeEntry("activeBackground", accentedWindowBackground); - groupWMOut.writeEntry("activeForeground", accentForeground(accentedWindowBackground, true)); - groupWMOut.writeEntry("inactiveBackground", inactiveWindowBackground); - groupWMOut.writeEntry("inactiveForeground", accentForeground(inactiveWindowBackground, false)); - } + groupWMOut.writeEntry("activeBackground", applyAccentToTitlebar ? accentedWindowBackground : inactiveWindowBackground); + groupWMOut.writeEntry("activeForeground", accentForeground(accentedWindowBackground, true)); + groupWMOut.writeEntry("inactiveBackground", inactiveWindowBackground); + groupWMOut.writeEntry("inactiveForeground", accentForeground(inactiveWindowBackground, false)); } const QStringList groupNameList{QStringLiteral("ColorEffects:Inactive"), QStringLiteral("ColorEffects:Disabled")};