1use gpui2::rgba;
2
3use crate::{PlayerTheme, SyntaxTheme, Theme, ThemeMetadata};
4
5pub fn rose_pine() -> Theme {
6 Theme {
7 metadata: ThemeMetadata {
8 name: "Rosé Pine".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(0x423f55ff).into(),
16 border_variant: rgba(0x423f55ff).into(),
17 border_focused: rgba(0x435255ff).into(),
18 border_transparent: rgba(0x00000000).into(),
19 elevated_surface: rgba(0x292738ff).into(),
20 surface: rgba(0x1c1b2aff).into(),
21 background: rgba(0x292738ff).into(),
22 filled_element: rgba(0x292738ff).into(),
23 filled_element_hover: rgba(0xffffff1e).into(),
24 filled_element_active: rgba(0xffffff28).into(),
25 filled_element_selected: rgba(0x2f3639ff).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(0x2f3639ff).into(),
31 ghost_element_disabled: rgba(0x00000000).into(),
32 text: rgba(0xe0def4ff).into(),
33 text_muted: rgba(0x74708dff).into(),
34 text_placeholder: rgba(0xea6e92ff).into(),
35 text_disabled: rgba(0x2f2b43ff).into(),
36 text_accent: rgba(0x9bced6ff).into(),
37 icon_muted: rgba(0x74708dff).into(),
38 syntax: SyntaxTheme {
39 comment: rgba(0x6e6a86ff).into(),
40 string: rgba(0xf5c177ff).into(),
41 function: rgba(0xebbcbaff).into(),
42 keyword: rgba(0x30738fff).into(),
43 highlights: Vec::new(),
44 },
45 status_bar: rgba(0x292738ff).into(),
46 title_bar: rgba(0x292738ff).into(),
47 toolbar: rgba(0x191724ff).into(),
48 tab_bar: rgba(0x1c1b2aff).into(),
49 editor: rgba(0x191724ff).into(),
50 editor_subheader: rgba(0x1c1b2aff).into(),
51 editor_active_line: rgba(0x1c1b2aff).into(),
52 terminal: rgba(0x191724ff).into(),
53 image_fallback_background: rgba(0x292738ff).into(),
54 git_created: rgba(0x5cc1a3ff).into(),
55 git_modified: rgba(0x9bced6ff).into(),
56 git_deleted: rgba(0xea6e92ff).into(),
57 git_conflict: rgba(0xf5c177ff).into(),
58 git_ignored: rgba(0x2f2b43ff).into(),
59 git_renamed: rgba(0xf5c177ff).into(),
60 players: [
61 PlayerTheme {
62 cursor: rgba(0x9bced6ff).into(),
63 selection: rgba(0x9bced63d).into(),
64 },
65 PlayerTheme {
66 cursor: rgba(0x5cc1a3ff).into(),
67 selection: rgba(0x5cc1a33d).into(),
68 },
69 PlayerTheme {
70 cursor: rgba(0x9d7591ff).into(),
71 selection: rgba(0x9d75913d).into(),
72 },
73 PlayerTheme {
74 cursor: rgba(0xc4a7e6ff).into(),
75 selection: rgba(0xc4a7e63d).into(),
76 },
77 PlayerTheme {
78 cursor: rgba(0xc4a7e6ff).into(),
79 selection: rgba(0xc4a7e63d).into(),
80 },
81 PlayerTheme {
82 cursor: rgba(0x31738fff).into(),
83 selection: rgba(0x31738f3d).into(),
84 },
85 PlayerTheme {
86 cursor: rgba(0xea6e92ff).into(),
87 selection: rgba(0xea6e923d).into(),
88 },
89 PlayerTheme {
90 cursor: rgba(0xf5c177ff).into(),
91 selection: rgba(0xf5c1773d).into(),
92 },
93 ],
94 }
95}
96
97pub fn rose_pine_dawn() -> Theme {
98 Theme {
99 metadata: ThemeMetadata {
100 name: "Rosé Pine Dawn".into(),
101 is_light: true,
102 },
103 transparent: rgba(0x00000000).into(),
104 mac_os_traffic_light_red: rgba(0xec695eff).into(),
105 mac_os_traffic_light_yellow: rgba(0xf4bf4eff).into(),
106 mac_os_traffic_light_green: rgba(0x61c553ff).into(),
107 border: rgba(0xdcd6d5ff).into(),
108 border_variant: rgba(0xdcd6d5ff).into(),
109 border_focused: rgba(0xc3d7dbff).into(),
110 border_transparent: rgba(0x00000000).into(),
111 elevated_surface: rgba(0xdcd8d8ff).into(),
112 surface: rgba(0xfef9f2ff).into(),
113 background: rgba(0xdcd8d8ff).into(),
114 filled_element: rgba(0xdcd8d8ff).into(),
115 filled_element_hover: rgba(0xffffff1e).into(),
116 filled_element_active: rgba(0xffffff28).into(),
117 filled_element_selected: rgba(0xdde9ebff).into(),
118 filled_element_disabled: rgba(0x00000000).into(),
119 ghost_element: rgba(0x00000000).into(),
120 ghost_element_hover: rgba(0xffffff14).into(),
121 ghost_element_active: rgba(0xffffff1e).into(),
122 ghost_element_selected: rgba(0xdde9ebff).into(),
123 ghost_element_disabled: rgba(0x00000000).into(),
124 text: rgba(0x575279ff).into(),
125 text_muted: rgba(0x706c8cff).into(),
126 text_placeholder: rgba(0xb4647aff).into(),
127 text_disabled: rgba(0x938fa3ff).into(),
128 text_accent: rgba(0x57949fff).into(),
129 icon_muted: rgba(0x706c8cff).into(),
130 syntax: SyntaxTheme {
131 comment: rgba(0x9893a5ff).into(),
132 string: rgba(0xea9d34ff).into(),
133 function: rgba(0xd7827dff).into(),
134 keyword: rgba(0x276983ff).into(),
135 highlights: Vec::new(),
136 },
137 status_bar: rgba(0xdcd8d8ff).into(),
138 title_bar: rgba(0xdcd8d8ff).into(),
139 toolbar: rgba(0xfaf4edff).into(),
140 tab_bar: rgba(0xfef9f2ff).into(),
141 editor: rgba(0xfaf4edff).into(),
142 editor_subheader: rgba(0xfef9f2ff).into(),
143 editor_active_line: rgba(0xfef9f2ff).into(),
144 terminal: rgba(0xfaf4edff).into(),
145 image_fallback_background: rgba(0xdcd8d8ff).into(),
146 git_created: rgba(0x3daa8eff).into(),
147 git_modified: rgba(0x57949fff).into(),
148 git_deleted: rgba(0xb4647aff).into(),
149 git_conflict: rgba(0xe99d35ff).into(),
150 git_ignored: rgba(0x938fa3ff).into(),
151 git_renamed: rgba(0xe99d35ff).into(),
152 players: [
153 PlayerTheme {
154 cursor: rgba(0x57949fff).into(),
155 selection: rgba(0x57949f3d).into(),
156 },
157 PlayerTheme {
158 cursor: rgba(0x3daa8eff).into(),
159 selection: rgba(0x3daa8e3d).into(),
160 },
161 PlayerTheme {
162 cursor: rgba(0x7c697fff).into(),
163 selection: rgba(0x7c697f3d).into(),
164 },
165 PlayerTheme {
166 cursor: rgba(0x9079a9ff).into(),
167 selection: rgba(0x9079a93d).into(),
168 },
169 PlayerTheme {
170 cursor: rgba(0x9079a9ff).into(),
171 selection: rgba(0x9079a93d).into(),
172 },
173 PlayerTheme {
174 cursor: rgba(0x296983ff).into(),
175 selection: rgba(0x2969833d).into(),
176 },
177 PlayerTheme {
178 cursor: rgba(0xb4647aff).into(),
179 selection: rgba(0xb4647a3d).into(),
180 },
181 PlayerTheme {
182 cursor: rgba(0xe99d35ff).into(),
183 selection: rgba(0xe99d353d).into(),
184 },
185 ],
186 }
187}
188
189pub fn rose_pine_moon() -> Theme {
190 Theme {
191 metadata: ThemeMetadata {
192 name: "Rosé Pine Moon".into(),
193 is_light: false,
194 },
195 transparent: rgba(0x00000000).into(),
196 mac_os_traffic_light_red: rgba(0xec695eff).into(),
197 mac_os_traffic_light_yellow: rgba(0xf4bf4eff).into(),
198 mac_os_traffic_light_green: rgba(0x61c553ff).into(),
199 border: rgba(0x504c68ff).into(),
200 border_variant: rgba(0x504c68ff).into(),
201 border_focused: rgba(0x435255ff).into(),
202 border_transparent: rgba(0x00000000).into(),
203 elevated_surface: rgba(0x38354eff).into(),
204 surface: rgba(0x28253cff).into(),
205 background: rgba(0x38354eff).into(),
206 filled_element: rgba(0x38354eff).into(),
207 filled_element_hover: rgba(0xffffff1e).into(),
208 filled_element_active: rgba(0xffffff28).into(),
209 filled_element_selected: rgba(0x2f3639ff).into(),
210 filled_element_disabled: rgba(0x00000000).into(),
211 ghost_element: rgba(0x00000000).into(),
212 ghost_element_hover: rgba(0xffffff14).into(),
213 ghost_element_active: rgba(0xffffff1e).into(),
214 ghost_element_selected: rgba(0x2f3639ff).into(),
215 ghost_element_disabled: rgba(0x00000000).into(),
216 text: rgba(0xe0def4ff).into(),
217 text_muted: rgba(0x85819eff).into(),
218 text_placeholder: rgba(0xea6e92ff).into(),
219 text_disabled: rgba(0x605d7aff).into(),
220 text_accent: rgba(0x9bced6ff).into(),
221 icon_muted: rgba(0x85819eff).into(),
222 syntax: SyntaxTheme {
223 comment: rgba(0x6e6a86ff).into(),
224 string: rgba(0xf5c177ff).into(),
225 function: rgba(0xea9a97ff).into(),
226 keyword: rgba(0x3d8fb0ff).into(),
227 highlights: Vec::new(),
228 },
229 status_bar: rgba(0x38354eff).into(),
230 title_bar: rgba(0x38354eff).into(),
231 toolbar: rgba(0x232136ff).into(),
232 tab_bar: rgba(0x28253cff).into(),
233 editor: rgba(0x232136ff).into(),
234 editor_subheader: rgba(0x28253cff).into(),
235 editor_active_line: rgba(0x28253cff).into(),
236 terminal: rgba(0x232136ff).into(),
237 image_fallback_background: rgba(0x38354eff).into(),
238 git_created: rgba(0x5cc1a3ff).into(),
239 git_modified: rgba(0x9bced6ff).into(),
240 git_deleted: rgba(0xea6e92ff).into(),
241 git_conflict: rgba(0xf5c177ff).into(),
242 git_ignored: rgba(0x605d7aff).into(),
243 git_renamed: rgba(0xf5c177ff).into(),
244 players: [
245 PlayerTheme {
246 cursor: rgba(0x9bced6ff).into(),
247 selection: rgba(0x9bced63d).into(),
248 },
249 PlayerTheme {
250 cursor: rgba(0x5cc1a3ff).into(),
251 selection: rgba(0x5cc1a33d).into(),
252 },
253 PlayerTheme {
254 cursor: rgba(0xa683a0ff).into(),
255 selection: rgba(0xa683a03d).into(),
256 },
257 PlayerTheme {
258 cursor: rgba(0xc4a7e6ff).into(),
259 selection: rgba(0xc4a7e63d).into(),
260 },
261 PlayerTheme {
262 cursor: rgba(0xc4a7e6ff).into(),
263 selection: rgba(0xc4a7e63d).into(),
264 },
265 PlayerTheme {
266 cursor: rgba(0x3e8fb0ff).into(),
267 selection: rgba(0x3e8fb03d).into(),
268 },
269 PlayerTheme {
270 cursor: rgba(0xea6e92ff).into(),
271 selection: rgba(0xea6e923d).into(),
272 },
273 PlayerTheme {
274 cursor: rgba(0xf5c177ff).into(),
275 selection: rgba(0xf5c1773d).into(),
276 },
277 ],
278 }
279}