Fix color when next item is minimized
This commit is contained in:
parent
521dc19898
commit
b72430b384
|
@ -92,13 +92,14 @@ local function list_update(w, buttons, label, data, objects)
|
||||||
ll:add(l)
|
ll:add(l)
|
||||||
ll:add(cbm)
|
ll:add(cbm)
|
||||||
|
|
||||||
|
|
||||||
if (index % 2 == 0) then
|
if (index % 2 == 0) then
|
||||||
local end_color = count == index and "#12151c" or theme.top_panel_powerline
|
local end_color = (count == index or objects[index+1].minimized) and "#12151c" or theme.top_panel_powerline
|
||||||
bg_clickable:set_widget(pl(ll, theme.bg_normal, end_color, true))
|
local main_color = o.minimized and "#12151c" or theme.bg_normal
|
||||||
|
bg_clickable:set_widget(pl(ll, main_color, end_color, true))
|
||||||
else
|
else
|
||||||
local end_color = count == index and "#12151c" or theme.bg_normal
|
local end_color = (count == index or objects[index+1].minimized) and "#12151c" or theme.bg_normal
|
||||||
bg_clickable:set_widget(pl(ll, theme.top_panel_powerline, end_color, true))
|
local main_color = o.minimized and "#12151c" or theme.top_panel_powerline
|
||||||
|
bg_clickable:set_widget(pl(ll, main_color, end_color, true))
|
||||||
end
|
end
|
||||||
-- And all of this gets a background
|
-- And all of this gets a background
|
||||||
bgb:set_widget(bg_clickable)
|
bgb:set_widget(bg_clickable)
|
||||||
|
|
Loading…
Reference in New Issue