Opacity compositing

This commit is contained in:
2026-03-23 16:33:19 -04:00
parent 6079117f2c
commit e327516e5e
6 changed files with 42 additions and 10 deletions

View File

@@ -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,
}
}