2023-09-21 21:57:34 +08:00
|
|
|
use crate::theme::ThemeMethod;
|
|
|
|
|
|
|
|
#[derive(Clone)]
|
|
|
|
pub struct MenuTheme {
|
|
|
|
pub color: String,
|
|
|
|
pub item_color_hover: String,
|
2023-10-05 00:58:53 +08:00
|
|
|
pub group_color: String,
|
2023-09-21 21:57:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
impl ThemeMethod for MenuTheme {
|
|
|
|
fn light() -> Self {
|
|
|
|
Self {
|
2023-10-05 00:58:53 +08:00
|
|
|
color: "#4b5263".into(),
|
2023-09-21 21:57:34 +08:00
|
|
|
item_color_hover: "#f3f5f6".into(),
|
2023-10-05 00:58:53 +08:00
|
|
|
group_color: "#111727".into(),
|
2023-09-21 21:57:34 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn dark() -> Self {
|
|
|
|
Self {
|
2023-10-05 00:58:53 +08:00
|
|
|
color: "#4b5263".into(),
|
2023-09-21 21:57:34 +08:00
|
|
|
item_color_hover: "#f3f5f6".into(),
|
2023-10-05 00:58:53 +08:00
|
|
|
group_color: "#111727".into(),
|
2023-09-21 21:57:34 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|