pub enum ThemeRole {
Primary,
Secondary,
Background,
Foreground,
Muted,
Border,
Success,
Warning,
Error,
Info,
Surface,
Highlight,
}Expand description
Semantic color roles available in every Theme.
Roles are stable tokens for application code. Prefer roles over direct field access when storing user preferences or mapping design-system names.
Variants§
Implementations§
Trait Implementations§
impl Copy for ThemeRole
impl Eq for ThemeRole
impl StructuralPartialEq for ThemeRole
Auto Trait Implementations§
impl Freeze for ThemeRole
impl RefUnwindSafe for ThemeRole
impl Send for ThemeRole
impl Sync for ThemeRole
impl Unpin for ThemeRole
impl UnsafeUnpin for ThemeRole
impl UnwindSafe for ThemeRole
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