pub enum SurfaceRole {
Background,
Card,
Primary,
Secondary,
Muted,
Accent,
Destructive,
Success,
Warning,
}Expand description
Semantic surface role pairing a background with its guaranteed-readable foreground and border.
Variants§
Background
Application canvas (background / foreground).
Card
Elevated card / popover surface (card / card_foreground).
Primary
Brand / active / selected surface (primary / primary_foreground).
Secondary
Secondary button surface (secondary / secondary_foreground).
Muted
Muted track / subtle fill (muted / foreground).
Accent
Neutral hover / highlight surface (accent / readable foreground).
Destructive
Destructive surface (destructive / destructive_foreground).
Success
Success surface (success / success_foreground).
Warning
Warning surface (warning / warning_foreground).
Trait Implementations§
Source§impl Clone for SurfaceRole
impl Clone for SurfaceRole
impl Copy for SurfaceRole
Source§impl Debug for SurfaceRole
impl Debug for SurfaceRole
Source§impl Default for SurfaceRole
impl Default for SurfaceRole
impl Eq for SurfaceRole
Source§impl Hash for SurfaceRole
impl Hash for SurfaceRole
Source§impl PartialEq for SurfaceRole
impl PartialEq for SurfaceRole
impl StructuralPartialEq for SurfaceRole
Auto Trait Implementations§
impl Forget for SurfaceRole
impl Freeze for SurfaceRole
impl Move for SurfaceRole
impl RefUnwindSafe for SurfaceRole
impl Send for SurfaceRole
impl Sync for SurfaceRole
impl Unpin for SurfaceRole
impl UnsafeUnpin for SurfaceRole
impl UnwindSafe for SurfaceRole
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