Skip to main content

Module recipe_spin_box_style

Module recipe_spin_box_style 

Source
Expand description

Default SpinBoxStyle impl driven by paint-recipe data.

RecipeSpinBoxStyle::make_body ports the IntUI spin-box chrome: a focus-aware bordered rounded rect that wraps field | divider | [up / down]. The field, up button, and down button arrive pre-built from the widget — the recipe owns the row layout, the divider between the field and the buttons, the column arrangement of the two step buttons, and the bordered surface that frames the whole control as one input.

Reads the shared text-field dimensions (height, corner radius, padding, border width) from recipe_text_input_style so SpinBox and TextInput sit on the same baseline.

Structs§

RecipeSpinBoxStyle
Default SpinBoxStyle shipped with Teksilo.

Functions§

resolve_spin_box_style
Convenience for callers that need to resolve the active style (per-call override → theme slot → default RecipeSpinBoxStyle).