mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-23 16:26:17 +00:00
Refactor "theme" selection
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user