#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

#645 in GUI

Download history 1624/week @ 2024-06-17 2172/week @ 2024-06-24 2435/week @ 2024-07-01 2143/week @ 2024-07-08 2212/week @ 2024-07-15 1755/week @ 2024-07-22 3654/week @ 2024-07-29 3478/week @ 2024-08-05 4067/week @ 2024-08-12 2906/week @ 2024-08-19 2348/week @ 2024-08-26 3234/week @ 2024-09-02 1991/week @ 2024-09-09 1293/week @ 2024-09-16 1132/week @ 2024-09-23 919/week @ 2024-09-30

5,469 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
~72K SLoC