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