window-shadows
Add native shadows to your windows.
Platform support
Windows:Yes, but shadows can't be turned off for a normal (decorated) window.macOS:Yes!Linux:No, shadows are controlled by the compositor installed on the user system and they can enable it for your app if they want.
Examples
-
with
winit:use ; use set_shadow let event_loop = new; let window = new .with_decorations .build .unwrap; set_shadow.unwrap; -
with
tauri:use set_shadow let window = app.get_window.unwrap; set_shadow.unwrap;