pub enum CupertinoUserInterfaceLevelData {
Base,
Elevated,
}Expand description
How high a piece of interface sits: on the window’s own surface, or raised above it — a sheet, a dialog, a popover.
An adaptive colour has a variant for each, and in a dark interface they differ: the background of a raised sheet is a little lighter than the page under it, which is how a dark interface shows depth without shadows. In a light one they are nearly all the same.
A subtree says which it is with around; the theme carries the answer
(Theme::user_interface_level), and CupertinoDynamicColor::resolve reads it there.
Variants§
Base
The window’s own surface. What everything is, until something says otherwise.
Elevated
Raised above it: a sheet, a dialog, a popover.
Implementations§
Trait Implementations§
impl Copy for CupertinoUserInterfaceLevelData
impl Eq for CupertinoUserInterfaceLevelData
impl StructuralPartialEq for CupertinoUserInterfaceLevelData
Auto Trait Implementations§
impl Freeze for CupertinoUserInterfaceLevelData
impl RefUnwindSafe for CupertinoUserInterfaceLevelData
impl Send for CupertinoUserInterfaceLevelData
impl Sync for CupertinoUserInterfaceLevelData
impl Unpin for CupertinoUserInterfaceLevelData
impl UnsafeUnpin for CupertinoUserInterfaceLevelData
impl UnwindSafe for CupertinoUserInterfaceLevelData
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