Skip to main content

Module recipe_standard_item_style

Module recipe_standard_item_style 

Source
Expand description

Default StandardItemStyle impl driven by paint-recipe data.

RecipeStandardItemStyle reproduces the IntUI selection chrome used by StandardListItem / StandardTreeItem: a rounded selection background inset horizontally so the rounded corners show, with content padded inside. Selection / hover / pressed all cycle through the same SurfaceRole::{Selected | AccentSubtle | Pressed} cascade.

The host widget composes the row contents ([checkbox?] [leading?] [center?] label_column [Spacer] [trailing?]) and passes the result as cfg.content; this style only owns the chrome.

Structs§

RecipeStandardItemStyle
Default StandardItemStyle shipped with Teksilo.
StandardItemRecipe
Configurable dimensions for RecipeStandardItemStyle.

Constants§

STANDARD_ITEM_BG_HORIZONTAL_INSET
STANDARD_ITEM_CHEVRON_COLUMN_WIDTH
STANDARD_ITEM_FOCUS_RING_WIDTH
Keyboard-focus ring thickness for the current item while its view is focused.
STANDARD_ITEM_ICON_SIZE
STANDARD_ITEM_ITEM_CORNER_RADIUS
STANDARD_ITEM_LABEL_COLUMN_MIN_WIDTH
Compression floor for the label column when the caller opted its label or subtitle into truncation (label_overflow / subtitle_overflow). Wide enough that a truncated label keeps a few glyphs before the ellipsis rather than collapsing to nothing on a very narrow row.
STANDARD_ITEM_LABEL_SUBTITLE_GAP
STANDARD_ITEM_MIN_HEIGHT_SINGLE_LINE
STANDARD_ITEM_MIN_HEIGHT_TWO_LINE
STANDARD_ITEM_PADDING_HORIZONTAL
STANDARD_ITEM_PADDING_VERTICAL
STANDARD_ITEM_SELECTION_EDGE_WIDTH
Border thickness drawn around a selected item (in the BorderRole::Focused accent colour) even without keyboard focus. A non-color-alone, >= 3:1 boundary cue so selection is perceivable beyond the low-contrast surface_selected wash (WCAG 1.4.1 Use of Color / 1.4.11 Non-text Contrast). Thinner than the keyboard-focus ring so the two stay distinguishable.
STANDARD_ITEM_SLOT_GAP
STANDARD_ITEM_SUBTITLE_ICON_SIZE
STANDARD_ITEM_SUBTITLE_SLOT_GAP
STANDARD_ITEM_TREE_INDENT_STEP