๐Ÿ“ฆ tauri-apps / window-vibrancy

Make your windows vibrant.

โ˜… 957 stars โ‘‚ 42 forks ๐Ÿ‘ 957 watching โš–๏ธ Apache License 2.0
acrylicblurmacosplugintaotauritauri-pluginvibrancywindowswinit
๐Ÿ“ฅ Clone https://github.com/tauri-apps/window-vibrancy.git
HTTPS git clone https://github.com/tauri-apps/window-vibrancy.git
SSH git clone git@github.com:tauri-apps/window-vibrancy.git
CLI gh repo clone tauri-apps/window-vibrancy
github-actions[bot] github-actions[bot] apply version updates (#197) 5e7ddd7 2 months ago ๐Ÿ“ History
๐Ÿ“‚ dev View all commits โ†’
๐Ÿ“ .changes
๐Ÿ“ .github
๐Ÿ“ examples
๐Ÿ“ screenshots
๐Ÿ“ src
๐Ÿ“„ .gitignore
๐Ÿ“„ Cargo.lock
๐Ÿ“„ Cargo.toml
๐Ÿ“„ CHANGELOG.md
๐Ÿ“„ LICENSE-APACHE
๐Ÿ“„ LICENSE-MIT
๐Ÿ“„ LICENSE.spdx
๐Ÿ“„ README.md
๐Ÿ“„ renovate.json
๐Ÿ“„ README.md

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

FunctionSupported platformsNotes
apply_blur&clear_blurWindows 7/10/11 (22H1 only)Bad performance when resizing/dragging the window on Windows 11 build 22621+.
apply_acrylic&clear_acrylicWindows 10/11Bad performance when resizing/dragging the window on Windows 10 v1903+ and Windows 11 build 22000.
apply_mica&clear_micaWindows 11
apply_vibrancy&clear_vibrancymacOS 10.10 and newer

Screenshots

applyblurapplyacrylicapplymicaapplyvibrancy
apply</em>blur screenshotapply</em>blur screenshotapply</em>mica screenshotapply</em>vibrancy screenshot