From eccb9f2d63f4582b1c1ffe97d806156147aeee5f Mon Sep 17 00:00:00 2001 From: William <31864305+baduhai@users.noreply.github.com> Date: Mon, 23 Sep 2024 09:12:11 -0300 Subject: [PATCH] wezterm: support fancy_tab_bar (#564) By default, the fancy tabbar doesn't respect colorschemes, see https://github.com/wez/wezterm/issues/2615. But I've found that if you set the tabbar colors in the config.lua in addition to the colors/stylix.toml file, the fancy tabbar does respect the colors set. This change doesn't affect the retro tab theming, which I made sure to test. --- modules/wezterm/hm.nix | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/modules/wezterm/hm.nix b/modules/wezterm/hm.nix index 230613e8..ab0deea5 100644 --- a/modules/wezterm/hm.nix +++ b/modules/wezterm/hm.nix @@ -58,9 +58,6 @@ in { local stylix_base_config = wezterm.config_builder() local stylix_user_config = stylix_wrapped_config() stylix_base_config = { - -- Set due to the default fancy tabs not respecting colorschemes - -- See https://github.com/wez/wezterm/issues/2615 - use_fancy_tab_bar = false, color_scheme = "stylix", font = wezterm.font_with_fallback { "${monospace.name}", @@ -86,6 +83,32 @@ in { inactive_titlebar_fg = "${base05}", inactive_titlebar_border_bottom = "${base03}", }, + colors = { + tab_bar = { + background = "${base01}", + inactive_tab_edge = "${base01}", + active_tab = { + bg_color = "${base00}", + fg_color = "${base05}", + }, + inactive_tab = { + bg_color = "${base03}", + fg_color = "${base05}", + }, + inactive_tab_hover = { + bg_color = "${base05}", + fg_color = "${base00}", + }, + new_tab = { + bg_color = "${base03}", + fg_color = "${base05}", + }, + new_tab_hover = { + bg_color = "${base05}", + fg_color = "${base00}", + }, + }, + }, command_palette_bg_color = "${base01}", command_palette_fg_color = "${base05}", command_palette_font_size = ${builtins.toString sizes.popups},