pub enum Accent {
Blue,
Green,
Red,
Purple,
Amber,
Sky,
}Expand description
The six accent colours supported by elegance.
Every accent has a resting and a pressed/hover shade. These drive
Button, the segmented button’s on state, and any
other accent-tinted widget. Structural treatments like the outline
button are widget options (e.g. Button::outline),
not accents.
Variants§
Blue
Primary blue — the default button accent.
Green
Green — affirmative actions (Deploy, Save).
Red
Red — destructive actions (Delete, Rollback).
Purple
Purple — neutral-positive actions or brand moments.
Amber
Amber — caution-leaning actions that aren’t destructive.
Sky
Sky — the same colour used for focus rings and active states.
Trait Implementations§
impl Copy for Accent
impl Eq for Accent
impl StructuralPartialEq for Accent
Auto Trait Implementations§
impl Freeze for Accent
impl RefUnwindSafe for Accent
impl Send for Accent
impl Sync for Accent
impl Unpin for Accent
impl UnsafeUnpin for Accent
impl UnwindSafe for Accent
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