From f5f3dd9ad385ac3ecc28b5ef6ae72271e6409fc8 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Sun, 24 Mar 2024 01:16:51 +0100 Subject: [PATCH] remove deprecated background fn --- hui/src/element/builtin/container.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/hui/src/element/builtin/container.rs b/hui/src/element/builtin/container.rs index e3a73cf..4a65b60 100644 --- a/hui/src/element/builtin/container.rs +++ b/hui/src/element/builtin/container.rs @@ -71,16 +71,10 @@ impl Container { self } - pub fn with_background_frame(mut self, frame: impl Frame + 'static) -> Self { + pub fn with_background(mut self, frame: impl Frame + 'static) -> Self { self.background_frame = Box::new(frame); self } - - #[deprecated(note = "use with_background_frame instead")] - pub fn with_background(mut self, color: impl Into) -> Self { - self.background_frame = Box::new(FrameRect::color(color.into())); - self - } } impl Default for Container {