Commit 2d272745 authored by Eugene Popov's avatar Eugene Popov 🇺🇦 Committed by Nate Graham
Browse files

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
parent b7c559e3
Pipeline #194204 passed with stage
in 6 minutes and 22 seconds
......@@ -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")};
......
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