Skip to main content

Module recipe_toast_style

Module recipe_toast_style 

Source
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§

RecipeToastStyle
Default ToastStyle shipped with Teksilo. Surface tint comes from the per-severity SurfaceRole. The recipe ignores cfg.priority — High/Urgent toasts look identical to Normal at this default styling tier (apps that want a heavier shadow on Urgent provide their own impl ToastStyle).
ToastRecipe
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.