From 3d8803f4657665567e606a0822f8f97f7ca3b89e Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Thu, 23 Nov 2023 01:22:33 +0100 Subject: [PATCH] spacer default --- kubi-ui/src/element/spacer.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kubi-ui/src/element/spacer.rs b/kubi-ui/src/element/spacer.rs index 6bd9123..5b3bd77 100644 --- a/kubi-ui/src/element/spacer.rs +++ b/kubi-ui/src/element/spacer.rs @@ -4,6 +4,12 @@ use super::UiElement; pub struct Spacer(f32); +impl Default for Spacer { + fn default() -> Self { + Self(5.) + } +} + impl UiElement for Spacer { fn measure(&self, state: &StateRepo, layout: &LayoutInfo) -> Response { Response {