Neo-brutalist chrome in Barbican: title bar, sessions sidebar, pane cards, palette
The window draws its own chrome now, in the Barbican light palette, neo-brutalist: flat colour, 2dp ink borders, and hard offset shadows. - internal/theme: the palette, measurements, and the pieces the UI is built from: cards, boxes with an accent bar, buttons that press into their shadow, a highlighter for display headings, and key caps. Fraunces for display type, Noto Sans for the UI, Iosevka for terminals. Noto Sans is embedded as four static weights, made from nixpkgs' variable font with fontTools (fonts/README.md), because Gio can only use a variable font's default weight; it gets a family name of its own so the system's copy can't shadow it. - Title bar: the wordmark, a tab per window (the active one purple) and a new-tab button, the palette and close buttons, and empty space that drags the window. The window is undecorated. Tabs with the server's default label show their program's title instead. - Sidebar: the server's sessions, kept current from events; clicking one switches to it, and New session makes one. - internal/workspace: the session list and switching. A switch attaches in the background and hands over to the drawing goroutine; the old session is detached, which returns its blocks to their owners. - Panes are cards with a header holding the program's title, purple where typing goes, and badges for zoomed, exited, and sized by another client. Floating layers get a deeper shadow. The terminal's own background fills the card, with padding. - Command palette: every action that needs no arguments, this client's and the server's, with its shortcut. Prefix and substring matches on titles rank first. It also lists sessions for Change Session. - New actions under Rex.app's names: client.palette.toggle, session.switch, session.new, session.next, session.previous, with Ctrl+Shift+P, K, and N. - Terminals are asked to use Barbican with set_theme, which the server applies while this client owns the block.