From 35ccf7f1df0ded3f05f8b1fb74beb388d4d1eab4 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Thu, 9 Oct 2025 17:11:28 +0200 Subject: [PATCH] feat: optionally customize tab clean indicator --- src/tui/status/tabs.zig | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/tui/status/tabs.zig b/src/tui/status/tabs.zig index 7136064..9427894 100644 --- a/src/tui/status/tabs.zig +++ b/src/tui/status/tabs.zig @@ -21,6 +21,8 @@ const @"style.config" = struct { padding_left: usize = 2, padding_right: usize = 1, + clean_indicator: []const u8 = " ", + clean_indicator_fg: ?colors = null, dirty_indicator: []const u8 = "", dirty_indicator_fg: ?colors = null, close_icon: []const u8 = "󰅖", @@ -495,8 +497,11 @@ const Tab = struct { btn.plane.set_style(.{ .fg = color.from_theme(theme) }); _ = btn.plane.putstr(self.tabbar.tab_style.dirty_indicator) catch {}; } else { - _ = btn.plane.putstr(" ") catch {}; + if (self.tab_style.clean_indicator_fg) |color| + btn.plane.set_style(.{ .fg = color.from_theme(theme) }); + _ = btn.plane.putstr(self.tabbar.tab_style.clean_indicator) catch {}; } + btn.plane.set_style(.{ .fg = fg }); self.render_padding(&btn.plane, .right); }