#blur #windowing #mica #acrylic #vibrancy

window-vibrancy

Make your windows vibrant

18 releases

0.6.0 Feb 21, 2025
0.5.2 Sep 8, 2024
0.5.0 Feb 7, 2024
0.4.3 Nov 16, 2023
0.1.1 Mar 29, 2022

#161 in GUI

Download history 26530/week @ 2024-11-20 30467/week @ 2024-11-27 29106/week @ 2024-12-04 30820/week @ 2024-12-11 26824/week @ 2024-12-18 21069/week @ 2024-12-25 27263/week @ 2025-01-01 30187/week @ 2025-01-08 29431/week @ 2025-01-15 36612/week @ 2025-01-22 35488/week @ 2025-01-29 36221/week @ 2025-02-05 41969/week @ 2025-02-12 42660/week @ 2025-02-19 44698/week @ 2025-02-26 34063/week @ 2025-03-05

169,450 downloads per month
Used in 147 crates (2 directly)

Apache-2.0 OR MIT

1.5MB
617 lines

window-vibrancy

Chat Server

Make your windows vibrant.

[!Tip] If you're using tauri@v1, you need to use version 0.4 of this crate.

Platform-specific

  • Linux: Unsupported, Blur and any vibrancy effects are controlled by the compositor installed on the end-user system.

Example

use window_vibrancy::{apply_blur, apply_vibrancy, NSVisualEffectMaterial};

#[cfg(target_os = "macos")]
apply_vibrancy(&window, NSVisualEffectMaterial::HudWindow, None, None).expect("Unsupported platform! 'apply_vibrancy' is only supported on macOS");

#[cfg(target_os = "windows")]
apply_blur(&window, Some((18, 18, 18, 125))).expect("Unsupported platform! 'apply_blur' is only supported on Windows");

Tauri

if you are using tauri, don't forget to:

For a more complete example of usage with tauri, see examples/tauri.

Available functions

Function Supported platforms Notes
apply_blur&clear_blur Windows 7/10/11 (22H1 only) Bad performance when resizing/dragging the window on Windows 11 build 22621+.
apply_acrylic&clear_acrylic Windows 10/11 Bad performance when resizing/dragging the window on Windows 10 v1903+ and Windows 11 build 22000.
apply_mica&clear_mica Windows 11
apply_vibrancy&clear_vibrancy macOS 10.10 and newer

Screenshots

apply_blur apply_acrylic apply_mica apply_vibrancy
apply_blur screenshot apply_blur screenshot apply_mica screenshot apply_vibrancy screenshot

Dependencies

~0–9.5MB
~93K SLoC