feat: allow active tab's inner separator to blend with its background (#3817)

This commit is contained in:
Omenabaka 2026-03-27 02:22:20 +03:00 committed by GitHub
parent b67798ea19
commit 935eb6b298
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,9 +26,9 @@ function Tabs:redraw()
local name = ui.truncate(string.format(" %d %s ", i, cx.tabs[i].name), { max = max })
if i == cx.tabs.idx then
lines[#lines + 1] = ui.Line {
ui.Span(th.tabs.sep_inner.open):style(th.tabs.inactive),
ui.Span(th.tabs.sep_inner.open):fg(th.tabs.active:bg()):bg(th.tabs.inactive:bg()),
ui.Span(name):style(th.tabs.active),
ui.Span(th.tabs.sep_inner.close):style(th.tabs.inactive),
ui.Span(th.tabs.sep_inner.close):fg(th.tabs.active:bg()):bg(th.tabs.inactive:bg()),
}
else
lines[#lines + 1] = ui.Line(name):style(th.tabs.inactive)