Skip to main content

Module panel

Module panel 

Source
Expand description

The Panel seam — the persistent editor-screen surfaces (activity rail, drawer, editor) behind one interface, the persistent-surface counterpart to the Overlay trait. See CONTEXT.md (“TUI surfaces”).

Structs§

ModalSpec
What a popup shell looks like. Pair with modal_chrome.

Enums§

ModalBg
The popup background: regular panel bg, or the harder shade spec §6 gives the telescope-style modals.
PanelKind
Identifies a persistent panel. Closed set, mirrors OverlayKind.

Functions§

modal_chrome
The one way every popup draws its shell (spec §6): clear the area behind it, draw the titled/bordered block, return the inner rect to fill. Centering stays with the caller — popups center by percent, by fixed size, or dock (which-key), but the shell is identical.
panel_block
Shared panel chrome: a single-line box with the title embedded in the top border (┌─ Title ────┐) and the border colored by focus state — the one way every panel draws its frame.