Skip to main content

Module recipe_scroll_bar_style

Module recipe_scroll_bar_style 

Source
Expand description

Default ScrollBarStyle impl driven by paint-recipe data.

RecipeScrollBarStyle ships three visual variants (parallel to the widget’s historical ScrollBarVisual):

  • Permanent — full track + thumb, always visible. Single FullBarPainter child sized to the parent’s slot.
  • Overlay — thin idle indicator that cross-fades to the full bar on hover/drag. Two Fade-wrapped painters share the slot; the active signal flips when either is_hovered or is_dragging goes true.
  • Thin — thin idle indicator only. One ThinIndicatorPainter child.

The parent ScrollBar widget owns input handling (drag, track click, keyboard, hover) and bounds caching; this style only paints.

Structs§

RecipeScrollBarStyle
Default ScrollBarStyle shipped with Teksilo. Colors come from theme.colors.scrollbar_*.
ScrollBarRecipe
Configurable dimensions for RecipeScrollBarStyle.

Constants§

SCROLLBAR_CORNER_RADIUS
SCROLLBAR_MIN_THUMB_LENGTH
SCROLLBAR_THICKNESS_HOVER
SCROLLBAR_THICKNESS_IDLE