#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

#476 in GUI

Download history 1443/week @ 2024-01-03 1556/week @ 2024-01-10 1503/week @ 2024-01-17 1016/week @ 2024-01-24 1314/week @ 2024-01-31 910/week @ 2024-02-07 1842/week @ 2024-02-14 2658/week @ 2024-02-21 2611/week @ 2024-02-28 3894/week @ 2024-03-06 2592/week @ 2024-03-13 1796/week @ 2024-03-20 1908/week @ 2024-03-27 1583/week @ 2024-04-03 2028/week @ 2024-04-10 2448/week @ 2024-04-17

8,222 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
~89K SLoC