change: document.body theme color

This commit is contained in:
Vick Scarlet
2026-07-27 23:57:22 +08:00
parent 43751ad2db
commit 42d874556c
+1
View File
@@ -364,6 +364,7 @@ export default class UIManager {
set theme(value) {
localStorage.setItem('theme', value)
this.#stage.bgColor = this.#configs.bgColor
document.body.style.backgroundColor = this.#configs.bgColor
document
?.querySelector?.('meta[name="theme-color"]')
?.setAttribute?.('content', this.#configs.bgColor)