From 769d7e84e924d068ac301866be8402d758babe45 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Tue, 28 Nov 2023 20:18:47 +0100 Subject: [PATCH] demonstrate padding on all 4 sides --- kubi-ui/examples/test.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kubi-ui/examples/test.rs b/kubi-ui/examples/test.rs index 443f90f..ce3e0c3 100644 --- a/kubi-ui/examples/test.rs +++ b/kubi-ui/examples/test.rs @@ -113,7 +113,12 @@ fn main() { }), Box::new(Container { 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![ Box::new(Rect { size: (UiSize::Pixels(50.), UiSize::Pixels(50.)),