Skip to main content

Module ui

Module ui 

Source

Modules§

design
Design system tokens and reusable component builders.
host_form
theme

Constants§

PICKER_MIN_HEIGHT
Minimum overlay height required to render rounded borders plus at least one row of content. Below this the overlay is skipped so ratatui does not collapse the borders into an unreadable glyph soup on extremely short terminals.

Functions§

footer_action
Build a footer action span: padded keycap + muted label. Use this for consistent footers across all screens.
footer_key_span
Build a padded footer keycap span: key with reversed style.
footer_primaryDeprecated
Build a primary footer action span: padded keycap + muted label.
picker_overlay_width
Width a picker overlay should use on this frame. Delegates to design::picker_width so the picker-width formula lives in one place.
render
Top-level render dispatcher.
render_footer_with_help
Render footer with shortcuts on the left and “? more” or Info/Progress status on the right. Keyboard hints are always visible. Toast-class messages are NOT shown here.
render_footer_with_status
Render footer with shortcuts always visible and optional status right-aligned. Used by overlay screens. Shows any active footer status (Info, Progress, or sticky messages set via notify_progress).
render_picker_empty_overlay
Render an empty-state picker overlay with a muted message in place of a list. Used when a picker is opened with no candidates (e.g. no other hosts to use as ProxyJump).
render_picker_overlay
Render a list-style picker overlay with the canonical purple look: fixed width range (design::PICKER_MIN_W..=PICKER_MAX_W), height grows with item count up to design::PICKER_MAX_H, rounded border, muted accent, highlight on the selected row and a two-space highlight gutter.