Added heirline setup_colors support

Match active tab with winbar background
This commit is contained in:
2024-02-21 14:22:01 +01:00
parent 76feae8704
commit 0c657b5bc8
3 changed files with 14 additions and 6 deletions

View File

@@ -0,0 +1,8 @@
local M = {}
function M.setup_colors(colors)
colors.buffer_active_bg = colors.tab_active_bg
return colors
end
return M

View File

@@ -1,6 +1,6 @@
return function() return function(theme)
return { return {
HeirlineInactive = { link = "StatusInactive" }, HeirlineInactive = theme.error,
HeirlineNormal = { link = "StatusNormal" }, HeirlineNormal = { link = "StatusNormal" },
HeirlineInsert = { link = "StatusInsert" }, HeirlineInsert = { link = "StatusInsert" },
HeirlineVisual = { link = "StatusVisual" }, HeirlineVisual = { link = "StatusVisual" },

View File

@@ -102,14 +102,14 @@ function M.make_theme(P, C)
}, },
} }
T.winbar = { T.winbar = {
active = {
fg = P.fg_gradiant[1],
bg = P.bg,
},
normal = { normal = {
fg = P.fg_gradiant[1], fg = P.fg_gradiant[1],
bg = P.harder_bg, bg = P.harder_bg,
}, },
active = {
fg = P.fg_gradiant[1],
bg = P.bg,
},
inactive = { inactive = {
fg = P.bg_gradiant[3], fg = P.bg_gradiant[3],
bg = P.harder_bg, bg = P.harder_bg,