mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +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(() => {
|
||||
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()
|
||||
}
|
||||
})
|
||||
|
||||
if (window.app.cores.settings.get("auto_darkMode")) {
|
||||
if (window.app.cores.settings.get("style.auto_darkMode")) {
|
||||
this.handleAutoColorScheme()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user