diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-06 19:17:22 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-06 19:17:22 +1000 |
| commit | afd9b0af977d50fc2fc7d5b026784982ec0a0852 (patch) | |
| tree | ca623bd008d4348d40c39ff9f93b2c9f79e7bb88 /services/Colours.qml | |
| parent | notifs: actually fix y pos during remove anim (diff) | |
| download | caelestia-shell-afd9b0af977d50fc2fc7d5b026784982ec0a0852.tar.gz caelestia-shell-afd9b0af977d50fc2fc7d5b026784982ec0a0852.tar.bz2 caelestia-shell-afd9b0af977d50fc2fc7d5b026784982ec0a0852.zip | |
colours: fix flash when change wallpaper
Diffstat (limited to 'services/Colours.qml')
| -rw-r--r-- | services/Colours.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/services/Colours.qml b/services/Colours.qml index 8b6ce00..aa4282f 100644 --- a/services/Colours.qml +++ b/services/Colours.qml @@ -12,6 +12,7 @@ Singleton { readonly property list<string> colourNames: ["rosewater", "flamingo", "pink", "mauve", "red", "maroon", "peach", "yellow", "green", "teal", "sky", "sapphire", "blue", "lavender"] property bool showPreview + property bool endPreviewOnNextChange property bool light readonly property Colours palette: showPreview ? preview : current readonly property Colours current: Colours {} @@ -42,6 +43,11 @@ Singleton { if (colours.hasOwnProperty(name)) colours[name] = `#${colour.trim()}`; } + + if (isPreview && endPreviewOnNextChange) { + showPreview = false; + endPreviewOnNextChange = false; + } } function setMode(mode: string): void { |