floem
floem copied to clipboard
Clip view doesn't seem to anti-alias border-radius
Border Radius applied to a stack
Border radius applied to clip
https://github.com/audulus/vger-rs/pull/17 should fix this.
Looks like this was never completely integrated with lapce/vger or something has broken since then. Clip no longer clips at all with border_radius
minimal example
use floem::{
view::View,
views::{clip, empty, Decorators},
};
fn app_view() -> impl View {
clip(empty().style(|s| {
s.background(floem::peniko::Color::rgba8(255, 0, 0, 150))
.margin(10)
.height(30)
.width(20)
}))
.style(|s| s.border_radius(4))
}
fn main() {
floem::launch(app_view);
}