2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-03 20:20:58 +00:00

Added Color Theme view in settings

This commit is contained in:
eeintech
2020-09-07 11:29:24 -05:00
parent f0713ce01d
commit 0548bee8ad
8 changed files with 875 additions and 5 deletions

View File

@ -154,3 +154,17 @@ class Currency(models.Model):
self.value = 1.0
super().save(*args, **kwargs)
class Theme(models.Model):
""" Color Theme setting """
class ThemeChoices(models.IntegerChoices):
DEFAULT = 0, _('Default')
DARKER = 1, _('Darker')
theme = models.IntegerField(choices=ThemeChoices.choices,
default=ThemeChoices.DEFAULT)
def __str__(self):
return self.theme