remove deprecated background fn

This commit is contained in:
griffi-gh 2024-03-24 01:16:51 +01:00
parent 5cb696d3f6
commit e665a94335

View file

@ -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<FillColor>) -> Self {
self.background_frame = Box::new(FrameRect::color(color.into()));
self
}
}
impl Default for Container {