diff --git a/src/addons/remotethemes/services/remotethemes.ts b/src/addons/remotethemes/services/remotethemes.ts index 941034de6..e8fb945ef 100644 --- a/src/addons/remotethemes/services/remotethemes.ts +++ b/src/addons/remotethemes/services/remotethemes.ts @@ -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(); } } diff --git a/src/core/features/settings/services/settings-helper.ts b/src/core/features/settings/services/settings-helper.ts index 7a14e14ac..88772158d 100644 --- a/src/core/features/settings/services/settings-helper.ts +++ b/src/core/features/settings/services/settings-helper.ts @@ -473,6 +473,8 @@ export class CoreSettingsHelperProvider { */ protected toggleDarkMode(enable: boolean = false): void { document.body.classList.toggle('dark', enable); + + CoreApp.setStatusBarColor(); } }