Commit 9100b871 authored by Devin Lin's avatar Devin Lin 🎨
Browse files

kcms/colors: Fix alternateBackgroundColor for Button not having accents

parent 7bb5f17a
Pipeline #188152 passed with stage
in 8 minutes and 23 seconds
......@@ -208,6 +208,13 @@ void applyScheme(const QString &colorSchemePath, KConfig *configOutput, KConfig:
}
}
if (item == QStringLiteral("Colors:Button") && hasAccent()) {
QColor accentbg = accentBackground(getAccent(), config->group("Colors:Button").readEntry<QColor>("BackgroundNormal", QColor()));
for (const auto &entry : {QStringLiteral("BackgroundAlternate")}) {
targetGroup.writeEntry(entry, accentbg);
}
}
if (sourceGroup.hasGroup("Inactive")) {
sourceGroup = sourceGroup.group("Inactive");
targetGroup = targetGroup.group("Inactive");
......
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