From 18f4d9cef39064c7eeaaa8d89f0d2d98310ebb3d Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Tue, 20 Jan 2026 13:46:49 +0100 Subject: [PATCH] refactor: add tab bar theme variables for unfocused tabs --- src/tui/status/tabs.zig | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/tui/status/tabs.zig b/src/tui/status/tabs.zig index 5af41a3..f9194e5 100644 --- a/src/tui/status/tabs.zig +++ b/src/tui/status/tabs.zig @@ -65,6 +65,24 @@ const @"style.config" = struct { selected_right_fg: colors = .active_bg, selected_right_bg: colors = .inactive_bg, + unfocused_active_fg: colors = .unfocused_active_fg, + unfocused_active_bg: colors = .unfocused_active_bg, + unfocused_active_left: []const u8 = "🭅", + unfocused_active_left_fg: colors = .unfocused_active_bg, + unfocused_active_left_bg: colors = .unfocused_inactive_bg, + unfocused_active_right: []const u8 = "🭐", + unfocused_active_right_fg: colors = .unfocused_active_bg, + unfocused_active_right_bg: colors = .unfocused_inactive_bg, + + unfocused_inactive_fg: colors = .unfocused_inactive_fg, + unfocused_inactive_bg: colors = .unfocused_inactive_bg, + unfocused_inactive_left: []const u8 = " ", + unfocused_inactive_left_fg: colors = .unfocused_inactive_fg, + unfocused_inactive_left_bg: colors = .unfocused_inactive_bg, + unfocused_inactive_right: []const u8 = " ", + unfocused_inactive_right_fg: colors = .unfocused_inactive_fg, + unfocused_inactive_right_bg: colors = .unfocused_inactive_bg, + file_type_icon: bool = true, include_files: []const u8 = "", @@ -888,6 +906,10 @@ const colors = enum { inactive_fg, selected_bg, selected_fg, + unfocused_active_bg, + unfocused_active_fg, + unfocused_inactive_bg, + unfocused_inactive_fg, Error, Warning, @@ -904,6 +926,10 @@ const colors = enum { .inactive_fg => theme.tab_inactive.fg, .selected_bg => theme.tab_selected.bg, .selected_fg => theme.tab_selected.fg, + .unfocused_active_bg => theme.tab_unfocused_active.bg, + .unfocused_active_fg => theme.tab_unfocused_active.fg, + .unfocused_inactive_bg => theme.tab_unfocused_inactive.bg, + .unfocused_inactive_fg => theme.tab_unfocused_inactive.fg, .Error => theme.editor_error.fg, .Warning => theme.editor_warning.fg, .Information => theme.editor_information.fg,