pub fn titlebar(
id: impl Into<ElementId>,
drag: &DragState,
traffic_lights: bool,
window: &Window,
) -> Stateful<Div>Expand description
The strip: full width, Theme::TITLEBAR_HEIGHT tall, dragging its window
and zooming it on a double click.
traffic_lights reserves the leading inset for the macOS buttons — pass it
on the one strip they sit over, and it stands down in full screen, where
they are gone and the gap would be a hole.