Skip to main content

Module recipe_slider_style

Module recipe_slider_style 

Source
Expand description

Default SliderStyle impl driven by paint-recipe data.

RecipeSliderStyle ships the IntUI look out of the box. The visual body is a tiny private leaf widget (SliderBody) that paints track + fill + thumb + focus ring directly on the canvas. Same “leaf body” choice as RecipeToggleStyle and for the same reason — there’s no general-purpose absolute-positioning primitive for the thumb on the track, and the compositional version would add several arena nodes per slider for no visual win.

Custom SliderStyle impls are free to compose RectWidget layers and a positioned thumb if they prefer.

Structs§

RecipeSliderStyle
Default SliderStyle shipped with Teksilo. Colors come from theme.colors.{accent, surface_sunken, ...}.
SliderRecipe
Dimension data for RecipeSliderStyle. All fields are in dp.

Constants§

SLIDER_THUMB_DIAMETER
SLIDER_TICK_SIZE
SLIDER_TRACK_HEIGHT