[mobile] extended theme switching
This commit is contained in:
parent
8099221efb
commit
c6026fca56
|
@ -26,6 +26,14 @@ class ThemesController {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.switchDarkTheme(theme, true);
|
this.switchDarkTheme(theme, true);
|
||||||
|
|
||||||
|
$$(window).on('storage', e => {
|
||||||
|
if ( e.key == LocalStorage.prefix + 'ui-theme' ) {
|
||||||
|
if ( !!e.newValue ) {
|
||||||
|
this.switchDarkTheme(JSON.parse(e.newValue), true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
get isCurrentDark() {
|
get isCurrentDark() {
|
||||||
|
|
Loading…
Reference in a new issue