feat(themeManager): Exposed method to enable automatic global theme change.

This commit is contained in:
2025-01-09 00:24:17 +01:00
parent 126e0fc900
commit 90bb1eb432
5 changed files with 3711 additions and 403 deletions

View File

@@ -21,7 +21,7 @@ export class ThemeManager {
this.updateAllConnectedElements();
}
private async setGlobalStylesOnPurpose() {
public async enableAutomaticGlobalThemeChange() {
if (document.body && document.body.style) {
document.body.style.background = this.goBrightBoolean ? '#fff' : '#000';
}