summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-27 23:29:11 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-27 23:29:11 +1000
commitbec98e1fc5a25e68e3cc7bf7585c092a82a40633 (patch)
treeea28691f78ee45c001d3230ef63370b22d8f3e7f /components
parenthypr: fix active window and window focus (#483) (diff)
downloadcaelestia-shell-bec98e1fc5a25e68e3cc7bf7585c092a82a40633.tar.gz
caelestia-shell-bec98e1fc5a25e68e3cc7bf7585c092a82a40633.tar.bz2
caelestia-shell-bec98e1fc5a25e68e3cc7bf7585c092a82a40633.zip
plugin: better getDominantColour
Use callback instead of setting prop
Diffstat (limited to 'components')
-rw-r--r--components/effects/ColouredIcon.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/effects/ColouredIcon.qml b/components/effects/ColouredIcon.qml
index a858c25..b711b88 100644
--- a/components/effects/ColouredIcon.qml
+++ b/components/effects/ColouredIcon.qml
@@ -19,12 +19,12 @@ IconImage {
}
layer.onEnabledChanged: {
- if (layer.enabled)
- CUtils.getDominantColour(this);
+ if (layer.enabled && status === Image.Ready)
+ CUtils.getDominantColour(this, c => dominantColour = c);
}
onStatusChanged: {
if (layer.enabled && status === Image.Ready)
- CUtils.getDominantColour(this);
+ CUtils.getDominantColour(this, c => dominantColour = c);
}
}