awful.widget: Don't use a resizable imagebox
awful.widget.graph and progressbar both create an imagebox. The default is resize = true which means the image is scaled up inside the wibox if :set_height() is used. Setting widget.resize = false avoids this. Signed-off-by: Uli Schlachter <psychon@znc.in> Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
ac60bbd147
commit
ab6cd898c1
|
@ -216,6 +216,7 @@ function new(args)
|
|||
|
||||
local graph = {}
|
||||
graph.widget = capi.widget(args)
|
||||
graph.widget.resize = false
|
||||
|
||||
data[graph] = { width = width, height = height, values = {}, max_value = 1 }
|
||||
|
||||
|
|
|
@ -169,6 +169,7 @@ function new(args)
|
|||
local pbar = {}
|
||||
|
||||
pbar.widget = capi.widget(args)
|
||||
pbar.widget.resize = false
|
||||
|
||||
data[pbar] = { width = width, height = height, value = 0 }
|
||||
|
||||
|
|
Loading…
Reference in New Issue