tauri-apps / tao

The TAO of cross-platform windowing. A library in Rust built for Tauri.
Apache License 2.0
1.63k stars 191 forks source link

Migrate from `SetWindowCompositionAttribute` to `DwmSetWindowAttribute` #891

Closed Legend-Master closed 2 months ago

Legend-Master commented 8 months ago

According to https://learn.microsoft.com/en-us/windows/win32/dwm/setwindowcompositionattribute

The use of this API is not recommended. Use DwmSetWindowAttribute instead.

https://github.com/tauri-apps/tao/blob/88e1e32901fff8de329ec948b5b858ed05dcde78/src/platform_impl/windows/dark_mode.rs#L175-L211

(should be opening a blank issue, not from the bug template, sorry about that)