wibox.set_bg: remove historical cruft
Should ideally have been removed in commit 'drawin: Remove bg_color property'. Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com> Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
ceb6eb311d
commit
9dfe4fe84b
|
@ -131,13 +131,6 @@ function set_bg(wibox, c)
|
|||
if type(c) == "string" or type(c) == "table" then
|
||||
c = color(c)
|
||||
end
|
||||
-- If this is a solid color, propagate the background color to the capi drawin
|
||||
if c:get_type() == "solid" then
|
||||
local r, g, b, a = c:get_rgba()
|
||||
r, g, b, a = r * 255, g * 255, b * 255, a * 255
|
||||
-- Alpha isn't supported for backgrounds
|
||||
colstr = string_format("#%02x%02x%02x", r, g, b)
|
||||
end
|
||||
wibox.background_color = c
|
||||
wibox.draw()
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue