Refactor "theme" selection

This commit is contained in:
Oliver committed 2021-07-27 08:31:43 +10:00
1 parent 0186d23563
commit c63a061cf3
5 files changed
+31 -124

No files matched your search

@@ -232,10 +232,15 @@ def get_available_themes(*args, **kwargs):
Return the available theme choices
"""
print("available:")
print(ColorTheme.get_color_themes_choices())
themes = []
return ColorTheme.get_color_themes_choices()
for key, name in ColorTheme.get_color_themes_choices():
themes.append({
'key': key,
'name': name
})
return themes
@register.filter