#[repr(usize)]pub enum ColorRole {
Canvas = 0,
Surface = 1,
Text = 2,
MutedText = 3,
Accent = 4,
Success = 5,
Warning = 6,
Danger = 7,
Focus = 8,
Border = 9,
DisabledText = 10,
}Expand description
Order for Palette::try_new_srgb. All roles except Canvas/Surface are
foregrounds on BOTH backgrounds. Focus/Border are non-text marks; all other
foreground roles must satisfy the small-text threshold.
Variants§
Canvas = 0
Surface = 1
Text = 2
MutedText = 3
Accent = 4
Success = 5
Warning = 6
Danger = 7
Focus = 8
Border = 9
DisabledText = 10
Implementations§
Trait Implementations§
impl Copy for ColorRole
impl Eq for ColorRole
impl StructuralPartialEq for ColorRole
Auto Trait Implementations§
impl Freeze for ColorRole
impl RefUnwindSafe for ColorRole
impl Send for ColorRole
impl Sync for ColorRole
impl Unpin for ColorRole
impl UnwindSafe for ColorRole
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