Skip to main content

Module recipe_table_style

Module recipe_table_style 

Source
Expand description

Default TableStyle impl + table-family design tokens.

Design tokens for the table family live as pub consts on this module, shared by TableView and TreeTableView (TreeTableView adds tree-only indent / twist sizing on top of the standard table dims).

§Wiring status

The make_* trait methods produce reference subtrees for custom styles that want to install themselves via style_slots.table = Some(...). The default IntUI shape is the one TableView / TreeTableView paint today inline; they continue to own their paint passes for performance reasons (grid lines need a single batched pass over the virtualized viewport — composing one RectWidget per line would defeat virtualization). The full chrome decomposition is deferred.

Structs§

RecipeTableStyle
Default TableStyle shipped with Teksilo. The trait methods return reference subtrees; the widgets themselves still own their batched paint passes for performance (pending the chrome-decomposition follow-up).
TableRecipe
Configurable dimensions for RecipeTableStyle.

Constants§

CELL_PADDING_HORIZONTAL
Horizontal padding inside each cell (also applied to header cells).
CELL_PADDING_VERTICAL
Vertical padding inside each cell.
COLUMN_RESIZE_STEP
Step, in logical pixels, applied by one assistive-technology Increment / Decrement on a resizable column header — the non-pointer path to the resize grip.
CORNER_RADIUS
Outer-frame corner radius.
FILTER_INDICATOR_SIZE
Edge length of the filter glyph in the header.
FOCUS_RING_INSET
Inset between the focused-cell bounds and the focus-ring stroke.
GRID_LINE_THICKNESS
Stroke width of grid lines drawn between rows / columns.
HEADER_HEIGHT
Sticky header row height.
HEADER_INTER_CELL_SPACING
Spacing between adjacent header cells (in addition to grid lines).
MIN_COLUMN_WIDTH_DEFAULT
Default minimum column width, used when a column does not set its own.
RESIZE_HANDLE_WIDTH
Half-width of a column’s resize grip on the header strip.
ROW_HEIGHT
Body row height. Headers use HEADER_HEIGHT.
SORT_INDICATOR_SIZE
Edge length of the sort-direction chevron in the header.
TREE_INDENT_PER_LEVEL
TreeTableView only — pixels per indent level on the tree column.
TREE_TWIST_LABEL_GAP
TreeTableView only — gap between the twist chevron and the cell content.
TREE_TWIST_SIZE
TreeTableView only — edge length of the twist (expand/collapse) chevron.