fix(naughty: core): don't attempt to upscale small icons (#2283)
This commit is contained in:
parent
619d922538
commit
b77ffa86e0
|
@ -781,7 +781,7 @@ function naughty.notify(args)
|
|||
if icon then
|
||||
iconbox = wibox.widget.imagebox()
|
||||
iconmargin = wibox.container.margin(iconbox, margin, margin, margin, margin)
|
||||
if icon_size then
|
||||
if icon_size and (icon:get_height() > icon_size or icon:get_width() > icon_size) then
|
||||
local scale_factor = icon_size / math.max(icon:get_height(),
|
||||
icon:get_width())
|
||||
local scaled =
|
||||
|
|
Loading…
Reference in New Issue