use super::color::Colors;
use super::graphics::Graphics;
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
pub struct Theme {
pub colors: Colors,
pub lines: Graphics,
pub align_to_values: bool,
}
impl Theme {
pub const fn new() -> Self {
Self {
colors: Colors::new(),
lines: Graphics::new(),
align_to_values: false,
}
}
pub const fn colors(mut self, colors: Colors) -> Self {
self.colors = colors;
self
}
pub const fn lines(mut self, lines: Graphics) -> Self {
self.lines = lines;
self
}
pub const fn align_to_values(mut self, align_to_values: bool) -> Self {
self.align_to_values = align_to_values;
self
}
}
impl Default for Theme {
fn default() -> Self {
Self::new()
}
}