Commit 1d024b7b authored by Marco Martin's avatar Marco Martin
Browse files

fix applying color effects of the theme

apply also the ChangeSelectionColor and Enable entries
and actually apply the entries (reading from the theme
was broken)
parent cb6d112e
......@@ -544,7 +544,9 @@ void KColorCm::updateConfig(KSharedConfigPtr config)
groupNameList << "ColorEffects:Inactive" << "ColorEffects:Disabled";
QStringList effectList;
effectList << "IntensityEffect"
effectList << "Enable"
<< "ChangeSelectionColor"
<< "IntensityEffect"
<< "IntensityAmount"
<< "ColorEffect"
<< "ColorAmount"
......@@ -559,8 +561,7 @@ void KColorCm::updateConfig(KSharedConfigPtr config)
KConfigGroup groupEffectTheme(config, groupName);
for (const QString &effect : effectList) {
groupEffectOut.writeEntry(effect, groupEffectTheme.readEntry("effect"));
groupEffectOut.writeEntry(effect, groupEffectTheme.readEntry(effect));
}
}
}
......
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