Commit c480dc43 authored by Marco Martin's avatar Marco Martin

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 361a1c29
......@@ -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));
}
}
}
......
Markdown is supported
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