From b6b34f14901d8e493be4caa7f54c2dd36a2f0b46 Mon Sep 17 00:00:00 2001 From: Eugene Popov Date: Wed, 22 Jun 2022 19:27:03 +0000 Subject: [PATCH] kcms/colors: Fix window titlebar tinting in colorsapplicator Tint the window titlebars even if the option to make them accent-colored is not explicitly enabled; in this case you want them tinted anyway because they're a part of the fill window which will get tinted. BUG: 455395 FIXED-IN: 5.25.2 (cherry picked from commit 2d272745eb0ec6da96b45ea66842cba7a3e69f21) --- kcms/colors/colorsapplicator.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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")};