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:
@ -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
|
||||
|
Reference in New Issue
Block a user