mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +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 })
|
local name = ui.truncate(string.format(" %d %s ", i, cx.tabs[i].name), { max = max })
|
||||||
if i == cx.tabs.idx then
|
if i == cx.tabs.idx then
|
||||||
lines[#lines + 1] = ui.Line {
|
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(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
|
else
|
||||||
lines[#lines + 1] = ui.Line(name):style(th.tabs.inactive)
|
lines[#lines + 1] = ui.Line(name):style(th.tabs.inactive)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue