mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-28 20:18:06 -06:00
AppKit centres the window buttons in its standard 28 pt title-bar band and nothing in winit/eframe moves them (AppKit calls would need unsafe, which the workspace forbids). The integrated title bar was 38 pt with 30 pt tabs, so the lights sat 5 pt above its centre. On macOS the strip is now 28 pt, tabs 26 pt, icon buttons 24 pt, and content starts after the lights plus the gap they keep from the top (MAC_CONTENT_LEFT), as storytold/wordcraft#255 did for WordCraft. Other platforms are unchanged. Unit test for the constants, macOS kittest for the strip's contents staying inside the band. Co-authored-by: Tristan von Kries <tristan@MacBook-Pro-von-Tristan.local> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>