improve style.autoDarkModeToogle method naming

This commit is contained in:
srgooglo 2022-06-29 19:31:17 +02:00
parent 9b356584eb
commit 6bdf9161b5
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ export default [
"component": "Switch", "component": "Switch",
"icon": "Moon", "icon": "Moon",
"title": "Auto dark mode", "title": "Auto dark mode",
"emitEvent": "app.autoDarkModeToogle", "emitEvent": "style.autoDarkModeToogle",
}, },
{ {
"experimental": true, "experimental": true,

View File

@ -25,7 +25,7 @@ export default class StyleCore extends Core {
layoutPadding: this.getValue("layoutPadding"), layoutPadding: this.getValue("layoutPadding"),
}) })
}, },
"app.autoDarkModeToogle": (value) => { "style.autoDarkModeToogle": (value) => {
if (value === true) { if (value === true) {
this.handleAutoColorScheme() this.handleAutoColorScheme()
} else { } else {