Merge branch 'everslick-master'
fix naughty.notify render problem, when bg color with alpha is used
This commit is contained in:
commit
3862c60542
1 changed files with 4 additions and 1 deletions
|
@ -117,11 +117,14 @@ function calendar:attach(widget, args)
|
||||||
beautiful.font:find(" "))
|
beautiful.font:find(" "))
|
||||||
calendar.font_size = tonumber(args.font_size) or 11
|
calendar.font_size = tonumber(args.font_size) or 11
|
||||||
calendar.fg = args.fg or beautiful.fg_normal or "#FFFFFF"
|
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.position = args.position or "top_right"
|
||||||
calendar.scr_pos = args.scr_pos or 1
|
calendar.scr_pos = args.scr_pos or 1
|
||||||
calendar.followmouse = args.followmouse or false
|
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.offset = 0
|
||||||
calendar.notify_icon = nil
|
calendar.notify_icon = nil
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue