From 491c0f1dbd601956f3f3b4fd56e1872632f2f814 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 17 Jun 2025 23:02:54 +1000 Subject: launcher: fix transition between lists Also fix wallpaper preview not switching back when using non dynamic scheme --- services/Colours.qml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'services') 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 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)) { -- cgit v1.2.3-freya