Expand description
Default TabStyle impl driven by paint-recipe data.
RecipeTabStyle ships the IntUI editor-tab look: an accent
indicator on the active tab’s outside edge (top for horizontal
bars, leading for vertical bars), plus a keyboard focus ring
inset from the tab’s bounds.
The tab’s own per-state background (selected / hover / idle,
controlled by TabBar::tab_background and the per-state overrides)
is painted by the surrounding TabHeader as separate RectWidget
siblings — the trait config doesn’t carry the tab-surface roles
through the cfg, and pulling them through every consumer would be
more disruptive than letting the widget keep those rects.
TabStyle carries two methods. make_body wraps a single tab
header: a leaf TabBodyPainter (accent indicator + focus ring)
sits behind the label / leading / trailing slot composition in a
ZStack. make_bar wraps the whole strip: a TabBarChrome
container stacks an optional backdrop RectWidget, a
TabBarChromePainter leaf (content-pane separator +
drag-reorder drop indicator), and the bar content — sizing to the
content under the real proposal so its inner Expand fills the
bar. Neither painter has an intrinsic size; each fills the bounds
its parent hands it.
Structs§
- Recipe
TabStyle - Default
TabStyleshipped with Teksilo. - TabRecipe
- Dimension recipe for
RecipeTabStyle.