Add notification_icon_size as a beautiful variable (#1951)

This commit is contained in:
Tomoya Tabuchi 2017-07-29 22:58:52 +09:00 committed by Daniel Hahler
parent 82fd7ea8e5
commit 0836cf90c5
1 changed files with 6 additions and 1 deletions

View File

@ -189,6 +189,10 @@ naughty.notificationClosedReason = {
-- @beautiful beautiful.notification_height
-- @tparam int notification_height
--- Notifications icon size.
-- @beautiful beautiful.notification_icon_size
-- @tparam int notification_icon_size
-- Counter for the notifications
-- Required for later access via DBUS
@ -600,7 +604,8 @@ function naughty.notify(args)
args.preset or naughty.config.presets.normal or {})
local timeout = args.timeout or preset.timeout
local icon = args.icon or preset.icon
local icon_size = args.icon_size or preset.icon_size
local icon_size = args.icon_size or preset.icon_size or
beautiful.notification_icon_size
local text = args.text or preset.text
local title = args.title or preset.title
local s = get_screen(args.screen or preset.screen or screen.focused())