mirror of
https://github.com/sxyazi/yazi.git
synced 2026-05-13 08:16:40 +00:00
feat: allow active tab's inner separator to blend with its background (#3817)
This commit is contained in:
parent
b67798ea19
commit
935eb6b298
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue