The Window Is Part of the App
A local-first app still lives in a window. For a long time Roughcast looked like a website that happened to record the screen: a browser tab chrome above the header, a page scrollbar under the window buttons, and thumbnails that cropped whatever did not fit 16:9. The last pass was about making the frame agree with the thing it frames.
The Header Is the Title Bar
The PWA manifest opts into window-controls-overlay. When Chrome or Edge installs Roughcast, the platform draws
minimise, maximise and close inside the window and publishes the usable strip as env(titlebar-area-*). The app header
becomes the title bar.
That is a layout contract, not a theme. The header reserves the reported titlebar height, keeps the window buttons clear on the right, and accounts for the traffic lights on macOS. The empty parts of the bar drag the window; links and buttons remain clickable. The editor does the same with its own head, so the first row of the editor is the title bar and the rows below keep the full width.
A browser tab is untouched. The data attribute only appears when windowControlsOverlay.visible is true, which means an
installed window with the overlay actually drawn. A page that reserves a titlebar it does not have is worse than one
that ignores the niche.
A Scrollbar With a Boundary
The default page scrollbar ran down the right edge, directly under the window controls. Even a custom thumb would have
started beneath the close button. The fix is structural: the document no longer scrolls. .app-shell is one viewport
high, the header stays above, and .app-scroll owns the overflow below it.
The scrollbar therefore begins under the titlebar, not under the controls. It has its own thin, rounded thumb, a
transparent track and an accent hover state. scrollbar-gutter: stable keeps the content from jumping when the bar
appears. The editor and composition pages are fixed shells with their own panel scrollbars, so the same styling reaches
the element lists and inspectors without a second implementation.
Show the Whole Frame
The recorder preview used to sit in a 16:9 box. A square window was letterboxed at best and distorted at worst,
depending on what the capture stack reported. The preview now follows the actual video dimensions, keeps its aspect, and
fits the available height. The cover images in the library use object-fit: contain: a portrait or square recording is
shown in full on the dark poster area instead of being cropped to a landscape card.
This is also where the encoded frame replaced the capture settings as the authority. A window can be 1000×1000 and still produce a track that reports 1920×1080. Trusting the report stretched the video in the editor and the composition. The frame that actually arrived is the one that matters. The recorder stores its dimensions, and the editor falls back to the metadata only when the video element cannot answer.
Five Pixels
The window corner radius now defaults to five pixels at 1080p. It is a small number, and that is the point. The old fractional default produced a different radius at every output size and turned a window into a pill on a small canvas. The setting is still stored relative to the frame so it scales with an export, but the default expresses the intended look: a window with a slightly softened corner, not a design statement.
What the Chrome Does Not Do
The titlebar only exists in an installed PWA. The scrollbar is not an overlay that floats over content; it is a real gutter below the header. The poster is still the first frame of the recording, not a rendered composition still. These are boundaries, not missing polish.
The app remains loopback-only, video-only and local. A window that looks native does not make it a native app, and that is fine. The point of the chrome is to stop the browser from getting in the way of the recording underneath it.
The interface is trustworthy when its chrome agrees with the thing it frames. A titlebar that is really the header, a scrollbar that starts below the controls, and a preview that keeps the recording’s aspect are not decoration. They are the difference between a page that contains a tool and a tool that happens to be served by a page.
