Skip to content

Commit

Permalink
wezterm: support fancy_tab_bar (#564)
Browse files Browse the repository at this point in the history
By default, the fancy tabbar doesn't respect colorschemes, see
wez/wezterm#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.
  • Loading branch information
baduhai authored Sep 23, 2024
1 parent d56d759 commit eccb9f2
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions modules/wezterm/hm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand All @@ -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},
Expand Down

0 comments on commit eccb9f2

Please sign in to comment.