From 36b0ed19bbf1f99172ee267799b9eca1b418c4df Mon Sep 17 00:00:00 2001 From: Clemens Kirchgatterer Date: Sun, 23 Aug 2015 13:13:54 +0200 Subject: [PATCH] fix naughty.notify render problem, when bg color with alpha is used fixed a copy paste error in color initialization on the go --- widgets/calendar.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/widgets/calendar.lua b/widgets/calendar.lua index 7e52308..b811f70 100644 --- a/widgets/calendar.lua +++ b/widgets/calendar.lua @@ -117,11 +117,14 @@ function calendar:attach(widget, args) beautiful.font:find(" ")) calendar.font_size = tonumber(args.font_size) or 11 calendar.fg = args.fg or beautiful.fg_normal or "#FFFFFF" - calendar.bg = args.bg or beautiful.bg_normal or "#FFFFFF" + calendar.bg = args.bg or beautiful.bg_normal or "#000000" calendar.position = args.position or "top_right" calendar.scr_pos = args.scr_pos or 1 calendar.followmouse = args.followmouse or false + calendar.fg = string.sub(calendar.fg, 1, 7) + calendar.bg = string.sub(calendar.bg, 1, 7) + calendar.offset = 0 calendar.notify_icon = nil -- 2.39.5