{# Theme switcher behavior: renders the option list, opens/closes the popover, handles keyboard navigation, and persists the choice. Include once, after the markup from theme_switcher.html is present in the DOM (e.g. near the end of
). Required context variable: theme_switcher_modes -- list of {value, label, swatch_bg, swatch_fg} dicts, one per color mode this theme implements, in the same order as theme_prepaint.html's theme_modes. The first entry is treated as the default mode (no data-theme attribute written for it). #}