Struct conciliator::style::Palette
source · pub struct Palette {
pub tag: ColorCode,
pub alpha: ColorCode,
pub beta: ColorCode,
pub gamma: ColorCode,
pub delta: ColorCode,
pub zeta: ColorCode,
pub iota: ColorCode,
pub omega: ColorCode,
}
Expand description
Provides a simplified and unified set of ColorCode
s, i.e. a color palette
It simplifies the use of a small and consistent color palette across the entire application (or even many different applications). Additionally, it becomes possible to swap out the entire color palette to suit the users tastes and terminal color scheme.
Currently implemented (subject to change) using a static PALETTE
which can be read using Color::get_from_static
.
Fields§
§tag: ColorCode
Color of the tag brackets [ ]
alpha: ColorCode
Color of the status
tag symbol
beta: ColorCode
Color of the info
tag symbol
gamma: ColorCode
Color of the warn
tag symbol
delta: ColorCode
Color of the error
tag symbol
zeta: ColorCode
Spare color
iota: ColorCode
Spare color
omega: ColorCode
Color of the tree branches
Trait Implementations§
source§impl PartialEq for Palette
impl PartialEq for Palette
impl Copy for Palette
impl Eq for Palette
impl StructuralPartialEq for Palette
Auto Trait Implementations§
impl RefUnwindSafe for Palette
impl Send for Palette
impl Sync for Palette
impl Unpin for Palette
impl UnwindSafe for Palette
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<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.