mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +00:00
fix auto dark mode
This commit is contained in:
parent
b57d7c6d5a
commit
e4d95e2d9e
@ -129,12 +129,12 @@ export default class StyleCore extends Core {
|
|||||||
window.matchMedia("(prefers-color-scheme: light)").addListener(() => {
|
window.matchMedia("(prefers-color-scheme: light)").addListener(() => {
|
||||||
console.log(`[THEME] Auto color scheme changed`)
|
console.log(`[THEME] Auto color scheme changed`)
|
||||||
|
|
||||||
if (window.app.cores.settings.get("auto_darkMode")) {
|
if (window.app.cores.settings.get("style.auto_darkMode")) {
|
||||||
this.handleAutoColorScheme()
|
this.handleAutoColorScheme()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
if (window.app.cores.settings.get("auto_darkMode")) {
|
if (window.app.cores.settings.get("style.auto_darkMode")) {
|
||||||
this.handleAutoColorScheme()
|
this.handleAutoColorScheme()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user