diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-25 05:27:43 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-25 05:27:43 -0300 |
| commit | 0e6c60d17dd5f0e48232a46096e3a7a92f8841cf (patch) | |
| tree | 3e1f941f076da82edb957739b1919af4480748c7 /core/draw.zig | |
| parent | 6c842c2ab84dba9e3052d886ce65c2a7e08ca260 (diff) | |
| download | pardes-0e6c60d17dd5f0e48232a46096e3a7a92f8841cf.tar.gz pardes-0e6c60d17dd5f0e48232a46096e3a7a92f8841cf.zip | |
Pick, Band, draw: the themes picker marks the theme in use (POLISH 12, UX DESIGN.md A15): its row says `in use` at its right end in the dim ink, whichever theme the window wears under the cursor, and the cursor opens on it as before; a band row's meta (Band.Row.meta: said right-aligned in its part, two cells off its text at least, the first to give way, as D5 asks; the step as wide as text and meta; Band.metaShown says whether it fits, so Band.line and draw.zig joinBand agree), placed from the part's own column (a step's rows start where the spines leave off, not always at its x); TEST FIRST: Pick.zig "the themes picker marks the theme in use" (fails without the mark at its `in use`; it holds the row's meta, one row only, the cells' dim ink on the cursor row's selection, and the mark staying on the theme in use while the window wears the next); core-test 1068/1238 (170 skipped)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'core/draw.zig')
| -rw-r--r-- | core/draw.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/draw.zig b/core/draw.zig index 673d3386..9f9abb58 100644 --- a/core/draw.zig +++ b/core/draw.zig @@ -945,6 +945,11 @@ fn joinBand(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane, r: R }; b = next; } + // Its meta, right-aligned in the part (Band.line), dim. + if (pardes.Band.metaShown(tab, part.row, part.width) and part.col + part.width <= columns) { + const meta: u16 = @intCast(panes.File.displayWidth(tab, part.row.meta)); + for (part.col + part.width - meta..part.col + part.width) |x| t.at(@intCast(x), row).style.fg = .{ .rgb = on.dim }; + } } } const count = @as(usize, columns) * rows; |
