Coverage for app/venv/lib/python3.14/site-packages/weblate/utils/colors.py: 100%

19 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-10-07 07:15 +0000

1# Copyright © Michal Čihař <michal@weblate.org> 

2# 

3# SPDX-License-Identifier: GPL-3.0-or-later 

4 

5from django.db.models import TextChoices 

6from django.utils.translation import gettext_lazy 

7 

8 

9class ColorChoices(TextChoices): 

10 # Translators: Name of a color 

11 NAVY = "navy", gettext_lazy("Navy") 

12 # Translators: Name of a color 

13 BLUE = "blue", gettext_lazy("Blue") 

14 # Translators: Name of a color 

15 AQUA = "aqua", gettext_lazy("Aqua") 

16 # Translators: Name of a color 

17 TEAL = "teal", gettext_lazy("Teal") 

18 # Translators: Name of a color 

19 OLIVE = "olive", gettext_lazy("Olive") 

20 # Translators: Name of a color 

21 GREEN = "green", gettext_lazy("Green") 

22 # Translators: Name of a color 

23 LIME = "lime", gettext_lazy("Lime") 

24 # Translators: Name of a color 

25 YELLOW = "yellow", gettext_lazy("Yellow") 

26 # Translators: Name of a color 

27 ORANGE = "orange", gettext_lazy("Orange") 

28 # Translators: Name of a color 

29 RED = "red", gettext_lazy("Red") 

30 # Translators: Name of a color 

31 MAROON = "maroon", gettext_lazy("Maroon") 

32 # Translators: Name of a color 

33 FUCHSIA = "fuchsia", gettext_lazy("Fuchsia") 

34 # Translators: Name of a color 

35 PURPLE = "purple", gettext_lazy("Purple") 

36 # Translators: Name of a color 

37 BLACK = "black", gettext_lazy("Black") 

38 # Translators: Name of a color 

39 GRAY = "gray", gettext_lazy("Gray") 

40 # Translators: Name of a color 

41 SILVER = "silver", gettext_lazy("Silver")