mirror of
https://github.com/storytold/craft-libs.git
synced 2026-10-31 07:39:23 +00:00
The ×'s glyph inset, size and hit area are set in one place (MACOS_CLOSE, OTHER_CLOSE in render/native.rs). On macOS the glyph sits where macOS puts its close button, and the hit area reaches 10 pt toward the leading edge and down to the bar's bottom, past AppKit's corner resize area. Elsewhere the layout is the same as before. CRAFT_DOCK_DEBUG_CLOSE=1 outlines the hit area and AppKit's resize areas.