Add native shadows to your windows.
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.with winit
:
```rs
use winit::{eventloop::EventLoop, window::WindowBuilder};
use windowshadows::set_shadow
let event_loop = EventLoop::new();
let window = WindowBuilder::new() .withdecorations(false) .build(&eventloop) .unwrap();
set_shadow(&window, true).unwrap(); ```
with tauri
:
```rs
use windowshadows::setshadow
let window = app.get_window("main").unwrap();
set_shadow(&window, true).unwrap(); ```