2016-03-19 09:58:43 +01:00
|
|
|
local parent = ... --DOC_HIDE
|
|
|
|
local wibox = require("wibox") --DOC_HIDE
|
|
|
|
local gears = {shape = require("gears.shape")} --DOC_HIDE
|
|
|
|
local beautiful = require("beautiful") --DOC_HIDE
|
|
|
|
|
|
|
|
parent : setup {
|
|
|
|
{
|
|
|
|
-- Some content may be outside of the shape
|
|
|
|
{
|
|
|
|
text = "Hello\nworld!",
|
|
|
|
widget = wibox.widget.textbox
|
|
|
|
},
|
|
|
|
shape = gears.shape.circle,
|
|
|
|
bg = beautiful.bg_normal,
|
|
|
|
shape_border_color = beautiful.border_color,
|
2016-05-23 05:56:45 +02:00
|
|
|
widget = wibox.container.background
|
2016-03-19 09:58:43 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
-- To solve this, clip the content
|
|
|
|
{
|
|
|
|
text = "Hello\nworld!",
|
|
|
|
widget = wibox.widget.textbox
|
|
|
|
},
|
|
|
|
shape_clip = true,
|
|
|
|
shape = gears.shape.circle,
|
|
|
|
bg = beautiful.bg_normal,
|
|
|
|
shape_border_color = beautiful.border_color,
|
2016-05-23 05:56:45 +02:00
|
|
|
widget = wibox.container.background
|
2016-03-19 09:58:43 +01:00
|
|
|
},
|
|
|
|
spacing = 10,
|
|
|
|
layout = wibox.layout.fixed.vertical
|
|
|
|
}
|
2016-12-31 13:59:38 +01:00
|
|
|
|
|
|
|
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|