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§
- Recipe
Button Style - Default
ButtonStyleshipped 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