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.stylesEls[TMP_SITE_ID].element.innerHTML = text;
|
||||
|
||||
CoreApp.setStatusBarColor();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -440,6 +442,8 @@ export class AddonRemoteThemesProvider {
|
|||
if (siteId && this.stylesEls[siteId]) {
|
||||
document.head.removeChild(this.stylesEls[siteId].element);
|
||||
delete this.stylesEls[siteId];
|
||||
|
||||
CoreApp.setStatusBarColor();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -473,6 +473,8 @@ export class CoreSettingsHelperProvider {
|
|||
*/
|
||||
protected toggleDarkMode(enable: boolean = false): void {
|
||||
document.body.classList.toggle('dark', enable);
|
||||
|
||||
CoreApp.setStatusBarColor();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue