Skip to main content

Module recipe_radio_tile_style

Module recipe_radio_tile_style 

Source
Expand description

Default RadioTileStyle impl driven by paint-recipe data.

RecipeRadioTileStyle ships the IntUI “selectable card” chrome: a rounded surface with a reactive fill + border cascade driven by the tile’s selection / hover / press / focus state, an optional elevation shadow for the Elevated variant, and content inset by padding.

Like RecipeCardStyle, the body is a single RadioTileFrame container widget that paints the chrome and positions the content with a padding inset — a bespoke frame rather than a ZStack, because a ZStack measures children at unspecified() and would break the height-for-width measurement of the tile’s wrapping description (its documented limitation).

The fill / border cascade mirrors RecipeStandardItemStyle: a selected tile shows the vivid AccentSubtle surface only while focused and window-active, else the muted SelectedInactive; the keyboard focus ring (BorderRole::Focused) appears only under selected && focused && focus-visible.

Structs§

RadioTileRecipe
Dimension recipe for RecipeRadioTileStyle. Mirrors the pub const defaults and allows per-instance overrides without a custom RadioTileStyle impl.
RecipeRadioTileStyle
Default RadioTileStyle shipped with Teksilo.

Constants§

RADIO_TILE_BORDER_WIDTH
RADIO_TILE_CORNER_RADIUS
RADIO_TILE_FOCUS_RING_WIDTH
RADIO_TILE_PADDING
RADIO_TILE_SELECTED_BORDER_WIDTH
RADIO_TILE_SHADOW_DENSITY
0..=1 multiplier on the elevation shadow alpha at paint time (Elevated variant).
RADIO_TILE_VERTICAL_ROW_HEIGHT
Fixed row height (logical px) for a RadioTileGroup in TileLayout::Vertical — the compact settings-list arrangement.