awesome/tests/examples/wibox/logo/logo.lua

18 lines
558 B
Lua

local parent = ... --DOC_HIDE
local wibox = require( "wibox" ) --DOC_HIDE
local assets = require( "xresources.assets" ) --DOC_HIDE
parent:add( --DOC_HIDE
wibox.widget {
fit = function() return 128, 128 end,
draw = function(_, _, cr)
assets.gen_logo(cr, 128, 128, nil, "#535d6c")
end,
widget = wibox.widget.base.make_widget
}
) --DOC_HIDE
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80