We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Problem
Dioxus fails to rerender properly when transparency is enabled in desktop mode, leaving the old material underneath the new frame.
Steps To Reproduce
use dioxus::prelude::*; const STYLES: &'static str = r#" #body { display: flex; } p { font-size: 100px; } "#; const IPSUM: &'static str = r#" Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. "#; const BACON: &'static str = r#" Bacon ipsum dolor amet jowl pig pork meatball pork belly. Beef ribs buffalo hamburger burgdoggen. Pig pancetta pastrami shoulder fatback bacon kevin ham hock doner sirloin prosciutto t-bone meatloaf. Sausage swine flank pork, spare ribs pork loin ribeye beef ribs hamburger. Tongue pork chuck, biltong spare ribs pig jerky salami frankfurter flank drumstick leberkas pork chop pastrami jowl. Buffalo cupim alcatra tongue prosciutto, pork chop short ribs pancetta meatloaf corned beef chicken flank sirloin spare ribs. Boudin meatball andouille tenderloin meatloaf. "#; fn gui() -> Element { let mut scene = use_signal(|| false); let content = if scene.with(|b| *b) { IPSUM } else { BACON }; rsx! { style { "{STYLES}" } div { id: "body", onclick: move |_| { let value = scene.with(|b| *b); scene.set(!value); }, p { "{content}" } } } } fn main() { let window = dioxus_desktop::WindowBuilder::default() .with_decorations(false) .with_transparent(true); let config = dioxus_desktop::Config::default().with_window(window); LaunchBuilder::desktop().with_cfg(config).launch(gui); }
Screenshots
Environment:
Questionnaire
I'm interested in fixing this myself but don't know where to start.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem
Dioxus fails to rerender properly when transparency is enabled in desktop mode, leaving the old material underneath the new frame.
Steps To Reproduce
Screenshots
Environment:
Questionnaire
I'm interested in fixing this myself but don't know where to start.
The text was updated successfully, but these errors were encountered: