{% extends "admin/change_form.html" %} {% load i18n static %} {% block stylesheets %} {{ block.super }} {% endblock %} {% block javascripts %} {{ block.super }} {{ gte_i18n|json_script:"gte-i18n" }} {{ gte_sources|json_script:"gte-sources" }} {{ gte_prop_types|json_script:"gte-prop-types" }} {{ gte_font_picker|json_script:"gte-font-picker" }} {% endblock %} {# grappelli.cleanInputTypes() turns color/range/number inputs into text inputs; the editor needs them. #} {% block js_clean_input_types %}{% endblock %} {% block object-tools-items %} {% if original and not revert and not recover %} {% if original.is_site_default %}
↺ {% translate "This is an older version of the theme, shown in the live preview. Press Save to restore it." %}
{% elif recover %}↺ {% translate "This is a deleted theme. Press Save to recover it." %}
{% endif %} {% endblock %} {% block field_sets %} {{ block.super }} {% if add or has_change_permission %}{% translate "Pick a few base colours; every other colour of the admin is derived from them. Empty = Grappelli's colour. Dark mode follows the light accent colours automatically unless you set them." %}
| {% translate "Light mode" %} | {% translate "Dark mode" %} | |
|---|---|---|
| {{ seed.label }} | {% include "grappelli_theme_editor/editor/color_input.html" with kind="seed" key=seed.key mode="light" default=seed.light %} | {% include "grappelli_theme_editor/editor/color_input.html" with kind="seed" key=seed.key mode="dark" default=seed.dark auto=seed.derive_dark %} |
{% blocktranslate %}Use “Choose…” next to a field to pick a font, or type any CSS font-family. Uploaded fonts and web fonts added under Fonts appear in the menu too.{% endblocktranslate %}
{% translate "Override single colours. Placeholders show the value currently in effect (Grappelli's default or derived from the base colours)." %}
{% include "grappelli_theme_editor/editor/expand_all.html" %} {% for key, label, tokens in gte_token_groups %}| {% translate "Light mode" %} | {% translate "Dark mode" %} | |
|---|---|---|
| {{ token.label }} | {% include "grappelli_theme_editor/editor/color_input.html" with kind="token" key=token.name mode="light" default=token.light %} | {% include "grappelli_theme_editor/editor/color_input.html" with kind="token" key=token.name mode="dark" default=token.dark %} |
{% translate "Copy one part of another theme into this one — the rest stays as it is. Nothing is saved until you press Save." %}
{% translate "There are no other themes to load from yet." %}
{% endif %}{% url 'grappelli_theme_editor:my-theme' as me_url %}{% blocktranslate %}This is a shared theme. To change it for yourself, use “Customise a copy” on the Appearance page.{% endblocktranslate %}
{% endif %} {% endblock %}