From aa1c19bfbe6902f4771928c82bc7a6f06343d7e1 Mon Sep 17 00:00:00 2001 From: Fushan Wen Date: Sat, 23 Apr 2022 13:53:44 +0800 Subject: [PATCH] kcms/colors: Wallpaper accent color is not custom color --- kcms/colors/package/contents/ui/main.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kcms/colors/package/contents/ui/main.qml b/kcms/colors/package/contents/ui/main.qml index 71f72d223..1f305a689 100644 --- a/kcms/colors/package/contents/ui/main.qml +++ b/kcms/colors/package/contents/ui/main.qml @@ -286,7 +286,8 @@ KCM.GridViewKCM { ColorRadioButton { id: customColorIndicator - readonly property bool isCustomColor: root.accentColor + readonly property bool isCustomColor: !wallpaperAccentBox.checked + && root.accentColor && !colorRepeater.model.some(color => Qt.colorEqual(color, root.accentColor)) /* The qt binding will keep the binding alive as well as uncheck the button