--DOC_GEN_IMAGE --DOC_HIDE_START local parent = ... local wibox = require("wibox") --luacheck: push no max line length --DOC_HIDE_END local image_path = ''.. ''.. ' '.. ' '.. ' '.. ' '.. ' '.. ' ' .. ' '.. ' '.. ' '.. '' --DOC_NEWLINE local style = "".. "#first {stop-color: magenta;}" .. "#second {stop-color: cyan;}" .. "#third {stop-color: yellow;}" --DOC_NEWLINE local w = wibox.widget { { text = "Center widget", valign = "center", align = "center", widget = wibox.widget.textbox }, borders = 50, border_image_stylesheet = style, border_image = image_path, honor_borders = false, forced_width = 100, --DOC_HIDE forced_height = 100, --DOC_HIDE widget = wibox.container.border } --DOC_HIDE_START --luacheck: pop parent:add(w)