Enum conciliator::style::Color
source · pub enum Color {
Alpha,
Beta,
Gamma,
Delta,
Zeta,
Iota,
Omega,
}
Expand description
Color in the color Palette
The variants are not named after any (actual) colors, since these come from the Palette
and may be changed.
Nonetheless, it is intended that the variants specify some meaning / intention about the actual colors they will be resolved to and, importantly, the role and visual impact they have in relation to the color scheme as a whole.
Currently these semantics are not very fleshed out, except to say that:
Alpha
andBeta
are used for the most commonTags
, which makes them the most generally suitableGamma
andDelta
are used for warnings and errors respectively and should therefore only be used sparinglyZeta
andIota
are ill-defined, but perhaps they can be considered niche versions ofAlpha
andBeta
Omega
is used for various decorations and is a color with low visual impact, specifically that it is less prominent (i.e. closer to the background color) than plain/normal text.
There are some implications for the amount of contrast between pairs of colors (perhaps Gamma
and Delta
should be fairly similar colors), but this needs to be refined.
Variants§
Alpha
Used for the status tag, generally suitable
Beta
Used for the info tag, generally suitable
Gamma
Used for the warn tag, use sparingly
Delta
Used for the error tag, use sparingly
Zeta
Spare color
Iota
Spare color
Omega
Low intensity color
Implementations§
Trait Implementations§
source§impl PartialEq for Color
impl PartialEq for Color
impl Copy for Color
impl Eq for Color
impl StructuralPartialEq for Color
Auto Trait Implementations§
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin 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
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
key
and return true
if they are equal.