{# @description Light/dark theme toggle. #}
{# @prop size:select['sm','md','lg'] | default:"sm" | description:"Icon button / toggle size." #}
{# @prop valign:select['top','bottom','left','right'] | default:"bottom" | description:"Dropdown vertical placement, used only when theme.choices is configured." #}
{# @prop halign:select['start','center','end'] | default:"end" | description:"Dropdown horizontal placement, used only when theme.choices is configured." #}
{# @prop compact:boolean | description:"Render the two-theme switcher as one square icon button instead of the icon/checkbox/icon row, for narrow slots. No effect when theme.choices is set, since that branch is already a square icon button." #}
{% load i18n %}
{% if mvp_config.theme.choices %}
{% comment %}
c-menu.item renders a
{% else %}
{% comment %}
theme-change reads this pair as "first,second". Built from configuration
so the toggle follows a project that replaces the packaged themes.
{% endcomment %}
{% if compact %}
{% else %}
{% endif %}
{% endif %}