mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
improve style.autoDarkModeToogle
method naming
This commit is contained in:
parent
9b356584eb
commit
6bdf9161b5
@ -33,7 +33,7 @@ export default [
|
||||
"component": "Switch",
|
||||
"icon": "Moon",
|
||||
"title": "Auto dark mode",
|
||||
"emitEvent": "app.autoDarkModeToogle",
|
||||
"emitEvent": "style.autoDarkModeToogle",
|
||||
},
|
||||
{
|
||||
"experimental": true,
|
||||
|
@ -25,7 +25,7 @@ export default class StyleCore extends Core {
|
||||
layoutPadding: this.getValue("layoutPadding"),
|
||||
})
|
||||
},
|
||||
"app.autoDarkModeToogle": (value) => {
|
||||
"style.autoDarkModeToogle": (value) => {
|
||||
if (value === true) {
|
||||
this.handleAutoColorScheme()
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user