From d2b04b2a24a04b5de1416b33f37637f59dda71ee Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 5 Nov 2026 20:05:20 -0300 Subject: split pardes.zig by noun, the small moves: a header's word under a column (WordBounds, wordBoundsAtCol) goes to tagline.zig, the two frontend pixel helpers for tag bands (taglineBandOffset, topbarPaneBorderPixels) to Layer.zig with their test, the look walk's row budget (max_look_rows) to look.zig, its only reader; their callers name them there (draw.zig, mouse.zig, gui.zig, and macos.zig's two by text, built nowhere here); pathUnder goes, called from nowhere; the help index stays in the root, as builtins.zig's registry walks that file's own declarations and the index's rows depend on the registry (a dependency loop), and the theme's three accessors stay with the session, as colors.zig's locals are named theme; test moved, by name: tagline bands center in their cells and Tagbottom faces the window edge (to Layer.zig); a pure move, no field touched, a dump and the wire as they were; gates: tui core-test 960/960, behaviour-test 238/238, snap all 108 scripts ok, gui unit-test 1518/1519 (1 skipped) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/gui/gui.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/gui.zig') diff --git a/src/gui/gui.zig b/src/gui/gui.zig index 7e60f0dc..c148c3fc 100644 --- a/src/gui/gui.zig +++ b/src/gui/gui.zig @@ -5726,7 +5726,7 @@ const ResolvedCell = struct { role: pardes.FontRole, }; -const taglineBandOffset = pardes.taglineBandOffset; +const taglineBandOffset = pardes.Layer.taglineBandOffset; /// The colours and atlas slot of `line[at]`. `cursor` is where the cursor sits /// in `line`, block or bar: shaping breaks around it. @@ -7996,7 +7996,7 @@ test "the rule between stacked panes stays in the tag band's slack, at any tagli var groups: Groups = .{}; try buildDecor(&g, gpa, s, &groups, fixedCellLayout(&g), 800, 480, true); const top = @as(f32, @floatFromInt(lower.rect.y)) * 20; - const slack: f32 = @floatFromInt(@max(1, pardes.taglineBandOffset(lower.rect.y, 480, 20, tagline_h))); + const slack: f32 = @floatFromInt(@max(1, pardes.Layer.taglineBandOffset(lower.rect.y, 480, 20, tagline_h))); var found = false; for (g.decor.items) |item| { const y0 = (1 - item.y0) / 2 * 480; -- cgit v1.3