Skip to main content

Module recipe_badge_style

Module recipe_badge_style 

Source
Expand description

Default BadgeStyle impl driven by paint-recipe data.

RecipeBadgeStyle ships the IntUI badge chrome: a fully-rounded (9999 radius) pill with a soft AccentSubtle background by default, content inset by the badge padding. Pure composition — no custom paint.

Apps that want a different badge look (square tag, status-tinted pill, bordered chip) write their own impl BadgeStyle block and install it per-call (Badge::style(...)) or theme-wide (theme.style_slots.badge).

Structs§

BadgeRecipe
Dimension bundle for RecipeBadgeStyle. All fields are f32 and the struct is Copy, so it can be passed freely.
RecipeBadgeStyle
Default BadgeStyle shipped with Teksilo. Background defaults to SurfaceRole::AccentSubtle when the caller sets no override.

Constants§

BADGE_CORNER_RADIUS
Fully-rounded pill — a large radius the renderer clamps to half the shorter side.
BADGE_PADDING_HORIZONTAL
BADGE_PADDING_VERTICAL