mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-08-30 18:36:09 +08:00
change: document.body theme color
This commit is contained in:
@@ -364,6 +364,7 @@ export default class UIManager {
|
|||||||
set theme(value) {
|
set theme(value) {
|
||||||
localStorage.setItem('theme', value)
|
localStorage.setItem('theme', value)
|
||||||
this.#stage.bgColor = this.#configs.bgColor
|
this.#stage.bgColor = this.#configs.bgColor
|
||||||
|
document.body.style.backgroundColor = this.#configs.bgColor
|
||||||
document
|
document
|
||||||
?.querySelector?.('meta[name="theme-color"]')
|
?.querySelector?.('meta[name="theme-color"]')
|
||||||
?.setAttribute?.('content', this.#configs.bgColor)
|
?.setAttribute?.('content', this.#configs.bgColor)
|
||||||
|
|||||||
Reference in New Issue
Block a user