Commit b24b049c authored by Ismael Asensio's avatar Ismael Asensio
Browse files

kcms/colors: Fix un-setting accent color from wallpaper

Fix changes in 6e7a147e, where the property `accentColorFromWallpaper`
would get set but not un-set from the UI.
parent 09a5a770
Pipeline #180089 passed with stage
in 6 minutes and 17 seconds
......@@ -72,6 +72,7 @@ KCMColors::KCMColors(QObject *parent, const KPluginMetaData &data, const QVarian
});
connect(colorsSettings(), &ColorsSettings::accentColorChanged, this, &KCMColors::accentColorChanged);
connect(colorsSettings(), &ColorsSettings::accentColorFromWallpaperChanged, this, &KCMColors::accentColorFromWallpaperChanged);
connect(m_model, &ColorsModel::selectedSchemeChanged, m_filteredModel, &FilterProxyModel::setSelectedScheme);
m_filteredModel->setSourceModel(m_model);
......
......@@ -146,6 +146,7 @@ KCM.GridViewKCM {
onToggled: {
if (checked) {
kcm.accentColorFromWallpaper = false;
kcm.accentColor = "transparent"
}
}
......@@ -171,6 +172,7 @@ KCM.GridViewKCM {
onToggled: {
if (checked) {
kcm.accentColorFromWallpaper = false;
kcm.accentColor = colorRepeater.model[0]
}
}
......@@ -237,9 +239,10 @@ KCM.GridViewKCM {
checked: Qt.colorEqual(kcm.accentColor, modelData)
onToggled: {
kcm.accentColorFromWallpaper = false;
kcm.accentColor = modelData
checked = Qt.binding(() => Qt.colorEqual(kcm.accentColor, modelData));
}
}
}
}
......
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