Tweak underline of wezterm tab bar to skip whitespace at the start
This commit is contained in:
parent
6579d2b484
commit
2a5d59e5dc
|
@ -18,14 +18,15 @@ M.setup = function(scheme)
|
|||
}, #tabs + 1)
|
||||
local elements = {}
|
||||
table.insert(elements, "ResetAttributes")
|
||||
table.insert(elements, { Background = { Color = colours[tab.tab_index + 1] } })
|
||||
table.insert(elements, { Foreground = { Color = text_fg } })
|
||||
table.insert(elements, { Text = " " })
|
||||
if tab.is_active then
|
||||
table.insert(elements, { Attribute = { Underline = "Single" } })
|
||||
table.insert(elements, { Attribute = { Intensity = "Bold" } })
|
||||
end
|
||||
if hover then table.insert(elements, { Attribute = { Italic = true } }) end
|
||||
table.insert(elements, { Background = { Color = colours[tab.tab_index + 1] } })
|
||||
table.insert(elements, { Foreground = { Color = text_fg } })
|
||||
table.insert(elements, { Text = " " .. title })
|
||||
table.insert(elements, { Text = title })
|
||||
table.insert(elements, "ResetAttributes")
|
||||
table.insert(elements, { Background = { Color = colours[tab.tab_index + 2] } })
|
||||
table.insert(elements, { Foreground = { Color = colours[tab.tab_index + 1] } })
|
||||
|
|
Loading…
Reference in a new issue