mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24: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",
|
"component": "Switch",
|
||||||
"icon": "Moon",
|
"icon": "Moon",
|
||||||
"title": "Auto dark mode",
|
"title": "Auto dark mode",
|
||||||
"emitEvent": "app.autoDarkModeToogle",
|
"emitEvent": "style.autoDarkModeToogle",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"experimental": true,
|
"experimental": true,
|
||||||
|
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user