use self::Theme::*;
use std::fmt;
#[non_exhaustive]
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
pub enum Theme {
#[default]
Light,
Dark,
Custom(&'static str),
}
impl fmt::Display for Theme {
#[inline]
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let theme = match self {
Light => "light",
Dark => "dark",
Custom(name) => name,
};
write!(f, "{theme}")
}
}