mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-26 05:38:20 -06:00
demonstrate padding on all 4 sides
This commit is contained in:
parent
b57467f7de
commit
d955445dbd
|
@ -113,7 +113,12 @@ fn main() {
|
||||||
}),
|
}),
|
||||||
Box::new(Container {
|
Box::new(Container {
|
||||||
background: Some(vec4(1., 0., 0., 1.)),
|
background: Some(vec4(1., 0., 0., 1.)),
|
||||||
padding: Sides::horizontal_vertical(30., 5.),
|
padding: Sides {
|
||||||
|
top: 10.,
|
||||||
|
bottom: 20.,
|
||||||
|
left: 30.,
|
||||||
|
right: 40.,
|
||||||
|
},
|
||||||
elements: vec![
|
elements: vec![
|
||||||
Box::new(Rect {
|
Box::new(Rect {
|
||||||
size: (UiSize::Pixels(50.), UiSize::Pixels(50.)),
|
size: (UiSize::Pixels(50.), UiSize::Pixels(50.)),
|
||||||
|
|
Loading…
Reference in a new issue