From 8599426168c1eaabccdf9341fecaa428d9844c51 Mon Sep 17 00:00:00 2001 From: koniu Date: Fri, 21 Nov 2008 17:09:11 +0000 Subject: [PATCH] naughty: never scale icon to text height Also removes default icon_size of 16 to avoid confusion. Signed-off-by: koniu --- lib/naughty.lua.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/naughty.lua.in b/lib/naughty.lua.in index 5aa8fd84..ce3270cd 100644 --- a/lib/naughty.lua.in +++ b/lib/naughty.lua.in @@ -39,7 +39,7 @@ module("naughty") -- @field margin Space between popup edge and content. Default: 10 -- @field font Popup font. Default: beautiful.font or "Verdana 8" -- @field icon Popup icon. Default: nil --- @field icon_size Size of the icon in pixels. Default: 16 +-- @field icon_size Size of the icon in pixels. Default: nil -- @field fg Foreground color. Default: beautiful.fg_focus or '#ffffff' -- @field bg Background color. Default: beautiful.bg_focus or '#535d6c' -- @field border_color Border color. @@ -60,7 +60,7 @@ config.spacing = 1 config.ontop = true config.margin = 10 config.icon = nil -config.icon_size = 16 +config.icon_size = nil config.border_width = 1 config.hover_timeout = nil @@ -259,8 +259,8 @@ function notify(args) local img = image(icon) if icon_size then img = img:crop_and_scale(0,0,img.height,img.width,icon_size,icon_size) - iconbox.resize = false end + iconbox.resize = false iconbox.image = img if config.hover_timeout then iconbox.mouse_enter = hover_destroy end end