melt_ui/slider/theme.rs
1use crate::theme::ThemeMethod;
2
3#[derive(Clone)]
4pub struct SliderTheme {
5 pub background_color: String,
6}
7
8impl ThemeMethod for SliderTheme {
9 fn light() -> Self {
10 Self {
11 background_color: "#dbdbdf".into(),
12 }
13 }
14
15 fn dark() -> Self {
16 Self {
17 background_color: "#ffffff33".into(),
18 }
19 }
20}