pub enum Color {
Gray,
Primary,
Success,
Warning,
Danger,
Info,
}Expand description
A semantic color for a badge, a status dot or a cell’s text.
Each maps to a theme token (--success, --warning, --info, --destructive,
--primary, --muted-foreground), so a theme that redeclares the token recolors every cell
that uses it.
#[derive(tablo_core::Options)]
enum Status {
#[option(color = "warning")]
Pending,
#[option(color = "success")]
Paid,
#[option(color = "danger")]
Refunded,
}Variants§
Gray
A neutral, muted status.
Primary
The theme’s primary color.
Success
Done, paid, active.
Warning
Pending, expiring, low.
Danger
Failed, refunded, overdue.
Info
Informational, in progress.
Trait Implementations§
impl Copy for Color
impl Eq for Color
impl StructuralPartialEq for Color
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnsafeUnpin for Color
impl UnwindSafe for Color
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> CloneAny for T
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.