#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

#463 in GUI

Download history 1354/week @ 2024-01-29 672/week @ 2024-02-05 1871/week @ 2024-02-12 2474/week @ 2024-02-19 2484/week @ 2024-02-26 2636/week @ 2024-03-04 3576/week @ 2024-03-11 2454/week @ 2024-03-18 1860/week @ 2024-03-25 1509/week @ 2024-04-01 1727/week @ 2024-04-08 2789/week @ 2024-04-15 2775/week @ 2024-04-22 2115/week @ 2024-04-29 2484/week @ 2024-05-06 4195/week @ 2024-05-13

11,770 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
~93K SLoC