update darkMode setting

This commit is contained in:
srgooglo 2022-05-12 17:21:30 +02:00
parent ff50b5d4f3
commit 21bbb5c9df

View File

@ -146,14 +146,17 @@ export default [
"experimental": true "experimental": true
}, },
{ {
"experimental": true,
"id": "darkMode", "id": "darkMode",
"storaged": true, "storaged": true,
"group": "aspect", "group": "aspect",
"type": "Switch", "type": "Switch",
"icon": "Moon", "icon": "Moon",
"title": "Dark mode", "title": "Dark mode",
"emitEvent": "darkMode", "emitEvent": "theme.applyVariant",
"experimental": true "emissionValueUpdate": (value) => {
return value ? "dark" : "light"
},
}, },
{ {
"id": "primaryColor", "id": "primaryColor",