pub use crossterm::style::Color;
#[derive(Clone, Copy, PartialEq, Eq)]
pub struct Style {
pub foreground: Color,
pub background: Color,
}
impl Default for Style {
fn default() -> Self {
Style {
foreground: Color::Reset,
background: Color::Reset,
}
}
}
impl Style {
pub fn foreground(mut self, color: Color) -> Self {
self.foreground = color;
self
}
pub fn background(mut self, color: Color) -> Self {
self.background = color;
self
}
}