refactor: add tab bar theme variables for unfocused tabs

This commit is contained in:
CJ van den Berg 2026-01-20 13:46:49 +01:00
parent abe15a973d
commit 18f4d9cef3
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -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,