reno/widgets/base/popuptitle.lua

18 lines
617 B
Lua
Raw Normal View History

2022-08-25 15:27:31 +00:00
-- Base for widgets
local awmtk2 = require("awmtk2")
local wibox = require("wibox")
local gears = require("gears")
local awful = require("awful")
local beautiful = require("beautiful")
return function(args)
local style = awmtk2.create_style("popuptitle",awmtk2.default,args.style)
local templates = awmtk2.create_template_lib("popuptitle",awmtk2.templates,args.templates)
local t = awmtk2.build_templates(templates,style)
local widget = wibox.widget(t.container(t.article({
icon = root_path.."/themes/"..global.theme.."/"..args.icon,
title = args.title
})))
return widget
end