BINDINGS: list[BindingType] = [Binding(
'escape',
'cancel',
'Cancel',
show=False), BindingKey bindings for the selector.
Esc dismisses, restoring the original theme unless a t save set a
per-terminal default this session (in which case that theme is kept).
Arrow keys and Enter are handled natively by the embedded OptionList;
Tab / Shift+Tab are bound
here to advance the option list cursor for consistency with other
selector screens (where Tab cycles focus across multiple widgets).
action_toggle_names toggles between human-readable labels and canonical
registry keys, which are accepted by the theme config. The terminal-default
action saves the highlighted theme for the current terminal and updates
the (default) badge in place without closing the picker.