From e536dbe2eabe566dec32ce14c122f2d424c7b8fd Mon Sep 17 00:00:00 2001 From: koniu Date: Sat, 15 Nov 2008 18:39:26 +0000 Subject: [PATCH] naughty: text-icon separator uses margin now Signed-off-by: koniu --- lib/naughty.lua.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/naughty.lua.in b/lib/naughty.lua.in index 269eb627..b44d1609 100644 --- a/lib/naughty.lua.in +++ b/lib/naughty.lua.in @@ -172,7 +172,7 @@ function notify(args) notification.idx = #notifications[notification.position] + 1 local title = "" - if args.title then title = " " .. args.title .. "\n" end + if args.title then title = args.title .. "\n" end -- hook destroy local die = function () destroy(notification) end @@ -188,9 +188,10 @@ function notify(args) -- create textbox local textbox = widget({ type = "textbox", name = "text", align = "flex" }) + textbox.margin = 20 textbox:buttons({ button({ }, 1, run), button({ }, 3, die) }) - textbox.text = string.format('%s %s', + textbox.text = string.format('%s%s', config.font, title, text) if config.hover_timeout then textbox.mouse_enter = hover_destroy end -- 2.11.4.GIT