From a774cad033fdc371af9f89b9a787a30ea017481c Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 3 Aug 2026 01:34:50 -0300 Subject: animate anchored theme colors on native and tty backends --- src/file_pane.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/file_pane.zig') diff --git a/src/file_pane.zig b/src/file_pane.zig index 2f2a0acb..36818d8d 100644 --- a/src/file_pane.zig +++ b/src/file_pane.zig @@ -223,7 +223,7 @@ pub fn bodyText(arena: std.mem.Allocator, pane: *Pane, f: *File) ![]const u8 { /// the eye finds the current line. pub fn drawGutter(p: *Pardes, pane: *Pane, r: pardes.Rect, tx: u16, tw: u16, body_h: u16, active: bool) void { const s = &p.surface; - const th = p.theme(); + const ch = p.chromeTheme(); const goff = pane.scroll(); const gcur = pane.vt.screens.active.cursor; const gcrow = if (pane.cur_pinned) pane.cur_row else @as(i32, @intCast(gcur.y)) + goff; @@ -236,9 +236,9 @@ pub fn drawGutter(p: *Pardes, pane: *Pane, r: pardes.Rect, tx: u16, tw: u16, bod const cell = s.at(tx + c, r.y + pardes.BOX_H + vr); cell.default = false; // paints blank gutter rows too if (on_cursor) { - cell.style.fg = .{ .rgb = th.tag_fg }; - cell.style.bg = .{ .rgb = th.tag_bg }; - } else cell.style.fg = .{ .rgb = th.lineno }; + cell.style.fg = .{ .rgb = ch.tag_fg }; + cell.style.bg = .{ .rgb = ch.tag_bg }; + } else cell.style.fg = .{ .rgb = ch.lineno }; } } } -- cgit v1.3