mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-08-28 01:06:49 +08:00
change: document.body theme color
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user