pub enum ColorSlot {
Show 28 variants
Primary,
Secondary,
Accent,
Background,
Foreground,
Text,
TextMuted,
TextDisabled,
Surface,
SurfaceAlt,
Success,
Warning,
Error,
Info,
Border,
BorderMuted,
Separator,
Focus,
Selection,
Hover,
CodeKeyword,
CodeString,
CodeNumber,
CodeComment,
CodeFunction,
CodeType,
CodeVariable,
CodeOperator,
}Expand description
Named color slots for referencing theme colors.
Variants§
Primary
Primary brand/accent color.
Secondary
Secondary accent color.
Accent
Highlight/accent color.
Background
Background color.
Foreground
Foreground/text color (alias of Text).
Text
Primary text color.
TextMuted
Muted/secondary text color.
TextDisabled
Disabled text color.
Surface
Elevated surface color.
SurfaceAlt
Alternative surface color.
Success
Success/positive color.
Warning
Warning color.
Error
Error/danger color.
Info
Informational color.
Border
Border color.
BorderMuted
Subtle border color.
Separator
Divider/separator color.
Focus
Focus indicator color.
Selection
Selection/background highlight color.
Hover
Hover state color.
CodeKeyword
Code/syntax keyword color.
CodeString
Code/syntax string color.
CodeNumber
Code/syntax number color.
CodeComment
Code/syntax comment color.
CodeFunction
Code/syntax function color.
CodeType
Code/syntax type color.
CodeVariable
Code/syntax variable color.
CodeOperator
Code/syntax operator color.
Trait Implementations§
impl Copy for ColorSlot
impl Eq for ColorSlot
impl StructuralPartialEq for ColorSlot
Auto Trait Implementations§
impl Freeze for ColorSlot
impl RefUnwindSafe for ColorSlot
impl Send for ColorSlot
impl Sync for ColorSlot
impl Unpin for ColorSlot
impl UnwindSafe for ColorSlot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.