window-shadows

Crates.iowindow-shadows
lib.rswindow-shadows
version0.2.2
sourcesrc
created_at2022-03-05 17:00:19.51108
updated_at2023-10-17 15:57:33.174953
descriptionAdd native shadows to your windows.
homepage
repositoryhttps://github.com/tauri-apps/tauri-plugin-shadows
max_upload_size
id544123
size1,239,969
tauri (tauri-bot)

documentation

https://docs.rs/tauri-plugin-shadows

README

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

Commit count: 81

cargo fmt