#tauri-plugin #shadow #windowing #winit #platform-specific

window-shadows

Add native shadows to your windows

8 releases

0.2.2 Oct 17, 2023
0.2.1 Dec 28, 2022
0.2.0 Jul 27, 2022
0.1.3 May 23, 2022
0.0.0 Mar 5, 2022

#1817 in GUI

Download history 597/week @ 2024-12-16 666/week @ 2024-12-23 790/week @ 2024-12-30 709/week @ 2025-01-06 1020/week @ 2025-01-13 894/week @ 2025-01-20 555/week @ 2025-01-27 756/week @ 2025-02-03 676/week @ 2025-02-10 792/week @ 2025-02-17 847/week @ 2025-02-24 593/week @ 2025-03-03 686/week @ 2025-03-10 952/week @ 2025-03-17 1133/week @ 2025-03-24 1393/week @ 2025-03-31

4,205 downloads per month

Apache-2.0 OR MIT

1MB

window-shadows

Chat Server

Add native shadows to your windows.

Platform-specific

  • Windows: On Windows 11, the window will also have rounded corners.
  • macOS: Shadows are always disabled for transparent windows.
  • Linux: Unsupported, Shadows are controlled by the compositor installed on the end-user system.

Example

use window_shadows::set_shadow;

#[cfg(any(windows, target_os = "macos"))]
set_shadow(&window, true).unwrap();

Screenshots

Windows macOS
Windows screenshot macOS screenshot

Dependencies

~0–12MB
~75K SLoC