Merge pull request #2811 from crazyserver/MOBILE-3320
MOBILE-3670 styles: Apply statusbar color on login and dark modemain
commit
8a5c7e63ab
|
@ -392,6 +392,8 @@ export class AddonRemoteThemesProvider {
|
||||||
|
|
||||||
this.initSiteStyleElement(TMP_SITE_ID, false);
|
this.initSiteStyleElement(TMP_SITE_ID, false);
|
||||||
this.stylesEls[TMP_SITE_ID].element.innerHTML = text;
|
this.stylesEls[TMP_SITE_ID].element.innerHTML = text;
|
||||||
|
|
||||||
|
CoreApp.setStatusBarColor();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -440,6 +442,8 @@ export class AddonRemoteThemesProvider {
|
||||||
if (siteId && this.stylesEls[siteId]) {
|
if (siteId && this.stylesEls[siteId]) {
|
||||||
document.head.removeChild(this.stylesEls[siteId].element);
|
document.head.removeChild(this.stylesEls[siteId].element);
|
||||||
delete this.stylesEls[siteId];
|
delete this.stylesEls[siteId];
|
||||||
|
|
||||||
|
CoreApp.setStatusBarColor();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -473,6 +473,8 @@ export class CoreSettingsHelperProvider {
|
||||||
*/
|
*/
|
||||||
protected toggleDarkMode(enable: boolean = false): void {
|
protected toggleDarkMode(enable: boolean = false): void {
|
||||||
document.body.classList.toggle('dark', enable);
|
document.body.classList.toggle('dark', enable);
|
||||||
|
|
||||||
|
CoreApp.setStatusBarColor();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue