Opacity compositing
This commit is contained in:
@@ -58,6 +58,11 @@ impl Window {
|
||||
self.spec = self.spec.requested_inner_size(UiSize::new(width, height));
|
||||
self
|
||||
}
|
||||
|
||||
pub fn base_color(mut self, color: Color) -> Self {
|
||||
self.spec = self.spec.base_color(color);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Window {
|
||||
@@ -774,7 +779,7 @@ pub mod surfaces {
|
||||
|
||||
pub fn column() -> ContainerBuilder {
|
||||
ContainerBuilder {
|
||||
element: Element::column().background(surfaces::canvas()),
|
||||
element: Element::column(),
|
||||
widget_ref: None,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user