Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tauri-apps/window-shadows
Add native shadows to your windows.
https://github.com/tauri-apps/window-shadows
macos plugin shadows tao tauri tauri-plugin windows winit
Last synced: 8 days ago
JSON representation
Add native shadows to your windows.
- Host: GitHub
- URL: https://github.com/tauri-apps/window-shadows
- Owner: tauri-apps
- License: apache-2.0
- Archived: true
- Created: 2021-12-30T14:10:26.000Z (about 3 years ago)
- Default Branch: dev
- Last Pushed: 2024-02-07T17:05:00.000Z (12 months ago)
- Last Synced: 2024-04-14T04:24:53.453Z (10 months ago)
- Topics: macos, plugin, shadows, tao, tauri, tauri-plugin, windows, winit
- Language: Rust
- Homepage:
- Size: 2.81 MB
- Stars: 154
- Watchers: 13
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
Awesome Lists containing this project
- awesome-tauri - window-shadows - Add native shadows to your windows in Tauri (v1 only - added to Tauri in v2). (Development / Plugins)
README
> [!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
[![](https://img.shields.io/crates/v/window-shadows)](https://crates.io/crates/window-shadows) [![](https://img.shields.io/docsrs/window-shadows)](https://docs.rs/window-shadows/) ![](https://img.shields.io/crates/l/window-shadows)
[![Chat Server](https://img.shields.io/badge/chat-on%20discord-7289da.svg)](https://discord.gg/SpmNs4S)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
```rs
use window_shadows::set_shadow;#[cfg(any(windows, target_os = "macos"))]
set_shadow(&window, true).unwrap();
```## Screenshots
| Windows | macOS |
| :---: | :---: |
| ![Windows screenshot](./screenshots/windows.png) | ![macOS screenshot](./screenshots/macOS.png) |