fix(themamanager): Fixed automatic global theme change subscription for background updates.

This commit is contained in:
2025-01-09 00:33:46 +01:00
parent 916fd48858
commit 25a813d35f
3 changed files with 11 additions and 2 deletions

View File

@ -23,7 +23,11 @@ export class ThemeManager {
public async enableAutomaticGlobalThemeChange() {
if (document.body && document.body.style) {
document.body.style.background = this.goBrightBoolean ? '#fff' : '#000';
this.themeObservable.subscribe({
next: (goBright) => {
document.body.style.background = goBright ? '#fff' : '#000';
}
});
}
}