Start the transition before changing the color scheme
This commit is contained in:
@@ -79,9 +79,9 @@ var Timer = class {
|
|||||||
return;
|
return;
|
||||||
console.debug(`Time has changed to ${time}.`);
|
console.debug(`Time has changed to ${time}.`);
|
||||||
this.#time = time;
|
this.#time = time;
|
||||||
this.#interfaceSettings.set_string('color-scheme', time === Time.NIGHT ? 'prefer-dark' : 'default');
|
|
||||||
if (this.#settings.get_boolean('transition'))
|
if (this.#settings.get_boolean('transition'))
|
||||||
main.layoutManager.screenTransition.run();
|
main.layoutManager.screenTransition.run();
|
||||||
|
this.#interfaceSettings.set_string('color-scheme', time === Time.NIGHT ? 'prefer-dark' : 'default');
|
||||||
this.emit('time-changed', time);
|
this.emit('time-changed', time);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user