Expand description

Make your Millennium windows vibrant.

Platform support

  • Windows: Yes!
  • macOS: Yes!
  • Linux: No, blur effects are controlled by the compositor and they can enable it for your app if they want.

Example with Millennium Core:

let event_loop = EventLoop::new();

let window = WindowBuilder::new().with_decorations(false).build(&event_loop).unwrap();

#[cfg(target_os = "windows")]
apply_blur(&window, Some((18, 18, 18, 125))).unwrap();

#[cfg(target_os = "macos")]
apply_vibrancy(&window, NSVisualEffectMaterial::AppearanceBased).unwrap();

Enums

Functions

Applies Acrylic effect to the window. Works only on Windows 10 v1809 or newer and Windows 11.

Applies blur effect to the window. Works only on Windows 7, Windows 10 v1809 or newer, and Windows 11.

Applies Mica effect to the window. Works only on Windows 11.

Applies macOS Vibrancy effect to the window. Works only on macOS 10.10 or newer.

Clears Acrylic effect applied to the window. Works only on Windows 10 v1809 or newer and Windows 11.

Clears blur effect applied to the window. Works only on Windows 7, Windows 10 v1809 or newer, and Windows 11.

Clears Mica effect applied to the window. Works only on Windows 10 v1903 or newer and Windows 11.

Type Definitions

a tuple of RGBA colors. Each value has a range of 0 to 255.