Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Workspace
Commits
acce75cd
Verified
Commit
acce75cd
authored
Apr 23, 2022
by
Fushan Wen
Browse files
kcms/colors: Simplify `isCustomColor`
parent
ad32f4f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
kcms/colors/package/contents/ui/main.qml
View file @
acce75cd
...
...
@@ -286,9 +286,8 @@ KCM.GridViewKCM {
ColorRadioButton
{
id
:
customColorIndicator
property
bool
isCustomColor
:
root
.
accentColor
?
!
colorRepeater
.
model
.
some
(
color
=>
Qt
.
colorEqual
(
color
,
root
.
accentColor
))
:
false
property
bool
isCustomColor
:
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
* we can't just disable the button because then the icon will become grey
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment