{# Appearance Dropdown (mode + brand) #} {# 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' %} {# HELPER: Render a theme option button #} {% def theme_option(type, value, label_key, default_label, icon_name=none) %} {% end %}
{{ t('theme.mode', default='Mode') }} {{ theme_option('appearance', 'system', 'theme.system', 'System', 'monitor') }} {{ theme_option('appearance', 'light', 'theme.light', 'Light', 'sun') }} {{ theme_option('appearance', 'dark', 'theme.dark', 'Dark', 'moon') }}
{{ t('theme.palette', default='Palette') }} {{ theme_option('palette', 'snow-lynx', 'theme.palette_snow_lynx', 'Snow Lynx') }} {{ theme_option('palette', 'brown-bengal', 'theme.palette_brown_bengal', 'Brown Bengal') }} {{ theme_option('palette', 'silver-bengal', 'theme.palette_silver_bengal', 'Silver Bengal') }} {{ theme_option('palette', 'charcoal-bengal', 'theme.palette_charcoal_bengal', 'Charcoal Bengal') }} {{ theme_option('palette', 'blue-bengal', 'theme.palette_blue_bengal', 'Blue Bengal') }}