Add native shadows to your windows.
[!warning]
ARCHIVE NOTICE
This crate is Unmaintained! it served its purpose which was an interim solution to enable shadows on undecorated windows for
tao
andtauri
.As of
tauri@v2
and recent versions oftao
andwinit
, they all support enablind/disabling shadows so this crate is not needed.If you're using
tauri@v1
and need this crate, don't worry, this crate will still function withtauri@v1
without any problems.
Add native shadows to your windows.
use window_shadows::set_shadow;
#[cfg(any(windows, target_os = "macos"))]
set_shadow(&window, true).unwrap();
Windows | macOS |
---|---|