Skip to main content

Module recipe_button_style

Module recipe_button_style 

Source
Expand description

Default ButtonStyle impl driven by ButtonRecipe data per variant. Holds a HashMap<ButtonVariant, ButtonRecipe> and looks up the recipe at paint time.

Apps retheme buttons by constructing a fresh map of recipes (e.g. a Material-3 ButtonRecipe set with rounded-edge filled buttons) and installing it per-call (Button::style(MyStyle)) or theme-wide (theme.style_slots.button = Some(Rc::new(MyStyle))). The Button widget never sees the recipe; it only knows about the trait.

Structs§

RecipeButtonStyle
Default ButtonStyle shipped with Teksilo.

Constants§

BUTTON_BORDER_WIDTH
BUTTON_CORNER_RADIUS
BUTTON_HEIGHT
BUTTON_ICON_LABEL_GAP
BUTTON_ICON_SIZE
BUTTON_MIN_WIDTH
BUTTON_PADDING_HORIZONTAL
BUTTON_PADDING_VERTICAL

Functions§

shared_intui