Skip to main content

Module surface

Module surface 

Source
Expand description

Surfaces: cards and sections, panel headers, popup and menu rows, the dialog frame, toasts and tree rows.

Structs§

DialogOutput
What a dialog’s footer reported.
TreeRow
One row of the sidebar tree.

Enums§

Kind

Functions§

badge
A small status badge (error, warning, suppressed) for the right of a tree row.
card
A card: bg.raised, radius 8, a 1 px border.subtle border, 12 px padding.
dialog
The dialog look: the medium shadow, a title row, the content, and a footer with the primary button on the right and the secondary to its left. Drawn in place (the gallery, and the body of an egui::Window in step 4).
field_row
One row of a section’s two-column grid: the label left, the control right.
menu_header
A caption header inside a menu or dropdown.
menu_row
A menu row: 28 px, hover background, shortcut text on the right, an accent check when checked.
menu_row_with
menu_row with the keyboard cursor on it.
menu_separator
A menu separator.
panel_header
A panel’s header row: a collapse chevron, the title, and optional actions (ghost icon buttons) on the right. Returns the header’s response; a click toggles collapsed.
popup_frame
The frame of a popup, menu or context menu: bg.raised, the small shadow.
section
A section: a card under a section header.
toast
A toast card: a coloured left bar for the kind, the text, a close ×. Returns the × response.
tree_row
A 24 px tree row: a type icon, the selected row on accent.muted with a 2 px accent left edge, faint indent guides, and a status badge on the right.