Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clip view doesn't seem to anti-alias border-radius #109

Closed
jrmoulton opened this issue Sep 25, 2023 · 2 comments
Closed

Clip view doesn't seem to anti-alias border-radius #109

jrmoulton opened this issue Sep 25, 2023 · 2 comments

Comments

@jrmoulton
Copy link
Collaborator

Border Radius applied to a stack
Screenshot 2023-09-24 at 7 35 44 PM
Border radius applied to clip
Screenshot 2023-09-24 at 7 35 40 PM

@Zoxc
Copy link
Contributor

Zoxc commented Jan 5, 2024

audulus/vger-rs#17 should fix this.

@jrmoulton
Copy link
Collaborator Author

jrmoulton commented Feb 11, 2024

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);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants