Merge pull request #2811 from crazyserver/MOBILE-3320

MOBILE-3670 styles: Apply statusbar color on login and dark mode
main
Dani Palou 2021-06-04 17:02:33 +02:00 committed by GitHub
commit 8a5c7e63ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -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();
}
}

View File

@ -473,6 +473,8 @@ export class CoreSettingsHelperProvider {
*/
protected toggleDarkMode(enable: boolean = false): void {
document.body.classList.toggle('dark', enable);
CoreApp.setStatusBarColor();
}
}