feat(themeManager): Exposed method to enable automatic global theme change.
This commit is contained in:
parent
126e0fc900
commit
90bb1eb432
@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2025-01-09 - 2.1.0 - feat(themeManager)
|
||||||
|
Exposed method to enable automatic global theme change.
|
||||||
|
|
||||||
|
- Enable easier application of dark and bright themes by exposing a method.
|
||||||
|
- Updated devDependencies and dependencies in package.json to latest versions.
|
||||||
|
|
||||||
## 2024-10-21 - 2.0.65 - fix(ThemeManager)
|
## 2024-10-21 - 2.0.65 - fix(ThemeManager)
|
||||||
Refactor ThemeManager class to separate global style setting logic
|
Refactor ThemeManager class to separate global style setting logic
|
||||||
|
|
||||||
|
16
package.json
16
package.json
@ -15,20 +15,20 @@
|
|||||||
"buildDocs": "tsdoc"
|
"buildDocs": "tsdoc"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@git.zone/tsbuild": "^2.1.84",
|
"@git.zone/tsbuild": "^2.2.0",
|
||||||
"@git.zone/tsbundle": "^2.0.15",
|
"@git.zone/tsbundle": "^2.1.0",
|
||||||
"@git.zone/tstest": "^1.0.90",
|
"@git.zone/tstest": "^1.0.90",
|
||||||
"@push.rocks/tapbundle": "^5.3.0",
|
"@push.rocks/tapbundle": "^5.5.4",
|
||||||
"@types/node": "^22.7.4"
|
"@types/node": "^22.10.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@api.global/typedrequest": "^3.0.32",
|
"@api.global/typedrequest": "^3.1.10",
|
||||||
"@design.estate/dees-comms": "^1.0.27",
|
"@design.estate/dees-comms": "^1.0.27",
|
||||||
"@push.rocks/lik": "^6.0.15",
|
"@push.rocks/lik": "^6.1.0",
|
||||||
"@push.rocks/smartdelay": "^3.0.5",
|
"@push.rocks/smartdelay": "^3.0.5",
|
||||||
"@push.rocks/smartjson": "^5.0.20",
|
"@push.rocks/smartjson": "^5.0.20",
|
||||||
"@push.rocks/smartmarkdown": "^3.0.3",
|
"@push.rocks/smartmarkdown": "^3.0.3",
|
||||||
"@push.rocks/smartpromise": "^4.0.4",
|
"@push.rocks/smartpromise": "^4.1.0",
|
||||||
"@push.rocks/smartrouter": "^1.3.2",
|
"@push.rocks/smartrouter": "^1.3.2",
|
||||||
"@push.rocks/smartrx": "^3.0.7",
|
"@push.rocks/smartrx": "^3.0.7",
|
||||||
"@push.rocks/smartstate": "^2.0.19",
|
"@push.rocks/smartstate": "^2.0.19",
|
||||||
@ -37,7 +37,7 @@
|
|||||||
"@push.rocks/webrequest": "^3.0.37",
|
"@push.rocks/webrequest": "^3.0.37",
|
||||||
"@push.rocks/websetup": "^3.0.19",
|
"@push.rocks/websetup": "^3.0.19",
|
||||||
"@push.rocks/webstore": "^2.0.20",
|
"@push.rocks/webstore": "^2.0.20",
|
||||||
"lit": "^3.2.0",
|
"lit": "^3.2.1",
|
||||||
"sweet-scroll": "^4.0.0"
|
"sweet-scroll": "^4.0.0"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
4088
pnpm-lock.yaml
generated
4088
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@design.estate/dees-domtools',
|
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.'
|
description: 'A package providing tools to simplify complex CSS structures and web development tasks, featuring TypeScript support and integration with various web technologies.'
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ export class ThemeManager {
|
|||||||
this.updateAllConnectedElements();
|
this.updateAllConnectedElements();
|
||||||
}
|
}
|
||||||
|
|
||||||
private async setGlobalStylesOnPurpose() {
|
public async enableAutomaticGlobalThemeChange() {
|
||||||
if (document.body && document.body.style) {
|
if (document.body && document.body.style) {
|
||||||
document.body.style.background = this.goBrightBoolean ? '#fff' : '#000';
|
document.body.style.background = this.goBrightBoolean ? '#fff' : '#000';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user