๐Ÿ“ฆ tauri-apps / window-shadows

Add native shadows to your windows.

โ˜… 251 stars โ‘‚ 10 forks ๐Ÿ‘ 251 watching โš–๏ธ Apache License 2.0
macospluginshadowstaotauritauri-pluginwindowswinit
๐Ÿ“ฅ Clone https://github.com/tauri-apps/window-shadows.git
HTTPS git clone https://github.com/tauri-apps/window-shadows.git
SSH git clone git@github.com:tauri-apps/window-shadows.git
CLI gh repo clone tauri-apps/window-shadows
Amr Bashir Amr Bashir chore: update archive notice 48fa81b 1 years ago ๐Ÿ“ History
๐Ÿ“‚ dev View all commits โ†’
๐Ÿ“ .changes
๐Ÿ“ .github
๐Ÿ“ examples
๐Ÿ“ screenshots
๐Ÿ“ src
๐Ÿ“„ .gitignore
๐Ÿ“„ Cargo.toml
๐Ÿ“„ CHANGELOG.md
๐Ÿ“„ LICENSE-APACHE
๐Ÿ“„ LICENSE-MIT
๐Ÿ“„ LICENSE.spdx
๐Ÿ“„ README.md
๐Ÿ“„ renovate.json
๐Ÿ“„ README.md
[!warning]
# ARCHIVE NOTICE
> This crate is Unmaintained! it served its purpose which was an interim solution to enable shadows on undecorated windows for tao and tauri.
> As of tauri@v2 and recent versions of tao and winit, they all support enablind/disabling shadows so this crate is not needed.
> If you're using tauri@v1 and need this crate, don't worry, this crate will still function with tauri@v1 without any problems.

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

WindowsmacOS
Windows screenshotmacOS screenshot