From 0659e42ac6f99b31a7994ddb224eb954fdc554b3 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 25 Nov 2026 05:49:06 -0300 Subject: Prompt, Places: prompts in the tag as UX DESIGN.md D14 rules them: the body's places on the hit ground and the current one on the current hit's (colors.Roles: Places.paint, every search's places; they were the search ground for the current one and half of it to the page for the rest, the selection's colour on neonotte84), a pattern that is no regex dimming them as before from those grounds; `▸` in the key ink in the gutter on the current place's line alone, the other lines with places shown by the rail's ticks (Places.addTicks) where a `▪` marked each (new gutter glyphs, which D14 rules out); an invalid regex's reason in the err ink in place of the hints, `the N from before shown, dimmed` after it in the dim ink (the hints are gone while it is invalid); the plain word as before (`= Look` dim, the word in the text's ink); TEST FIRST: Prompt.zig's `/` test holds `▸` alone on the current place's line in the key ink and line 1's place on the hit ground (fails on the parent at line 1's `▪`), its `s` test the reason ending the head; core-test 1069/1239 (170 skipped) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE --- core/Places.zig | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'core/Places.zig') diff --git a/core/Places.zig b/core/Places.zig index 7f847f6a..8563d7c8 100644 --- a/core/Places.zig +++ b/core/Places.zig @@ -658,14 +658,15 @@ pub fn origin(set: *const Places, pane: *Pane) usize { return @min(r.anchor, r.head); } -/// Every place on the rows shown, tinted over the text; the current one in -/// the search colour itself, the rest halfway to the page. +/// Every place on the rows shown, tinted over the text: the hit ground, +/// the current one the current hit's (colors.Roles, UX D4, D14). pub fn paint(set: *Places, p: *Pardes, s: *Surface, pane: *Pane, r: pardes.Rect, body_h: u16) void { if (!set.shows(pane)) return; const f = &pane.file.?; const th = p.theme(); - var strong = p.chromeTheme().search_bg; - var quiet = colors.mix(th.bg orelse th.tag_bg, strong); + const roles = &p.chromeTheme().roles; + var strong = roles.hit_current; + var quiet = roles.hit; // A search prompt's pattern that is no regex: its last places, dimmed. if (pardes.Prompt.dims(p, pane)) { strong = quiet; -- cgit v1.3