pub struct WindowEffectsConfig {
pub effects: Vec<WindowEffect>,
pub state: Option<WindowEffectState>,
pub radius: Option<f64>,
pub color: Option<Color>,
pub interactive: bool,
}Expand description
The window effects configuration object
Fields§
§effects: Vec<WindowEffect>List of Window effects to apply to the Window.
Generally, conflicting effects will apply the first one and ignore the rest but on macOS you can specify one Liquid Glass style and one Visual Effect material at the same time to make Tauri fallback to the latter on macOS 15 and below.
state: Option<WindowEffectState>Window effect state macOS Only. Ignored for Liquid Glass Effects.
radius: Option<f64>Window effect corner radius macOS Only
color: Option<Color>Window effect color.
§Platform-specific
- Windows: Affects
WindowEffect::BlurandWindowEffect::Acryliconly on Windows 10 v1903+. Doesn’t have any effect on Windows 7 or Windows 11. - macOS: Only affects Liquid Glass effects.
interactive: boolEnables interactive glass behavior, which adds a visual response to user interactions.
macOS 27.0+. Only affects Liquid Glass effects.
Trait Implementations§
Source§impl Clone for WindowEffectsConfig
impl Clone for WindowEffectsConfig
Source§impl Debug for WindowEffectsConfig
impl Debug for WindowEffectsConfig
Source§impl Default for WindowEffectsConfig
impl Default for WindowEffectsConfig
Source§impl<'de> Deserialize<'de> for WindowEffectsConfig
impl<'de> Deserialize<'de> for WindowEffectsConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WindowEffectsConfig
impl PartialEq for WindowEffectsConfig
Source§impl Serialize for WindowEffectsConfig
impl Serialize for WindowEffectsConfig
impl StructuralPartialEq for WindowEffectsConfig
Auto Trait Implementations§
impl Freeze for WindowEffectsConfig
impl RefUnwindSafe for WindowEffectsConfig
impl Send for WindowEffectsConfig
impl Sync for WindowEffectsConfig
impl Unpin for WindowEffectsConfig
impl UnsafeUnpin for WindowEffectsConfig
impl UnwindSafe for WindowEffectsConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more