change: document.body theme color

This commit is contained in:
Vick Scarlet
2026-08-16 20:06:16 +08:00
committed by 神戸小鳥
parent 0b69992037
commit 05b59011ff
+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)