diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-27 22:55:17 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-27 22:55:17 +1000 |
| commit | 258feae3d7e3da2e2f7c59fe00cbb7d839dce904 (patch) | |
| tree | 7073dab2466dc791d851beca96a737914c4f0384 /plugin/src/Caelestia/cutils.hpp | |
| parent | plugin: make thread safe (diff) | |
| download | caelestia-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.hpp | 3 |
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; }; |