Merge pull request #853 from johnwang16/auto_dark_mode

Allow auto light/dark mode matching user OS setting by @johnwang16  🙏
This commit is contained in:
jokob-sk
2024-10-19 14:30:32 +11:00
committed by GitHub
13 changed files with 830 additions and 39 deletions

View File

@@ -463,30 +463,30 @@
]
},
{
"function": "dark_mode",
"function": "theme",
"type": {
"dataType": "boolean",
"dataType": "array",
"elements": [
{
"elementType": "input",
"elementOptions": [{ "type": "checkbox" }],
"elementType": "select",
"elementOptions": [{ "multiple": "false", "orderable": "false" }],
"transformers": []
}
]
},
"default_value": false,
"options": [],
"default_value": "Light",
"options": ["Light","Dark","System"],
"localized": ["name", "description"],
"name": [
{
"language_code": "en_us",
"string": "Dark mode"
"string": "Theme"
}
],
"description": [
{
"language_code": "en_us",
"string": "Enable dark mode."
"string": "UI theme to use. System will auto switch between Light and Dark."
}
]
}