#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

#984 in GUI

Download history 962/week @ 2024-11-14 899/week @ 2024-11-21 995/week @ 2024-11-28 914/week @ 2024-12-05 809/week @ 2024-12-12 540/week @ 2024-12-19 798/week @ 2024-12-26 780/week @ 2025-01-02 905/week @ 2025-01-09 821/week @ 2025-01-16 746/week @ 2025-01-23 567/week @ 2025-01-30 778/week @ 2025-02-06 697/week @ 2025-02-13 886/week @ 2025-02-20 785/week @ 2025-02-27

3,233 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–12MB
~76K SLoC