#shadow #windowing

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

#1365 in GUI

Download history 1827/week @ 2024-07-21 3357/week @ 2024-07-28 3680/week @ 2024-08-04 3971/week @ 2024-08-11 2984/week @ 2024-08-18 2322/week @ 2024-08-25 3386/week @ 2024-09-01 1986/week @ 2024-09-08 1321/week @ 2024-09-15 1116/week @ 2024-09-22 933/week @ 2024-09-29 1186/week @ 2024-10-06 1152/week @ 2024-10-13 1096/week @ 2024-10-20 1087/week @ 2024-10-27 701/week @ 2024-11-03

4,151 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


lib.rs:

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();

Dependencies

~0–11MB
~74K SLoC