mirror of
https://github.com/danth/stylix
synced 2024-11-28 15:10:41 +00:00
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.
This commit is contained in:
parent
d56d759fba
commit
eccb9f2d63
1 changed files with 26 additions and 3 deletions
|
@ -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},
|
||||
|
|
Loading…
Reference in a new issue