summaryrefslogtreecommitdiff
path: root/services/Colours.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-05 17:06:12 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-05 17:06:12 +1000
commit97ea9d49929b223036e96388c66d700ea731d6db (patch)
tree74b80e05731e7c14903a253b2d972731584f375f /services/Colours.qml
parentfeat: wallpaper (diff)
downloadcaelestia-shell-97ea9d49929b223036e96388c66d700ea731d6db.tar.gz
caelestia-shell-97ea9d49929b223036e96388c66d700ea731d6db.tar.bz2
caelestia-shell-97ea9d49929b223036e96388c66d700ea731d6db.zip
feat: wallpaper and colour preview
Diffstat (limited to 'services/Colours.qml')
-rw-r--r--services/Colours.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/Colours.qml b/services/Colours.qml
index 27e0afd..fd0d1f6 100644
--- a/services/Colours.qml
+++ b/services/Colours.qml
@@ -33,8 +33,8 @@ Singleton {
return Qt.hsla(c.hslHue, c.hslSaturation, 0.2, 1);
}
- function load(data: string, preview: bool): void {
- const colours = preview ? preview : current;
+ function load(data: string, isPreview: bool): void {
+ const colours = isPreview ? preview : current;
for (const line of data.trim().split("\n")) {
let [name, colour] = line.split(" ");
name = name.trim();