window-shadows-v2

Crates.iowindow-shadows-v2
lib.rswindow-shadows-v2
version0.1.1
created_at2025-11-28 14:40:39.507876+00
updated_at2025-11-28 14:43:24.685504+00
descriptionAdd native shadows to your windows for tauri v2.
homepage
repositoryhttps://github.com/nautilus-ops/window-shadow-v2
max_upload_size
id1955440
size251,446
CeerDecy (CeerDecy)

documentation

README

window shadows v2

This crate is a Tauri v2-ready alternative to window-shadows.

Since Tauri v2 already supports toggling window shadows, the original window-shadows crate stopped receiving updates. However, this crate continues to provide the native shadow implementation that some apps still need.

Why we need it?

My app ships with a custom title bar. On Windows 10, enabling shadows results in the following bug:

img.png

The top shadow becomes inactive and leaves a white line. By porting the native shadow implementation from window-shadows and adapting it for Tauri v2, the issue is resolved.

Usage

cargo add window-shadows-v2
.setup(|app| {
    window_shadows_v2::set_shadows(app, true);
})
Commit count: 0

cargo fmt