summaryrefslogtreecommitdiff
path: root/plugin/src/Caelestia/cutils.hpp
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-27 22:55:17 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-27 22:55:17 +1000
commit258feae3d7e3da2e2f7c59fe00cbb7d839dce904 (patch)
tree7073dab2466dc791d851beca96a737914c4f0384 /plugin/src/Caelestia/cutils.hpp
parentplugin: make thread safe (diff)
downloadcaelestia-shell-258feae3d7e3da2e2f7c59fe00cbb7d839dce904.tar.gz
caelestia-shell-258feae3d7e3da2e2f7c59fe00cbb7d839dce904.tar.bz2
caelestia-shell-258feae3d7e3da2e2f7c59fe00cbb7d839dce904.zip
plugin: add getDominantColour
Replaces wack canvas stuff for ColouredIcon
Diffstat (limited to 'plugin/src/Caelestia/cutils.hpp')
-rw-r--r--plugin/src/Caelestia/cutils.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/src/Caelestia/cutils.hpp b/plugin/src/Caelestia/cutils.hpp
index c796e8b..36120f4 100644
--- a/plugin/src/Caelestia/cutils.hpp
+++ b/plugin/src/Caelestia/cutils.hpp
@@ -19,4 +19,7 @@ public:
Q_INVOKABLE bool copyFile(const QUrl& source, const QUrl& target) const;
Q_INVOKABLE bool copyFile(const QUrl& source, const QUrl& target, bool overwrite) const;
+
+ Q_INVOKABLE void getDominantColour(QQuickItem* item) const;
+ Q_INVOKABLE void getDominantColour(QQuickItem* item, int width, int height) const;
};