local naughty = require "naughty" local qcolor = require "quarrel.color" local qui = require "quarrel.ui" local xresources = require "beautiful.xresources" local dpi = xresources.apply_dpi local theme = {} theme.font = qui.font() theme.bg_normal = qcolor.palette.bg() theme.bg_focus = qcolor.palette.bg() theme.bg_urgent = qcolor.palette.bg() theme.bg_minimize = qcolor.palette.bg() theme.bg_systray = qcolor.palette.bg() theme.fg_normal = qcolor.palette.fg() theme.fg_focus = qcolor.palette.fg() theme.fg_urgent = qcolor.palette.fg() theme.fg_minimize = qcolor.palette.fg() -- theme.useless_gap = dpi(2) theme.useless_gap = qui.PADDING / 2 theme.border_width = qui.BORDER_WIDTH theme.border_normal = qcolor.palette.border() theme.border_focus = qcolor.palette.border() theme.border_marked = qcolor.palette.border() theme.notification_icon_size = dpi(32) theme.notification_border_width = qui.BORDER_WIDTH theme.notification_border_color = theme.border_normal theme.notification_max_width = qui.CHAR_WIDTH * 48 -- theme.notification_max_width = qui.CHAR_WIDTH * 48 * 4 theme.notification_shape = qui.shape theme.notification_spacing = theme.useless_gap * 2 -- naughty.config.defaults.timeout = qvars.notif_timeout naughty.config.defaults.position = "bottom_right" -- naughty.config.defaults.border_width = qui.BORDER_WIDTH theme.tasklist_plain_task_name = true theme.enable_spawn_cursor = false return theme