#blur #windowing #mica #vibrancy #acrylic

window-vibrancy

Make your windows vibrant

17 releases

new 0.5.3 Feb 12, 2025
0.5.2 Sep 8, 2024
0.5.1 Aug 15, 2024
0.5.0 Feb 7, 2024
0.1.1 Mar 29, 2022

#170 in GUI

Download history 23038/week @ 2024-10-28 24620/week @ 2024-11-04 24242/week @ 2024-11-11 27606/week @ 2024-11-18 29632/week @ 2024-11-25 27666/week @ 2024-12-02 30970/week @ 2024-12-09 31254/week @ 2024-12-16 20723/week @ 2024-12-23 23866/week @ 2024-12-30 31748/week @ 2025-01-06 28077/week @ 2025-01-13 33906/week @ 2025-01-20 36462/week @ 2025-01-27 35716/week @ 2025-02-03 40414/week @ 2025-02-10

150,421 downloads per month
Used in 139 crates (2 directly)

Apache-2.0 OR MIT

1.5MB
625 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–14MB
~95K SLoC