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

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@design.estate/dees-domtools',
version: '2.0.65',
version: '2.1.0',
description: 'A package providing tools to simplify complex CSS structures and web development tasks, featuring TypeScript support and integration with various web technologies.'
}

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';
}