#[derive(Clone, Copy, Debug, PartialEq)]
pub struct Style(owo_colors::Style);
impl Style {
#[must_use]
pub const fn new() -> Self {
Self(owo_colors::Style::new())
}
#[must_use]
pub const fn truecolor(self, r: u8, g: u8, b: u8) -> Self {
Self(self.0.truecolor(r, g, b))
}
#[must_use]
pub const fn bold(self) -> Self {
Self(self.0.bold())
}
#[must_use]
pub const fn dimmed(self) -> Self {
Self(self.0.dimmed())
}
#[must_use]
pub(crate) const fn into_owo(self) -> owo_colors::Style {
self.0
}
}
impl Default for Style {
#[inline]
fn default() -> Self {
Self::new()
}
}