Skip to main content

Module recipe_combo_box_style

Module recipe_combo_box_style 

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

ComboBoxRecipe
Configurable dimensions for RecipeComboBoxStyle.
RecipeComboBoxStyle
Default ComboBoxStyle shipped with Teksilo.

Constants§

COMBO_BOX_ARROW_COLUMN_WIDTH
COMBO_BOX_CORNER_RADIUS
COMBO_BOX_HEIGHT
COMBO_BOX_PADDING_HORIZONTAL