Expand description
Default ToastStyle impl driven by paint-recipe data.
RecipeToastStyle ships the IntUI toast chrome: a per-severity
status-tinted surface (StatusInfo / StatusSuccess /
StatusWarning / StatusError) with rounded corners, padding,
a leading severity glyph, and an optional trailing close IconButton.
Tokens are co-located here.
Apps that want a different look (full-bleed strip, frosted glass,
icon-free) write their own impl ToastStyle block. The widget
always builds the functional pieces (severity glyph, close button,
body content) — the recipe is pure chrome.
Structs§
- Recipe
Toast Style - Default
ToastStyleshipped with Teksilo. Surface tint comes from the per-severitySurfaceRole. The recipe ignorescfg.priority— High/Urgent toasts look identical to Normal at this default styling tier (apps that want a heavier shadow on Urgent provide their ownimpl ToastStyle). - Toast
Recipe - Dimension recipe for
RecipeToastStyle.
Constants§
- TOAST_
BODY_ ACTIONS_ GAP - Vertical gap between body and action row (when actions are present).
- TOAST_
CONTENT_ GAP - Horizontal gap between leading glyph, body column, and trailing close button.
- TOAST_
CORNER_ RADIUS - Rounded corner radius of the toast surface (matches IntUI
radius_popup). - TOAST_
GLYPH_ SIZE - Diameter of the leading severity glyph (consumed by the widget, not the recipe — exposed here so the widget pulls one constant).
- TOAST_
PADDING_ HORIZONTAL - Outer horizontal padding inside the toast surface.
- TOAST_
PADDING_ VERTICAL - Outer vertical padding inside the toast surface.
- TOAST_
TITLE_ BODY_ GAP - Vertical gap between title and body lines inside the body column.