You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
617 B
17 lines
617 B
-- 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
|