config: macos blur settings enable blur on non-Mac

pull/8801/head
Mitchell Hashimoto 2025-12-15 11:00:53 -08:00
parent 8482e0777d
commit 4e10f27be4
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 8 additions and 0 deletions

View File

@ -933,6 +933,9 @@ palette: Palette = .{},
/// * `macos-glass-regular` - Standard glass effect with some opacity /// * `macos-glass-regular` - Standard glass effect with some opacity
/// * `macos-glass-clear` - Highly transparent glass effect /// * `macos-glass-clear` - Highly transparent glass effect
/// ///
/// If the macOS values are set, then this implies `background-blur = true`
/// on non-macOS platforms.
///
/// Supported on macOS and on some Linux desktop environments, including: /// Supported on macOS and on some Linux desktop environments, including:
/// ///
/// * KDE Plasma (Wayland and X11) /// * KDE Plasma (Wayland and X11)
@ -8368,6 +8371,11 @@ pub const BackgroundBlur = union(enum) {
.false => false, .false => false,
.true => true, .true => true,
.radius => |v| v > 0, .radius => |v| v > 0,
// We treat these as true because they both imply some blur!
// This has the effect of making the standard blur happen on
// Linux.
.@"macos-glass-regular", .@"macos-glass-clear" => true,
}; };
} }