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§
- Badge
Recipe - Dimension bundle for
RecipeBadgeStyle. All fields aref32and the struct isCopy, so it can be passed freely. - Recipe
Badge Style - Default
BadgeStyleshipped with Teksilo. Background defaults toSurfaceRole::AccentSubtlewhen 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