{%- from "components/macros.html" import navbar_dropdown with context %} {#- data-daisy-mode-names on the root holds the translated names of the three modes, in the order auto, light, dark, separated by a vertical bar; the page script reads them to name the current choice. -#} {%- set d = daisy %} {%- call(part) navbar_dropdown(trigger_class="btn-square", label=_("Choose the colour theme"), panel_class="w-60", attrs={"data-daisy-mode-names": _("Match the system") ~ "|" ~ _("Light") ~ "|" ~ _("Dark")}) %} {%- if part == "trigger" %} {{ d.icon("sun-moon", "size-5") }} {{ d.icon("sun", "size-5") }} {{ d.icon("moon", "size-5") }} {{ d.icon("palette", "size-5") }} {%- else %} {%- if d.modes.picker %}
{{ _("Themes") }}
{%- endif %} {%- endif %} {%- endcall %}