6 releases

Uses new Rust 2021

0.2.0 Jul 27, 2022
0.1.3 May 23, 2022
0.1.2 Mar 29, 2022
0.0.0 Mar 5, 2022

#139 in GUI

Download history 282/week @ 2022-06-10 300/week @ 2022-06-17 150/week @ 2022-06-24 144/week @ 2022-07-01 285/week @ 2022-07-08 369/week @ 2022-07-15 399/week @ 2022-07-22 370/week @ 2022-07-29 293/week @ 2022-08-05 296/week @ 2022-08-12 290/week @ 2022-08-19 449/week @ 2022-08-26 299/week @ 2022-09-02 201/week @ 2022-09-09 347/week @ 2022-09-16 321/week @ 2022-09-23

1,193 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;

set_shadow(&window, true).expect("Unsupported platform!");

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;

# let window: &dyn raw_window_handle::HasRawWindowHandle = unsafe { std::mem::zeroed() };
set_shadow(&window, true).expect("Unsupported platform!");

Dependencies

~0–7MB
~117K SLoC