diff --git a/packages/app/constants/settings/apparence/index.jsx b/packages/app/constants/settings/apparence/index.jsx index 4b585d3b..1930e996 100644 --- a/packages/app/constants/settings/apparence/index.jsx +++ b/packages/app/constants/settings/apparence/index.jsx @@ -33,7 +33,7 @@ export default [ "component": "Switch", "icon": "Moon", "title": "Auto dark mode", - "emitEvent": "app.autoDarkModeToogle", + "emitEvent": "style.autoDarkModeToogle", }, { "experimental": true, diff --git a/packages/app/src/cores/style/index.jsx b/packages/app/src/cores/style/index.jsx index 507f1cbd..885b2335 100644 --- a/packages/app/src/cores/style/index.jsx +++ b/packages/app/src/cores/style/index.jsx @@ -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 {