diff options
Diffstat (limited to 'core/Pick.zig')
| -rw-r--r-- | core/Pick.zig | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/core/Pick.zig b/core/Pick.zig index c05ed084..c39e8ec9 100644 --- a/core/Pick.zig +++ b/core/Pick.zig @@ -2812,8 +2812,7 @@ test "the themes picker marks the theme in use: `in use` at its row's right end // Drawn at the row's right end, in the dim ink of the selection it is on. _ = try p.render(a); const layer = &p.surface.tag_layers[pardes.BAND_LAYER]; - const roles = &p.chromeTheme().roles; - const on = roles.selectedOn(if (pardes.Trail.reading(p, pane)) .reading_focused else .focused); + const on = &p.chrome().on(.focus).selection; var found = false; for (0..layer.rows) |row| { const cells = layer.cells[row * layer.cols ..][0..layer.cols]; @@ -3499,11 +3498,9 @@ test "Symbols (UX DESIGN N): a Zig file's rows types, functions, fields, then th try std.testing.expectEqual(@as(u16, "Counts.".len), (try rowAt(p, live(p).?, a, 4)).faint); try std.testing.expectEqual(@as(u16, 0), (try rowAt(p, live(p).?, a, 11)).faint); // Drawn: `m Counts.lines : usize = 0` (not the cursor's row). - const pane = p.panes[p.paneBySerial(live(p).?.landing).?].?; _ = try p.render(a); const layer = &p.surface.tag_layers[pardes.BAND_LAYER]; - const roles = &p.chromeTheme().roles; - const inks = roles.on(if (Trail.reading(p, pane)) .reading_focused else .focused); + const inks = p.chrome().on(.focus); var found = false; for (0..layer.rows) |y| { const cells = layer.cells[y * layer.cols ..][0..layer.cols]; |
