diff options
Diffstat (limited to 'src/Tables.zig')
| -rw-r--r-- | src/Tables.zig | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/Tables.zig b/src/Tables.zig index 7baffdf9..b0b1930e 100644 --- a/src/Tables.zig +++ b/src/Tables.zig @@ -721,7 +721,6 @@ pub fn paint(p: *Pardes, s: *Surface, pane: *Pane, r: pardes.Rect, tx: u16, tw: const f = if (pane.file) |*file| file else return; if (f.tables.list.items.len == 0) return; const th = p.theme(); - const tint = p.settings.colors; const rule_fg: Color = .{ .rgb = th.border orelse th.lineno }; const head_bg: Color = .{ .rgb = th.tag_bg }; const prefix: usize = File.gutterWidth(pane); @@ -751,9 +750,9 @@ pub fn paint(p: *Pardes, s: *Surface, pane: *Pane, r: pardes.Rect, tx: u16, tw: const cell = s.at(tx + @as(u16, @intCast(col + i)), y); if (delimiter) { glyph(cell, rule_h); - if (tint) cell.style.fg = rule_fg; + cell.style.fg = rule_fg; } - if (header and tint) cell.style.bg = head_bg; + if (header) cell.style.bg = head_bg; } col += pads[k].cells; k += 1; @@ -773,16 +772,16 @@ pub fn paint(p: *Pardes, s: *Surface, pane: *Pane, r: pardes.Rect, tx: u16, tw: rule_right else rule_cross); - if (tint) cell.style.fg = rule_fg; + cell.style.fg = rule_fg; cell.style.bold = false; } else if (delimiter) { if (text[at] == '-' or text[at] == ' ') glyph(cell, rule_h); - if (tint) cell.style.fg = rule_fg; + cell.style.fg = rule_fg; } else if (header) { cell.default = false; cell.style.bold = true; } - if (header and tint) for (0..cells) |i| { + if (header) for (0..cells) |i| { if (col + i < tw) s.at(tx + @as(u16, @intCast(col + i)), y).style.bg = head_bg; }; col += cells; |
