Fix color when next item is minimized

This commit is contained in:
Thomas Avé 2022-07-22 16:04:18 +02:00
parent 521dc19898
commit b72430b384
1 changed files with 6 additions and 5 deletions

View File

@ -92,13 +92,14 @@ local function list_update(w, buttons, label, data, objects)
ll:add(l)
ll:add(cbm)
if (index % 2 == 0) then
local end_color = count == index and "#12151c" or theme.top_panel_powerline
bg_clickable:set_widget(pl(ll, theme.bg_normal, end_color, true))
local end_color = (count == index or objects[index+1].minimized) and "#12151c" or theme.top_panel_powerline
local main_color = o.minimized and "#12151c" or theme.bg_normal
bg_clickable:set_widget(pl(ll, main_color, end_color, true))
else
local end_color = count == index and "#12151c" or theme.bg_normal
bg_clickable:set_widget(pl(ll, theme.top_panel_powerline, end_color, true))
local end_color = (count == index or objects[index+1].minimized) and "#12151c" or theme.bg_normal
local main_color = o.minimized and "#12151c" or theme.top_panel_powerline
bg_clickable:set_widget(pl(ll, main_color, end_color, true))
end
-- And all of this gets a background
bgb:set_widget(bg_clickable)