tests: Add tests for the stack layout
This commit is contained in:
parent
fb367c3f9e
commit
82d1616773
|
@ -0,0 +1,15 @@
|
||||||
|
local generic_widget = ... --DOC_HIDE
|
||||||
|
local wibox = require("wibox") --DOC_HIDE
|
||||||
|
|
||||||
|
return --DOC_HIDE
|
||||||
|
wibox.widget {
|
||||||
|
generic_widget( "first" ),
|
||||||
|
generic_widget( "second" ),
|
||||||
|
generic_widget( "third" ),
|
||||||
|
horizontal_offset = 5,
|
||||||
|
vertical_offset = 5,
|
||||||
|
layout = wibox.layout.stack
|
||||||
|
}
|
||||||
|
, 200, 50 --DOC_HIDE
|
||||||
|
|
||||||
|
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
|
@ -0,0 +1,13 @@
|
||||||
|
local generic_widget = ... --DOC_HIDE
|
||||||
|
local wibox = require("wibox") --DOC_HIDE
|
||||||
|
|
||||||
|
return --DOC_HIDE
|
||||||
|
wibox.widget {
|
||||||
|
generic_widget( "first" ),
|
||||||
|
generic_widget( "second" ),
|
||||||
|
generic_widget( "third" ),
|
||||||
|
spacing = 6,
|
||||||
|
layout = wibox.layout.stack
|
||||||
|
}
|
||||||
|
|
||||||
|
--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
Loading…
Reference in New Issue