Skip to main content

Module tabs

Module tabs 

Source
Expand description

Tabs: workbench and panel tabs with a sliding accent underline, and document tabs as pills joined to the content below. Tabs never squash or wrap: the ones that do not fit go into a chevron menu.

Structs§

DocumentTab
One open document.
DocumentTabsOutput
TabBarOutput
What a tab row drew: each visible tab’s rect (for hit keys), the overflow chevron’s rect when there is one, and whether the selection changed.

Functions§

document_tabs
Document tabs: pills on bg.app; the active one on bg.panel, joined to the content below. The close × shows on hover and always on the active tab.
tab_bar
Workbench and panel tabs: text on a transparent row; the active tab in text.primary over a 2 px accent underline that slides to the new tab.
tab_bar_shown
tab_bar with one tab drawn in a fixed state (the gallery).