#blur #mica #windowing #vibrancy #acrylic

window-vibrancy

Make your windows vibrant

14 unstable releases (5 breaking)

0.5.0 Feb 7, 2024
0.4.3 Nov 16, 2023
0.4.2 Oct 5, 2023
0.4.0 Jul 8, 2023
0.1.1 Mar 29, 2022

#96 in GUI

Download history 1925/week @ 2024-01-01 1600/week @ 2024-01-08 2187/week @ 2024-01-15 2016/week @ 2024-01-22 2729/week @ 2024-01-29 2719/week @ 2024-02-05 3000/week @ 2024-02-12 4596/week @ 2024-02-19 4858/week @ 2024-02-26 4677/week @ 2024-03-04 5457/week @ 2024-03-11 4849/week @ 2024-03-18 4408/week @ 2024-03-25 4065/week @ 2024-04-01 4435/week @ 2024-04-08 5402/week @ 2024-04-15

18,694 downloads per month
Used in 37 crates (via markflowy)

Apache-2.0 OR MIT

1.5MB
619 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 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–11MB
~85K SLoC