diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-25 05:49:06 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-25 05:58:01 -0300 |
| commit | 0659e42ac6f99b31a7994ddb224eb954fdc554b3 (patch) | |
| tree | 51edf052c294849f4c39e725d33fdbd5ac299729 /core/Places.zig | |
| parent | e563ef0d896fc66c3e88c274b25f09bb75f80fea (diff) | |
| download | pardes-0659e42ac6f99b31a7994ddb224eb954fdc554b3.tar.gz pardes-0659e42ac6f99b31a7994ddb224eb954fdc554b3.zip | |
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)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'core/Places.zig')
| -rw-r--r-- | core/Places.zig | 9 |
1 files changed, 5 insertions, 4 deletions
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; |
