Skip to main content

Module recipe_search_field_style

Module recipe_search_field_style 

Source
Expand description

Default SearchFieldStyle impl + design tokens.

Design tokens for SearchField live as pub consts on this module. SearchField and SuggestionPanel read them directly when building the magnifier glyph, the suggestion-list row chrome, and the popup padding. The suggestion popup surface is routed through PopoverStyle::Menu; only the row chrome + panel padding remain SearchField-specific.

Structs§

RecipeSearchFieldStyle
Default SearchFieldStyle shipped with Teksilo. Passthrough — IntUI’s search-field chrome lives inside TextInput’s leading slot + clear button, which are already themed.
SearchFieldRecipe
Dimension tokens for SearchField bundled into a copyable struct.

Constants§

GLYPH_SIZE
Visual size of the magnifier glyph drawn inside the leading slot.
GLYPH_SLOT_WIDTH
Reserved width of the leading slot — wider than the glyph so it doesn’t sit flush against the field’s leading edge.
INPUT_PANEL_GAP
Vertical gap between the input field and the suggestions popup rendered below it.
PANEL_CORNER_RADIUS
Suggestion popup outer corner radius.
PANEL_PADDING
Padding between the popup surface border and the row column.
ROW_CORNER_RADIUS
Per-row hover-highlight corner radius.
ROW_HEIGHT
ROW_PADDING_HORIZONTAL
ROW_PADDING_VERTICAL

Functions§

resolve_search_field_style