1use gpui2::rgba;
2
3use crate::{PlayerTheme, SyntaxTheme, Theme, ThemeMetadata};
4
5pub fn one_dark() -> Theme {
6 Theme {
7 metadata: ThemeMetadata {
8 name: "One Dark".into(),
9 is_light: false,
10 },
11 transparent: rgba(0x00000000).into(),
12 mac_os_traffic_light_red: rgba(0xec695eff).into(),
13 mac_os_traffic_light_yellow: rgba(0xf4bf4eff).into(),
14 mac_os_traffic_light_green: rgba(0x61c553ff).into(),
15 border: rgba(0x464b57ff).into(),
16 border_variant: rgba(0x464b57ff).into(),
17 border_focused: rgba(0x293b5bff).into(),
18 border_transparent: rgba(0x00000000).into(),
19 elevated_surface: rgba(0x3b414dff).into(),
20 surface: rgba(0x2f343eff).into(),
21 background: rgba(0x3b414dff).into(),
22 filled_element: rgba(0x3b414dff).into(),
23 filled_element_hover: rgba(0xffffff1e).into(),
24 filled_element_active: rgba(0xffffff28).into(),
25 filled_element_selected: rgba(0x18243dff).into(),
26 filled_element_disabled: rgba(0x00000000).into(),
27 ghost_element: rgba(0x00000000).into(),
28 ghost_element_hover: rgba(0xffffff14).into(),
29 ghost_element_active: rgba(0xffffff1e).into(),
30 ghost_element_selected: rgba(0x18243dff).into(),
31 ghost_element_disabled: rgba(0x00000000).into(),
32 text: rgba(0xc8ccd4ff).into(),
33 text_muted: rgba(0x838994ff).into(),
34 text_placeholder: rgba(0xd07277ff).into(),
35 text_disabled: rgba(0x555a63ff).into(),
36 text_accent: rgba(0x74ade8ff).into(),
37 icon_muted: rgba(0x838994ff).into(),
38 syntax: SyntaxTheme {
39 comment: rgba(0x5d636fff).into(),
40 string: rgba(0xa1c181ff).into(),
41 function: rgba(0x73ade9ff).into(),
42 keyword: rgba(0xb477cfff).into(),
43 highlights: Vec::new(),
44 },
45 status_bar: rgba(0x3b414dff).into(),
46 title_bar: rgba(0x3b414dff).into(),
47 toolbar: rgba(0x282c33ff).into(),
48 tab_bar: rgba(0x2f343eff).into(),
49 editor: rgba(0x282c33ff).into(),
50 editor_subheader: rgba(0x2f343eff).into(),
51 editor_active_line: rgba(0x2f343eff).into(),
52 terminal: rgba(0x282c33ff).into(),
53 image_fallback_background: rgba(0x3b414dff).into(),
54 git_created: rgba(0xa1c181ff).into(),
55 git_modified: rgba(0x74ade8ff).into(),
56 git_deleted: rgba(0xd07277ff).into(),
57 git_conflict: rgba(0xdec184ff).into(),
58 git_ignored: rgba(0x555a63ff).into(),
59 git_renamed: rgba(0xdec184ff).into(),
60 players: [
61 PlayerTheme {
62 cursor: rgba(0x74ade8ff).into(),
63 selection: rgba(0x74ade83d).into(),
64 },
65 PlayerTheme {
66 cursor: rgba(0xa1c181ff).into(),
67 selection: rgba(0xa1c1813d).into(),
68 },
69 PlayerTheme {
70 cursor: rgba(0xbe5046ff).into(),
71 selection: rgba(0xbe50463d).into(),
72 },
73 PlayerTheme {
74 cursor: rgba(0xbf956aff).into(),
75 selection: rgba(0xbf956a3d).into(),
76 },
77 PlayerTheme {
78 cursor: rgba(0xb477cfff).into(),
79 selection: rgba(0xb477cf3d).into(),
80 },
81 PlayerTheme {
82 cursor: rgba(0x6eb4bfff).into(),
83 selection: rgba(0x6eb4bf3d).into(),
84 },
85 PlayerTheme {
86 cursor: rgba(0xd07277ff).into(),
87 selection: rgba(0xd072773d).into(),
88 },
89 PlayerTheme {
90 cursor: rgba(0xdec184ff).into(),
91 selection: rgba(0xdec1843d).into(),
92 },
93 ],
94 }
95}