From bbc9355fabb398fa30fdcda5949498857dcd58a2 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Mon, 11 Mar 2024 17:47:43 +0100 Subject: [PATCH] fix: ignore pure black or white file icon colors --- src/tui/status/filestate.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tui/status/filestate.zig b/src/tui/status/filestate.zig index 56f59ca..fbd6967 100644 --- a/src/tui/status/filestate.zig +++ b/src/tui/status/filestate.zig @@ -183,7 +183,7 @@ pub fn receive(self: *Self, _: tp.pid_ref, m: tp.message) error{Exit}!bool { fn render_file_icon(self: *Self, _: *const Widget.Theme) void { var cell = self.plane.cell_init(); _ = self.plane.at_cursor_cell(&cell) catch return; - if (self.file_color != 0x000001) { + if (!(self.file_color == 0xFFFFFF or self.file_color == 0x000000 or self.file_color == 0x000001)) { nc.channels_set_fg_rgb(&cell.channels, self.file_color) catch {}; nc.channels_set_fg_alpha(&cell.channels, nc.ALPHA_OPAQUE) catch {}; }