diff options
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; |
