Skip to main content

Module tabs

Module tabs 

Structs§

TabBar
TabDescriptor

Enums§

TabMark
What a tab’s content is doing, marked in the tab’s leading slot in place of its icon: loading, or making sound. A sound mark is a control: a click on it is reported by TabBar::take_mark_click (the host mutes or unmutes).

Constants§

CLOSE_FADE_MS
Per-pill close fade-out; pairs with SPAWN_FADE_MS in tile_host.rs.
NEW_TAB_CHIP_PX
Square at pill height so the “+” chip reads as part of the pill row.
TAB_BAR_HEIGHT
TAB_PILL_INSET_Y
44 – 2×6 = 32 px pill height and pointer-sized + affordance.

Functions§

draw_app_mark
A window’s application mark at any size: the app’s own artwork when it has some, else the app-kind glyph its tab pill wears, scaled up from the pill’s 14 px design size. Every surface that names a window by its app (the tab pill, the window switcher, the overview) paints this one mark.