Always apply theme variant on theme change
This commit is contained in:
@@ -68,10 +68,7 @@ var Switcher = class {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_on_theme_change() {
|
_on_theme_change() {
|
||||||
const new_theme = this.theme.current;
|
this.variants = Variants.guess_from(this.theme.current);
|
||||||
if ( new_theme === this.variants.day || new_theme === this.variants.night ) return;
|
|
||||||
|
|
||||||
this.variants = Variants.guess_from(new_theme);
|
|
||||||
this._apply_theme_variant();
|
this._apply_theme_variant();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user