{# Appearance Dropdown #} {# Native popover API - browser handles open/close, focus, escape key #} {# Use theme_menu_id variable to allow unique IDs for desktop/mobile #} {% let _theme_menu_id = theme_menu_id ?? 'theme-menu' %} {% def appearance_option(value, label_key, default_label, icon_name) %} {% end %}
{{ t('theme.mode', default='Mode') }} {{ appearance_option('system', 'theme.system', 'System', 'monitor') }} {{ appearance_option('light', 'theme.light', 'Light', 'sun') }} {{ appearance_option('dark', 'theme.dark', 'Dark', 'moon') }}