Draw divider for inactive tabs

This commit is contained in:
Francesco Abbate 2021-02-27 23:56:11 +01:00
parent f708a53a04
commit bd2d8db231
1 changed files with 2 additions and 2 deletions

View File

@ -403,11 +403,11 @@ function Node:draw_tabs()
local x, y, w, h = self:get_tab_rect(i)
local text = view:get_name()
local color = style.dim
renderer.draw_rect(x + w, y, ds, h, style.divider)
renderer.draw_rect(x - ds, y, ds, h, style.divider)
if view == self.active_view then
color = style.text
renderer.draw_rect(x, y, w, h, style.background)
renderer.draw_rect(x + w, y, ds, h, style.divider)
renderer.draw_rect(x - ds, y, ds, h, style.divider)
end
local cx, cw, cspace = close_button_location(x, w)
if view == self.active_view or i == self.hovered_tab then