summaryrefslogtreecommitdiff
path: root/services/Colours.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-17 23:02:54 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-17 23:02:54 +1000
commit491c0f1dbd601956f3f3b4fd56e1872632f2f814 (patch)
tree3722ca258533d542a180a74f50930a98600ee4b6 /services/Colours.qml
parentlauncher: fix wallpaper preview colours (diff)
downloadcaelestia-shell-491c0f1dbd601956f3f3b4fd56e1872632f2f814.tar.gz
caelestia-shell-491c0f1dbd601956f3f3b4fd56e1872632f2f814.tar.bz2
caelestia-shell-491c0f1dbd601956f3f3b4fd56e1872632f2f814.zip
launcher: fix transition between lists
Also fix wallpaper preview not switching back when using non dynamic scheme
Diffstat (limited to 'services/Colours.qml')
-rw-r--r--services/Colours.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/services/Colours.qml b/services/Colours.qml
index 53ca90e..3a26e84 100644
--- a/services/Colours.qml
+++ b/services/Colours.qml
@@ -12,6 +12,8 @@ Singleton {
readonly property list<string> colourNames: ["rosewater", "flamingo", "pink", "mauve", "red", "maroon", "peach", "yellow", "green", "teal", "sky", "sapphire", "blue", "lavender"]
property bool showPreview
+ property string scheme
+ property string flavour
property bool light
readonly property Colours palette: showPreview ? preview : current
readonly property Colours current: Colours {}
@@ -37,6 +39,11 @@ Singleton {
const colours = isPreview ? preview : current;
const scheme = JSON.parse(data);
+ if (!isPreview) {
+ root.scheme = scheme.name;
+ flavour = scheme.flavour;
+ }
+
light = scheme.mode === "light";
for (const [name, colour] of Object.entries(scheme.colours)) {