From d97ca0ce1a29aa62f74a69621f2e24f2af628dfc Mon Sep 17 00:00:00 2001 From: Romain Vigier Date: Sun, 20 Feb 2022 17:50:06 +0100 Subject: [PATCH] Start the transition before changing the color scheme --- src/modules/Timer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/Timer.js b/src/modules/Timer.js index c38004c..ba4e0b9 100644 --- a/src/modules/Timer.js +++ b/src/modules/Timer.js @@ -79,9 +79,9 @@ var Timer = class { return; console.debug(`Time has changed to ${time}.`); this.#time = time; - this.#interfaceSettings.set_string('color-scheme', time === Time.NIGHT ? 'prefer-dark' : 'default'); if (this.#settings.get_boolean('transition')) main.layoutManager.screenTransition.run(); + this.#interfaceSettings.set_string('color-scheme', time === Time.NIGHT ? 'prefer-dark' : 'default'); this.emit('time-changed', time); }