Skip to main content

Module recipe_radio_style

Module recipe_radio_style 

Source
Expand description

Default RadioStyle impl driven by paint-recipe data.

RecipeRadioStyle ships the IntUI look out of the box; apps that want a different design language (Material 3 radio with growing ripple, brutalist square, custom mark) write their own impl RadioStyle block and install it per-call (RadioButton::style(...)) or theme-wide (theme.style_slots.radio = Some(Rc::new(MyRadio))).

The body is a small leaf widget (RadioBody) that paints the outer ring + inner dot directly to canvas — same trade-off as RecipeCheckboxStyle / RecipeToggleStyle.

Structs§

RadioRecipe
Dimension recipe for RecipeRadioStyle. All tuneable sizes are collected here so an app can pass a customised RadioRecipe to RecipeRadioStyle::new without writing a full RadioStyle impl.
RecipeRadioStyle
Default RadioStyle shipped with Teksilo. Colors come from theme.colors.{accent, accent_hover, accent_pressed, accent_disabled, border, border_strong, border_focused}.

Constants§

RADIO_HIT_AREA
RADIO_INNER_DOT_SIZE
RADIO_LABEL_GAP
RADIO_VISUAL_SIZE