solarized.rs

  1// This file was generated by the `theme_importer`.
  2// Be careful when modifying it by hand.
  3
  4use gpui::rgba;
  5
  6#[allow(unused)]
  7use crate::{
  8    Appearance, StatusColorsRefinement, ThemeColorsRefinement, UserFontStyle, UserFontWeight,
  9    UserHighlightStyle, UserSyntaxTheme, UserTheme, UserThemeFamily, UserThemeStylesRefinement,
 10};
 11
 12pub fn solarized() -> UserThemeFamily {
 13    UserThemeFamily {
 14        name: "Solarized".into(),
 15        author: "Ethan Schoonover (altercation)".into(),
 16        themes: vec![
 17            UserTheme {
 18                name: "Solarized Dark".into(),
 19                appearance: Appearance::Dark,
 20                styles: UserThemeStylesRefinement {
 21                    colors: ThemeColorsRefinement {
 22                        border: Some(rgba(0x003847ff).into()),
 23                        border_variant: Some(rgba(0x003847ff).into()),
 24                        border_focused: Some(rgba(0x29a19899).into()),
 25                        border_selected: Some(rgba(0x003847ff).into()),
 26                        border_transparent: Some(rgba(0x003847ff).into()),
 27                        border_disabled: Some(rgba(0x003847ff).into()),
 28                        background: Some(rgba(0x002a35ff).into()),
 29                        element_background: Some(rgba(0x29a19899).into()),
 30                        element_hover: Some(rgba(0x004353aa).into()),
 31                        element_selected: Some(rgba(0x005a6fff).into()),
 32                        drop_target_background: Some(rgba(0x00435388).into()),
 33                        ghost_element_hover: Some(rgba(0x004353aa).into()),
 34                        text: Some(rgba(0xbbbbbbff).into()),
 35                        tab_inactive_background: Some(rgba(0x003f51ff).into()),
 36                        tab_active_background: Some(rgba(0x002a36ff).into()),
 37                        editor_background: Some(rgba(0x002a35ff).into()),
 38                        editor_gutter_background: Some(rgba(0x002a35ff).into()),
 39                        editor_line_number: Some(rgba(0x566c74ff).into()),
 40                        terminal_ansi_bright_black: Some(rgba(0x586e75ff).into()),
 41                        terminal_ansi_bright_red: Some(rgba(0xcb4b15ff).into()),
 42                        terminal_ansi_bright_green: Some(rgba(0x859900ff).into()),
 43                        terminal_ansi_bright_yellow: Some(rgba(0x657b83ff).into()),
 44                        terminal_ansi_bright_blue: Some(rgba(0x839496ff).into()),
 45                        terminal_ansi_bright_magenta: Some(rgba(0x6c71c4ff).into()),
 46                        terminal_ansi_bright_cyan: Some(rgba(0x93a1a1ff).into()),
 47                        terminal_ansi_bright_white: Some(rgba(0x839496ff).into()),
 48                        terminal_ansi_black: Some(rgba(0x063642ff).into()),
 49                        terminal_ansi_red: Some(rgba(0xdc312eff).into()),
 50                        terminal_ansi_green: Some(rgba(0x859900ff).into()),
 51                        terminal_ansi_yellow: Some(rgba(0xb58800ff).into()),
 52                        terminal_ansi_blue: Some(rgba(0x258ad2ff).into()),
 53                        terminal_ansi_magenta: Some(rgba(0xd33582ff).into()),
 54                        terminal_ansi_cyan: Some(rgba(0x29a198ff).into()),
 55                        terminal_ansi_white: Some(rgba(0x839496ff).into()),
 56                        ..Default::default()
 57                    },
 58                    status: StatusColorsRefinement {
 59                        deleted: Some(rgba(0xffeaeaff).into()),
 60                        error: Some(rgba(0xffeaeaff).into()),
 61                        hidden: Some(rgba(0x93a1a1ff).into()),
 62                        ..Default::default()
 63                    },
 64                    syntax: Some(UserSyntaxTheme {
 65                        highlights: vec![
 66                            (
 67                                "attribute".into(),
 68                                UserHighlightStyle {
 69                                    color: Some(rgba(0x93a1a1ff).into()),
 70                                    ..Default::default()
 71                                },
 72                            ),
 73                            (
 74                                "boolean".into(),
 75                                UserHighlightStyle {
 76                                    color: Some(rgba(0xb58800ff).into()),
 77                                    ..Default::default()
 78                                },
 79                            ),
 80                            (
 81                                "comment".into(),
 82                                UserHighlightStyle {
 83                                    color: Some(rgba(0x657b83ff).into()),
 84                                    font_style: Some(UserFontStyle::Italic),
 85                                    ..Default::default()
 86                                },
 87                            ),
 88                            (
 89                                "constant".into(),
 90                                UserHighlightStyle {
 91                                    color: Some(rgba(0xcb4b15ff).into()),
 92                                    ..Default::default()
 93                                },
 94                            ),
 95                            (
 96                                "function".into(),
 97                                UserHighlightStyle {
 98                                    color: Some(rgba(0x258ad2ff).into()),
 99                                    ..Default::default()
100                                },
101                            ),
102                            (
103                                "keyword".into(),
104                                UserHighlightStyle {
105                                    color: Some(rgba(0x859900ff).into()),
106                                    ..Default::default()
107                                },
108                            ),
109                            (
110                                "property".into(),
111                                UserHighlightStyle {
112                                    color: Some(rgba(0x839496ff).into()),
113                                    ..Default::default()
114                                },
115                            ),
116                            (
117                                "string".into(),
118                                UserHighlightStyle {
119                                    color: Some(rgba(0x29a198ff).into()),
120                                    ..Default::default()
121                                },
122                            ),
123                            (
124                                "type".into(),
125                                UserHighlightStyle {
126                                    color: Some(rgba(0xcb4b15ff).into()),
127                                    ..Default::default()
128                                },
129                            ),
130                            (
131                                "variable".into(),
132                                UserHighlightStyle {
133                                    color: Some(rgba(0x258ad2ff).into()),
134                                    ..Default::default()
135                                },
136                            ),
137                        ],
138                    }),
139                },
140            },
141            UserTheme {
142                name: "Solarized Light".into(),
143                appearance: Appearance::Light,
144                styles: UserThemeStylesRefinement {
145                    colors: ThemeColorsRefinement {
146                        border: Some(rgba(0xddd6c1ff).into()),
147                        border_variant: Some(rgba(0xddd6c1ff).into()),
148                        border_focused: Some(rgba(0xd3af86ff).into()),
149                        border_selected: Some(rgba(0xddd6c1ff).into()),
150                        border_transparent: Some(rgba(0xddd6c1ff).into()),
151                        border_disabled: Some(rgba(0xddd6c1ff).into()),
152                        background: Some(rgba(0xfdf6e3ff).into()),
153                        element_background: Some(rgba(0xab9d56ff).into()),
154                        element_hover: Some(rgba(0xdec98744).into()),
155                        element_selected: Some(rgba(0xdec987ff).into()),
156                        ghost_element_hover: Some(rgba(0xdec98744).into()),
157                        text: Some(rgba(0x333333ff).into()),
158                        tab_inactive_background: Some(rgba(0xd3cbb7ff).into()),
159                        tab_active_background: Some(rgba(0xfdf6e3ff).into()),
160                        editor_background: Some(rgba(0xfdf6e3ff).into()),
161                        editor_gutter_background: Some(rgba(0xfdf6e3ff).into()),
162                        editor_line_number: Some(rgba(0x9ca8a6ff).into()),
163                        terminal_ansi_bright_black: Some(rgba(0x657b83ff).into()),
164                        terminal_ansi_bright_red: Some(rgba(0xcb4b15ff).into()),
165                        terminal_ansi_bright_green: Some(rgba(0x859900ff).into()),
166                        terminal_ansi_bright_yellow: Some(rgba(0x657b83ff).into()),
167                        terminal_ansi_bright_blue: Some(rgba(0x839496ff).into()),
168                        terminal_ansi_bright_magenta: Some(rgba(0x6c71c4ff).into()),
169                        terminal_ansi_bright_cyan: Some(rgba(0x93a1a1ff).into()),
170                        terminal_ansi_bright_white: Some(rgba(0xeee8d5ff).into()),
171                        terminal_ansi_black: Some(rgba(0x657b83ff).into()),
172                        terminal_ansi_red: Some(rgba(0xdc312eff).into()),
173                        terminal_ansi_green: Some(rgba(0x859900ff).into()),
174                        terminal_ansi_yellow: Some(rgba(0xb58800ff).into()),
175                        terminal_ansi_blue: Some(rgba(0x258ad2ff).into()),
176                        terminal_ansi_magenta: Some(rgba(0xd33582ff).into()),
177                        terminal_ansi_cyan: Some(rgba(0x29a198ff).into()),
178                        terminal_ansi_white: Some(rgba(0xeee8d5ff).into()),
179                        ..Default::default()
180                    },
181                    status: StatusColorsRefinement {
182                        hidden: Some(rgba(0x586e75ff).into()),
183                        ..Default::default()
184                    },
185                    syntax: Some(UserSyntaxTheme {
186                        highlights: vec![
187                            (
188                                "attribute".into(),
189                                UserHighlightStyle {
190                                    color: Some(rgba(0x93a1a1ff).into()),
191                                    ..Default::default()
192                                },
193                            ),
194                            (
195                                "boolean".into(),
196                                UserHighlightStyle {
197                                    color: Some(rgba(0xb58800ff).into()),
198                                    ..Default::default()
199                                },
200                            ),
201                            (
202                                "comment".into(),
203                                UserHighlightStyle {
204                                    color: Some(rgba(0x93a1a1ff).into()),
205                                    font_style: Some(UserFontStyle::Italic),
206                                    ..Default::default()
207                                },
208                            ),
209                            (
210                                "constant".into(),
211                                UserHighlightStyle {
212                                    color: Some(rgba(0xcb4b15ff).into()),
213                                    ..Default::default()
214                                },
215                            ),
216                            (
217                                "function".into(),
218                                UserHighlightStyle {
219                                    color: Some(rgba(0x258ad2ff).into()),
220                                    ..Default::default()
221                                },
222                            ),
223                            (
224                                "keyword".into(),
225                                UserHighlightStyle {
226                                    color: Some(rgba(0x859900ff).into()),
227                                    ..Default::default()
228                                },
229                            ),
230                            (
231                                "string".into(),
232                                UserHighlightStyle {
233                                    color: Some(rgba(0x29a198ff).into()),
234                                    ..Default::default()
235                                },
236                            ),
237                            (
238                                "type".into(),
239                                UserHighlightStyle {
240                                    color: Some(rgba(0x258ad2ff).into()),
241                                    ..Default::default()
242                                },
243                            ),
244                            (
245                                "variable".into(),
246                                UserHighlightStyle {
247                                    color: Some(rgba(0x258ad2ff).into()),
248                                    ..Default::default()
249                                },
250                            ),
251                        ],
252                    }),
253                },
254            },
255        ],
256    }
257}