use crate::host::HostApiError;
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Theme {
Light,
Dark,
}
impl Theme {
pub fn as_str(&self) -> &'static str {
match self {
Theme::Light => "light",
Theme::Dark => "dark",
}
}
}
pub trait ThemeProvider: Send + Sync {
fn current_system_theme(&self) -> Result<Theme, HostApiError>;
}