From 258feae3d7e3da2e2f7c59fe00cbb7d839dce904 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 27 Aug 2025 22:55:17 +1000 Subject: plugin: add getDominantColour Replaces wack canvas stuff for ColouredIcon --- plugin/src/Caelestia/cutils.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugin/src/Caelestia/cutils.hpp') 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; }; -- cgit v1.2.3-freya