mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-25 08:28:42 -06:00
remove deprecated background fn
This commit is contained in:
parent
03a49791fa
commit
f5f3dd9ad3
|
@ -71,16 +71,10 @@ impl Container {
|
||||||
self
|
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.background_frame = Box::new(frame);
|
||||||
self
|
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 {
|
impl Default for Container {
|
||||||
|
|
Loading…
Reference in a new issue