2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-20 05:46:34 +00:00

Refactor "theme" selection

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

View File

@ -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