summaryrefslogtreecommitdiff
path: root/plugin/src/Caelestia/cutils.hpp
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-03 18:55:05 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-03 18:55:05 +1000
commit1de24676bb80ce633a026f336242d486b40dd3c8 (patch)
treedbaff0e2ecfae215c64ea422a44b68c6b40af6bf /plugin/src/Caelestia/cutils.hpp
parentplugin/fsm: incremental updates (diff)
downloadcaelestia-shell-1de24676bb80ce633a026f336242d486b40dd3c8.tar.gz
caelestia-shell-1de24676bb80ce633a026f336242d486b40dd3c8.tar.bz2
caelestia-shell-1de24676bb80ce633a026f336242d486b40dd3c8.zip
internal: refactor Paths util
Diffstat (limited to 'plugin/src/Caelestia/cutils.hpp')
-rw-r--r--plugin/src/Caelestia/cutils.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/src/Caelestia/cutils.hpp b/plugin/src/Caelestia/cutils.hpp
index cac5d7c..42d4418 100644
--- a/plugin/src/Caelestia/cutils.hpp
+++ b/plugin/src/Caelestia/cutils.hpp
@@ -31,6 +31,8 @@ public:
Q_INVOKABLE void getAverageLuminance(const QString& path, QJSValue callback);
Q_INVOKABLE void getAverageLuminance(const QString& path, int rescaleSize, QJSValue callback);
+ Q_INVOKABLE QString toLocalFile(const QUrl& url) const;
+
private:
QColor findDominantColour(const QImage& image, int rescaleSize) const;
qreal findAverageLuminance(const QImage& image, int rescaleSize) const;