Color separators in the tab bar using inactive bg except for the last one

This commit is contained in:
Kovid Goyal
2020-03-29 09:20:17 +05:30
parent 86703da917
commit a198336e31

View File

@@ -82,6 +82,8 @@ def draw_tab_with_separator(draw_data: DrawData, screen: Screen, tab: TabBarData
end = screen.cursor.x
screen.cursor.bold = screen.cursor.italic = False
screen.cursor.fg = 0
if not is_last:
screen.cursor.bg = as_rgb(color_as_int(draw_data.inactive_bg))
screen.draw(draw_data.sep)
screen.cursor.bg = 0
return end