ratatui_toolkit/services/theme/theme_variant/traits/
display.rs

1//! Display trait implementation for [`ThemeVariant`].
2
3use std::fmt;
4
5use crate::services::theme::ThemeVariant;
6
7impl fmt::Display for ThemeVariant {
8    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
9        match self {
10            ThemeVariant::Dark => write!(f, "dark"),
11            ThemeVariant::Light => write!(f, "light"),
12        }
13    }
14}