summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-17 02:31:20 -0300
committerGabriel Schneider <[email protected]>2026-11-17 12:15:01 -0300
commitf749eb712d990a9b03f1db372d5311e77bd32edd (patch)
treeee4d9966f1eb293054b7ed865c9d4d6eb49e432b /src/gui
parent8f6621f9f70db86d56266a59b56dfb92b324b0d9 (diff)
parentb3d32656413734952bc918c2d4cfd12fede6c214 (diff)
downloadpardes-f749eb712d990a9b03f1db372d5311e77bd32edd.tar.gz
pardes-f749eb712d990a9b03f1db372d5311e77bd32edd.zip
integration: the terminal behind src/Term.zig, with the diff viewer and the plumber's first phase
A merge of term-phase0 and pardes-next. File.zig's recolorSyntax keeps the theme's grounds and names Term.Filter and Term.Span; the changelog keeps both sides' entries, the palette sentence in the place of the entry the terminal work cut down. core-test 985/985 on tui; the diff, pager and tree process cases pass, goldens unchanged. Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui.zig14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/gui.zig b/src/gui/gui.zig
index c2a4ad15..1ec3bca3 100644
--- a/src/gui/gui.zig
+++ b/src/gui/gui.zig
@@ -868,12 +868,12 @@ const Group = struct {
};
/// The frame's draw groups, bottom to top: the page and the panes, the
-/// notices floating over them, the guides and the debug box the core paints
-/// over those, and ink (the bar cursors; the cursor's glide draws after it).
+/// notices floating over them, the debug box the core paints over those,
+/// and ink (the bar cursors; the cursor's glide draws after it).
const Groups = struct {
items: [4]Group = @splat(.{}),
notices: usize = 1,
- guides: usize = 2,
+ debug: usize = 2,
ink: usize = 3,
len: usize = 4,
};
@@ -883,7 +883,7 @@ const Groups = struct {
const Cover = packed struct(u16) {
/// A layer draws it; the grid's copy is not drawn.
layer: bool = false,
- /// Under a guide or the debug box: drawn from the grid over the panes.
+ /// Under the debug box: drawn from the grid over the panes.
floating: bool = false,
/// In a pane's grip, `grip_offset` cells from its left: the grip's
/// glyph is the cell that far to the left.
@@ -950,7 +950,7 @@ fn coverFrame(cover: []Cover, cols: u16, rows: u16, body_layers: []const pardes.
mark.rect(cover, cols, rows, .{ .x = region.rect.x, .y = 0, .w = 1, .h = rows }, "anchor", true);
if (region.active) if (bar) |b| mark.rect(cover, cols, rows, .{ .x = region.rect.x, .y = b.y, .w = region.rect.w, .h = b.h }, "focus", true);
},
- .guide, .debug => mark.rect(cover, cols, rows, region.rect, "floating", true),
+ .debug => mark.rect(cover, cols, rows, region.rect, "floating", true),
else => {},
};
}
@@ -4559,7 +4559,7 @@ fn renderFrame(
while (col < surface.cols) : (col += 1) {
const at = @as(usize, row) * surface.cols + col;
if (covered[at].layer and !covered[at].floating) continue;
- const group_index = if (covered[at].floating) groups.guides else 0;
+ const group_index = if (covered[at].floating) groups.debug else 0;
groups.items[group_index].cell_count = std.math.add(u32, groups.items[group_index].cell_count, cellInstanceCount(&surface.cells[at])) catch return error.GpuCapacity;
}
}
@@ -4608,7 +4608,7 @@ fn renderFrame(
while (col < surface.cols) : (col += 1) {
const at = @as(usize, row) * surface.cols + col;
if (covered[at].layer and !covered[at].floating) continue;
- const group_index = if (covered[at].floating) groups.guides else 0;
+ const group_index = if (covered[at].floating) groups.debug else 0;
emitSurfaceCell(
g,
chrome,