thaw/thaw_mobile/nav_bar/theme.rs
2024-06-26 22:32:13 +08:00

20 lines
353 B
Rust

use crate::theme::ThemeMethod;
#[derive(Clone)]
pub struct NavBarTheme {
pub background_color: String,
}
impl ThemeMethod for NavBarTheme {
fn light() -> Self {
Self {
background_color: "#fff".into(),
}
}
fn dark() -> Self {
Self {
background_color: "#323233".into(),
}
}
}