Skip to main content

Module recipe_icon_button_style

Module recipe_icon_button_style 

Source
Expand description

Default IconButtonStyle impl driven by paint-recipe data.

RecipeIconButtonStyle ships the IntUI flat-square treatment: transparent at rest, surface tint on hover / pressed, accent border on focus, optional Selected surface tint when a toggled signal is bound.

Apps that want a different treatment (Material 3 elevated icon button, glassmorphism, brutalist square frame) write their own impl IconButtonStyle block and install it per-call (IconButton::style(...)) or theme-wide (theme.style_slots.icon_button = Some(Rc::new(MyIconButton))).

Structs§

IconButtonRecipe
Dimension recipe for RecipeIconButtonStyle. All fields correspond to the ICON_BUTTON_* module constants and can be overridden per call-site or theme-wide by constructing a custom IconButtonRecipe.
RecipeIconButtonStyle
Default IconButtonStyle shipped with Teksilo. Surface roles come from the active theme’s role resolver (so theme-swap repaints for free).

Constants§

ICON_BUTTON_CORNER_RADIUS
ICON_BUTTON_ICON_SIZE
ICON_BUTTON_ICON_SIZE_HERO
ICON_BUTTON_ICON_SIZE_LARGE
ICON_BUTTON_ICON_SIZE_TOOLBAR
ICON_BUTTON_SIZE_COMPACT
ICON_BUTTON_SIZE_DEFAULT
ICON_BUTTON_SIZE_HERO
ICON_BUTTON_SIZE_LARGE
ICON_BUTTON_SIZE_TOOLBAR