-
Hi, I'm making a Slint app with Rust and trying to make the background of my window blurry, which I can't seem to do with any built-in property. I've tried using window_vibrancy, which was mentioned in other question posts, but I'm new to Rust and don't have the ability to implement it correctly. .rs:
.slint:
.toml:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Maybe possible using native or private API. You can get a native window handle with the Another possibility is to use the i-slint-backend-winit private API to get a winit handle and try to call Tracking issue: #2339 |
Beta Was this translation helpful? Give feedback.
-
Answer: add this dependency to cargo.toml, make sure it's the same version as the slint dependency
and add this code to main.rs
Links that helped me: |
Beta Was this translation helpful? Give feedback.
Answer:
add this dependency to cargo.toml, make sure it's the same version as the slint dependency
and add this code to main.rs
Links that helped me:
https://docs.rs/winit/latest/winit/platform/windows/trait.WindowAttributesExtWindows.html#tymethod.with_system_backdrop
https://docs.rs/winit/latest/winit/platform/windows/enum.BackdropType.html