widgets: also scale widget width with theme scale

This commit is contained in:
Vincent Bernat 2018-07-28 17:14:39 +02:00
parent b9f6e1b7b2
commit 9d19e3e0b0

View file

@ -134,7 +134,7 @@ local netdownicon = widget({ type = "imagebox" })
netdownicon.image = image(beautiful.icons .. "/widgets/down.png")
local netgraph = awful.widget.graph()
netgraph:set_width(80):set_height(16 * theme.scale)
netgraph:set_width(80 * theme.scale):set_height(16 * theme.scale)
netgraph:set_stack(true):set_scale(true)
netgraph:set_border_color(beautiful.fg_widget_border)
netgraph:set_stack_colors({ "#EF8171", "#cfefb3" })