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 {