From d5dd193bec390bde91d3c6da67f931990faf0b99 Mon Sep 17 00:00:00 2001 From: lunars97 Date: Tue, 26 Nov 2024 08:41:46 +0100 Subject: [PATCH] Add additional language colors --- integreat_cms/cms/constants/language_color.py | 20 ++++++ .../0111_alter_language_language_color.py | 71 +++++++++++++++++++ integreat_cms/locale/de/LC_MESSAGES/django.po | 40 +++++++++++ .../release_notes/current/unreleased/2858.yml | 2 + 4 files changed, 133 insertions(+) create mode 100644 integreat_cms/cms/migrations/0111_alter_language_language_color.py create mode 100644 integreat_cms/release_notes/current/unreleased/2858.yml diff --git a/integreat_cms/cms/constants/language_color.py b/integreat_cms/cms/constants/language_color.py index 40725f6ef3..8013358ea1 100644 --- a/integreat_cms/cms/constants/language_color.py +++ b/integreat_cms/cms/constants/language_color.py @@ -48,6 +48,16 @@ PINE_GREEN: Final = "#20B2AA" ALMOND: Final = "#FFDAB9" CHERRY: Final = "#D62728" +DUSTY_ORANGE: Final = "#DB6D4B" +DUST_STORM: Final = "#E0D3C0" +SILVER: Final = "#C9C7C1" +LIGHT_GRAY: Final = "#CED6DA" +DARK_GRAY: Final = "#91B1C0" +DEEP_PINK: Final = "#F72681" +DARK_YELLOWISH_GREEN: Final = "#26662C" +MODERATE_REDDISH_PURPLE: Final = "#9C5B87" +STRONG_YELLOW: Final = "#C8B03C" +BRILLIANT_PURPLISH_BLUE = "#6F79AB" TOTAL_ACCESS: Final = "#000000" WEB_APP_ACCESS: Final = "#FF00A8" @@ -87,4 +97,14 @@ (PINE_GREEN, _("Pine green")), (ALMOND, _("Almond")), (CHERRY, _("Cherry")), + (DUSTY_ORANGE, _("Dusty orange")), + (DUST_STORM, _("Dust storm")), + (SILVER, _("Silver")), + (LIGHT_GRAY, _("Light gray")), + (DARK_GRAY, _("Dark gray")), + (DEEP_PINK, _("Deep pink")), + (DARK_YELLOWISH_GREEN, _("Dark yellowish green")), + (MODERATE_REDDISH_PURPLE, _("Moderate reddish purple")), + (STRONG_YELLOW, _("Strong yellow")), + (BRILLIANT_PURPLISH_BLUE, _("Brilliant purplish blue")), ] diff --git a/integreat_cms/cms/migrations/0111_alter_language_language_color.py b/integreat_cms/cms/migrations/0111_alter_language_language_color.py new file mode 100644 index 0000000000..6a3d99b821 --- /dev/null +++ b/integreat_cms/cms/migrations/0111_alter_language_language_color.py @@ -0,0 +1,71 @@ +# Generated by Django 4.2.16 on 2024-11-26 07:19 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + """ + Add additional language colors + """ + + dependencies = [ + ("cms", "0110_region_zammad_webhook_token_alter_region_zammad_url"), + ] + + operations = [ + migrations.AlterField( + model_name="language", + name="language_color", + field=models.CharField( + choices=[ + ("#FFBB78", "Mellow apricot"), + ("#2CA02C", "Forest green"), + ("#FF9896", "Rose"), + ("#C5B0D5", "Tropical violet"), + ("#FF4500", "Red"), + ("#FFA500", "Orange"), + ("#17157D", "Dark blue"), + ("#1F77B4", "Green blue"), + ("#FFD700", "Yellow"), + ("#008080", "Teal"), + ("#9EDAE5", "Arctic"), + ("#5894E3", "Azure"), + ("#17BECF", "Pacific blue"), + ("#FF6347", "Orange red"), + ("#98DF8A", "Light green"), + ("#9467BD", "Violet"), + ("#ADFF2F", "Lime"), + ("#E377C2", "Lavender"), + ("#8C564B", "Brown"), + ("#FFA07A", "Pink orange"), + ("#FFE4F0", "Pastel pink"), + ("#F0E68C", "Khaki"), + ("#BCBD22", "Yellow green"), + ("#800080", "Mauve"), + ("#BA55D3", "Purple"), + ("#DBDB8D", "Primrose"), + ("#4B5563", "Fiord"), + ("#C49C94", "Quicksand"), + ("#7F7F7F", "Grey"), + ("#26FCFF", "Aqua"), + ("#20B2AA", "Pine green"), + ("#FFDAB9", "Almond"), + ("#D62728", "Cherry"), + ("#DB6D4B", "Dusty orange"), + ("#E0D3C0", "Dust storm"), + ("#C9C7C1", "Silver"), + ("#CED6DA", "Light gray"), + ("#91B1C0", "Dark gray"), + ("#F72681", "Deep pink"), + ("#26662C", "Dark yellowish green"), + ("#9C5B87", "Moderate reddish purple"), + ("#C8B03C", "Strong yellow"), + ("#6F79AB", "Brilliant purplish blue"), + ], + default="#000000", + help_text="This color is used to represent the color label of the chosen language", + max_length=7, + verbose_name="language color", + ), + ), + ] diff --git a/integreat_cms/locale/de/LC_MESSAGES/django.po b/integreat_cms/locale/de/LC_MESSAGES/django.po index 3db16416fa..d3059f66b9 100644 --- a/integreat_cms/locale/de/LC_MESSAGES/django.po +++ b/integreat_cms/locale/de/LC_MESSAGES/django.po @@ -1368,6 +1368,46 @@ msgstr "Mandel" msgid "Cherry" msgstr "Kirsche" +#: cms/constants/language_color.py +msgid "Dusty orange" +msgstr "Stauborange" + +#: cms/constants/language_color.py +msgid "Dust storm" +msgstr "Staubsturm" + +#: cms/constants/language_color.py +msgid "Silver" +msgstr "Silber" + +#: cms/constants/language_color.py +msgid "Light gray" +msgstr "Hellgrau" + +#: cms/constants/language_color.py +msgid "Dark gray" +msgstr "Dunkelgrau" + +#: cms/constants/language_color.py +msgid "Deep pink" +msgstr "Tiefrosa" + +#: cms/constants/language_color.py +msgid "Dark yellowish green" +msgstr "Dunkelgelbliches Grün" + +#: cms/constants/language_color.py +msgid "Moderate reddish purple" +msgstr "Mittleres Purpurrot" + +#: cms/constants/language_color.py +msgid "Strong yellow" +msgstr "Starkes Gelb" + +#: cms/constants/language_color.py +msgid "Brilliant purplish blue" +msgstr "Leuchtendes Purpurblau" + #: cms/constants/linkcheck.py msgid "" "New Connection Error: Failed to establish a new connection: [Errno -2] Name " diff --git a/integreat_cms/release_notes/current/unreleased/2858.yml b/integreat_cms/release_notes/current/unreleased/2858.yml new file mode 100644 index 0000000000..cedd1bbfb8 --- /dev/null +++ b/integreat_cms/release_notes/current/unreleased/2858.yml @@ -0,0 +1,2 @@ +en: Add additional language colors +de: Füge zusätzliche Sprachfarben hinzu