Refactor the theme setting meta fields and requirements

This commit is contained in:
Veronica Berglyd Olsen
2025-06-20 16:35:58 +02:00
parent aba179d2de
commit b64c2f3597
3 changed files with 20 additions and 17 deletions
+2 -2
View File
@@ -613,7 +613,7 @@ def testGuiTheme_CheckTheme(theme):
structure = {
"Main": [
"name", "mode", # The rest are not required
"name", "mode", "description", "author", # The rest are not required
],
"Base": [
"base", "default", "faded", "red", "orange", "yellow", "green",
@@ -638,7 +638,7 @@ def testGuiTheme_CheckTheme(theme):
"errorline", "replacetag", "modifier", "texthighlight",
],
}
optional = ["description", "author", "credit", "url", "license", "licenseurl"]
optional = ["credit", "url"]
missing = []
for section, options in structure.items():
missing.extend(opt for opt in options if opt not in parser[section])