default_theme.rs

 1use crate::{
 2    one_themes::{one_dark, one_family},
 3    Theme, ThemeFamily,
 4};
 5
 6// fn zed_pro_daylight() -> Theme {
 7//     Theme {
 8//         id: "zed_pro_daylight".to_string(),
 9//         name: "Zed Pro Daylight".into(),
10//         appearance: Appearance::Light,
11//         styles: ThemeStyles {
12//             system: SystemColors::default(),
13//             colors: ThemeColors::light(),
14//             status: StatusColors::light(),
15//             player: PlayerColors::light(),
16//             syntax: Arc::new(SyntaxTheme::light()),
17//         },
18//     }
19// }
20
21// pub(crate) fn zed_pro_moonlight() -> Theme {
22//     Theme {
23//         id: "zed_pro_moonlight".to_string(),
24//         name: "Zed Pro Moonlight".into(),
25//         appearance: Appearance::Dark,
26//         styles: ThemeStyles {
27//             system: SystemColors::default(),
28//             colors: ThemeColors::dark(),
29//             status: StatusColors::dark(),
30//             player: PlayerColors::dark(),
31//             syntax: Arc::new(SyntaxTheme::dark()),
32//         },
33//     }
34// }
35
36// pub fn zed_pro_family() -> ThemeFamily {
37//     ThemeFamily {
38//         id: "zed_pro".to_string(),
39//         name: "Zed Pro".into(),
40//         author: "Zed Team".into(),
41//         themes: vec![zed_pro_daylight(), zed_pro_moonlight()],
42//         scales: default_color_scales(),
43//     }
44// }
45
46impl Default for ThemeFamily {
47    fn default() -> Self {
48        one_family()
49    }
50}
51
52impl Default for Theme {
53    fn default() -> Self {
54        one_dark()
55    }
56}