diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-02 09:15:06 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-02 09:15:06 -0300 |
| commit | 99d0bf3669a939fb09ac4ae5a0b2ddbace3d3f63 (patch) | |
| tree | 7c7b078c60b78af5d4d2384eac7999be62271fbf /src/pardes.zig | |
| parent | 6d3b6cbc1361d174ffabb49b2ee84c5c6039dda5 (diff) | |
| download | pardes-99d0bf3669a939fb09ac4ae5a0b2ddbace3d3f63.tar.gz pardes-99d0bf3669a939fb09ac4ae5a0b2ddbace3d3f63.zip | |
Fix macOS stale tag borders, spacing and drag cursors
Diffstat (limited to 'src/pardes.zig')
| -rw-r--r-- | src/pardes.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pardes.zig b/src/pardes.zig index e14e9273..bd813e0e 100644 --- a/src/pardes.zig +++ b/src/pardes.zig @@ -291,7 +291,9 @@ pub const MAX_JUMPS = 64; pub const TOPBAR_H: u16 = 1; pub const COLBAR_H: u16 = 1; pub const BOX_H: u16 = 1; -pub const TAG_GAP: u16 = 0; +// AppKit's square mode/grip box needs breathing room before the tag text. +// Keep this in the core layout so selection and hit testing share the inset. +pub const TAG_GAP: u16 = if (platform == .macos) 1 else 0; pub const TAG_TEXT_INSET: u16 = config.GUTTER + TAG_GAP; pub fn taglineBandOffset(row: u16, canvas_h: f32, cell_h: u32, tagline_h: u32) u32 { |
