Revert "fix(naughty: core): don't attempt to upscale small icons (#2283)"

This reverts commit b77ffa86e0.
This commit is contained in:
Emmanuel Lepage Vallee 2018-08-06 15:53:55 -04:00
parent 4831a46590
commit 898db88443
1 changed files with 1 additions and 1 deletions

View File

@ -787,7 +787,7 @@ function naughty.notify(args)
if icon then if icon then
iconbox = wibox.widget.imagebox() iconbox = wibox.widget.imagebox()
iconmargin = wibox.container.margin(iconbox, margin, margin, margin, margin) 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(), local scale_factor = icon_size / math.max(icon:get_height(),
icon:get_width()) icon:get_width())
local scaled = local scaled =