pub enum WindowEffect {
Show 27 variants
AppearanceBased,
Light,
Dark,
MediumLight,
UltraDark,
Titlebar,
Selection,
Menu,
Popover,
Sidebar,
HeaderView,
Sheet,
WindowBackground,
HudWindow,
FullScreenUI,
Tooltip,
ContentBackground,
UnderWindowBackground,
UnderPageBackground,
Mica,
MicaDark,
MicaLight,
Tabbed,
TabbedDark,
TabbedLight,
Blur,
Acrylic,
}
Expand description
Platform-specific window effects
Variants§
AppearanceBased
A default material appropriate for the view’s effectiveAppearance. macOS 10.14-
Light
macOS 10.14-
Dark
macOS 10.14-
MediumLight
macOS 10.14-
UltraDark
macOS 10.14-
Titlebar
macOS 10.10+
Selection
macOS 10.10+
Menu
macOS 10.11+
Popover
macOS 10.11+
Sidebar
macOS 10.11+
HeaderView
macOS 10.14+
Sheet
macOS 10.14+
WindowBackground
macOS 10.14+
HudWindow
macOS 10.14+
FullScreenUI
macOS 10.14+
Tooltip
macOS 10.14+
ContentBackground
macOS 10.14+
UnderWindowBackground
macOS 10.14+
UnderPageBackground
macOS 10.14+
Mica
Mica effect that matches the system dark perefence Windows 11 Only
MicaDark
Mica effect with dark mode but only if dark mode is enabled on the system Windows 11 Only
MicaLight
Mica effect with light mode Windows 11 Only
Tabbed
Tabbed effect that matches the system dark perefence Windows 11 Only
TabbedDark
Tabbed effect with dark mode but only if dark mode is enabled on the system Windows 11 Only
TabbedLight
Tabbed effect with light mode Windows 11 Only
Blur
Windows 7/10/11(22H1) Only
§Notes
This effect has bad performance when resizing/dragging the window on Windows 11 build 22621.
Acrylic
Windows 10/11 Only
§Notes
This effect has bad performance when resizing/dragging the window on Windows 10 v1903+ and Windows 11 build 22000.
Trait Implementations§
Source§impl Clone for WindowEffect
impl Clone for WindowEffect
Source§fn clone(&self) -> WindowEffect
fn clone(&self) -> WindowEffect
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for WindowEffect
impl Debug for WindowEffect
Source§impl<'de> Deserialize<'de> for WindowEffect
impl<'de> Deserialize<'de> for WindowEffect
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>,
Source§impl PartialEq for WindowEffect
impl PartialEq for WindowEffect
Source§impl Serialize for WindowEffect
impl Serialize for WindowEffect
impl Copy for WindowEffect
impl Eq for WindowEffect
impl StructuralPartialEq for WindowEffect
Auto Trait Implementations§
impl Freeze for WindowEffect
impl RefUnwindSafe for WindowEffect
impl Send for WindowEffect
impl Sync for WindowEffect
impl Unpin for WindowEffect
impl UnwindSafe for WindowEffect
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.