Crate window_vibrancy
source ·Expand description
Make your windows vibrant.
§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_vibrancy, apply_blur, NSVisualEffectMaterial};
#[cfg(target_os = "macos")]
apply_vibrancy(&window, NSVisualEffectMaterial::AppearanceBased, 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");
Enums§
Functions§
- Applies acrylic effect to window. Works only on Windows 10 v1809 or newer.
- Applies blur effect to window. Works only on Windows 7, Windows 10 v1809 or newer.
- Applies mica effect to window. Works only on Windows 11.
- Applies mica tabbed effect to window. Works only on Windows 11.
- Applies macos vibrancy effect to window. Works only on macOS 10.10 or newer.
- Clears acrylic effect applied to window. Works only on Windows 10 v1809 or newer.
- Clears blur effect applied to window. Works only on Windows 7, Windows 10 v1809 or newer.
- Clears mica effect applied to window. Works only on Windows 11.
- Clears mica tabbed effect applied to window. Works only on Windows 11.
Type Aliases§
- a tuple of RGBA colors. Each value has minimum of 0 and maximum of 255.