Expand description
Default ComboBoxStyle impl driven by paint-recipe data.
RecipeComboBoxStyle ships the IntUI trigger look: a panel-bg
rectangle with theme-driven border, a label / Spacer / vertical
divider / chevron row, and the standard “border thickens on focus”
convention. The actual dropdown popup is owned by the widget — the
style only paints the trigger.
The trigger composes:
ZStack {
RectWidget(bg_role, border_role, border_width, corner_radius)
Padding(horizontal/2, horizontal) {
HStack(spacing=8) {
<selected_label> ← from cfg
Spacer
Divider ← FixedSize(border_width × 0.6h, fill)
Chevron (icon, 12 px)
}
}
}All four interaction signals (is_open, is_hovered, is_focused,
is_disabled) feed into derived role signals that drive the bg /
border / text recolouring. Apps that want a different look write
their own impl ComboBoxStyle block — the trait surface is a single
WidgetId return so they can compose anything.
Structs§
- Combo
BoxRecipe - Configurable dimensions for
RecipeComboBoxStyle. - Recipe
Combo BoxStyle - Default
ComboBoxStyleshipped with Teksilo.