I’m currently trying to build a screenshot application and I need a transparent area for selecting a region to capture. When I use the WebviewWindowBuilder with maximized = true, the dock and top status bar are not covered.
Here is the code snippet I’m using:
let win_builder = WebviewWindowBuilder::new(
app,
"screenshot_mask",
WebviewUrl::App("/screenshot_mask.html".parse().unwrap()),
)
.decorations(false)
.always_on_top(true)
.closable(false)
.transparent(true)
.maximized(true);
let window = win_builder.build().unwrap();
window.show()?;
Describe the bug
Hi,
I’m currently trying to build a screenshot application and I need a transparent area for selecting a region to capture. When I use the WebviewWindowBuilder with maximized = true, the dock and top status bar are not covered.
Here is the code snippet I’m using:
Reproduction
No response
Expected behavior
No response
Full
tauri info
outputStack trace
No response
Additional context
No response