summaryrefslogtreecommitdiff
path: root/src/file_pane.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-08-03 01:34:50 -0300
committerGabriel Schneider <[email protected]>2026-08-10 09:17:07 -0300
commita774cad033fdc371af9f89b9a787a30ea017481c (patch)
tree321190fb8e3c7708822be9a168c7026d0e4cd819 /src/file_pane.zig
parentb50005359c9fa33beef9a2ea7496268a246b296e (diff)
downloadpardes-a774cad033fdc371af9f89b9a787a30ea017481c.tar.gz
pardes-a774cad033fdc371af9f89b9a787a30ea017481c.zip
animate anchored theme colors on native and tty backends
Diffstat (limited to 'src/file_pane.zig')
-rw-r--r--src/file_pane.zig8
1 files changed, 4 insertions, 4 deletions
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 };
}
}
}