Skip to main content

Module chrome

Module chrome 

Source
Expand description

Chrome widgets — pieces shared between title bar, status bar and panel headers. Everything below paints to absolute screen-space coordinates and tracks its own click hit-test via [UiBuilder::interact_rect].

Functions§

paint_kbd_chip
A keyboard-shortcut chip (“⌘”, “K”, “Esc”). Returns the right edge in screen-space.
paint_panel_header
Paints a panel-header strip: subtle gradient bg, hairline at bottom, then a row of tabs returned through tabs_clicked and a row of action icons on the right. Returns the y-coordinate where panel content can begin.
paint_search_pill
The wide “search commands” pill in the title bar. Returns the click interaction (whether the user wants to open the command palette) plus the right edge in screen-space.
paint_status_dot
A circular dot indicator (used in status bars and pill chips).
panel_tab
A panel header tab. Returns whether it was clicked plus its width.