Remove old themes using UserTheme
constructs (#6897)
This PR removes the themes defined using the `UserTheme` types, as we're now loading the themes via JSON. The `theme_importer` has also been reworked to read in a VS Code theme and output a new JSON theme. Release Notes: - N/A
This commit is contained in:
parent
5f1dcb76fe
commit
9b453d2cbc
24 changed files with 142 additions and 23067 deletions
|
@ -8,7 +8,6 @@ license = "GPL-3.0-or-later"
|
|||
|
||||
[features]
|
||||
default = []
|
||||
importing-themes = []
|
||||
stories = ["dep:itertools", "dep:story"]
|
||||
test-support = [
|
||||
"gpui/test-support",
|
||||
|
|
|
@ -1249,6 +1249,12 @@ pub struct HighlightStyleContent {
|
|||
pub font_weight: Option<FontWeightContent>,
|
||||
}
|
||||
|
||||
impl HighlightStyleContent {
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.color.is_none() && self.font_style.is_none() && self.font_weight.is_none()
|
||||
}
|
||||
}
|
||||
|
||||
fn treat_error_as_none<'de, T, D>(deserializer: D) -> Result<Option<T>, D::Error>
|
||||
where
|
||||
T: Deserialize<'de>,
|
||||
|
|
|
@ -15,9 +15,6 @@ mod scale;
|
|||
mod schema;
|
||||
mod settings;
|
||||
mod styles;
|
||||
#[cfg(not(feature = "importing-themes"))]
|
||||
mod themes;
|
||||
mod user_theme;
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
|
@ -29,9 +26,6 @@ pub use scale::*;
|
|||
pub use schema::*;
|
||||
pub use settings::*;
|
||||
pub use styles::*;
|
||||
#[cfg(not(feature = "importing-themes"))]
|
||||
pub use themes::*;
|
||||
pub use user_theme::*;
|
||||
|
||||
use gpui::{AppContext, AssetSource, Hsla, SharedString};
|
||||
use serde::Deserialize;
|
||||
|
|
|
@ -1,473 +0,0 @@
|
|||
// This file was generated by the `theme_importer`.
|
||||
// Be careful when modifying it by hand.
|
||||
|
||||
use gpui::rgba;
|
||||
|
||||
#[allow(unused)]
|
||||
use crate::{
|
||||
Appearance, PlayerColor, PlayerColors, StatusColorsRefinement, ThemeColorsRefinement,
|
||||
UserFontStyle, UserFontWeight, UserHighlightStyle, UserSyntaxTheme, UserTheme, UserThemeFamily,
|
||||
UserThemeStylesRefinement,
|
||||
};
|
||||
|
||||
pub fn andromeda() -> UserThemeFamily {
|
||||
UserThemeFamily {
|
||||
name: "Andromeda".into(),
|
||||
author: "Zed Industries".into(),
|
||||
themes: vec![UserTheme {
|
||||
name: "Andromeda".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: UserThemeStylesRefinement {
|
||||
colors: ThemeColorsRefinement {
|
||||
border: Some(rgba(0x2b2f39ff).into()),
|
||||
border_variant: Some(rgba(0x252931ff).into()),
|
||||
border_focused: Some(rgba(0x183a34ff).into()),
|
||||
border_selected: Some(rgba(0x183a34ff).into()),
|
||||
border_transparent: Some(rgba(0x00000000).into()),
|
||||
border_disabled: Some(rgba(0x292d37ff).into()),
|
||||
elevated_surface_background: Some(rgba(0x21242bff).into()),
|
||||
surface_background: Some(rgba(0x21242bff).into()),
|
||||
background: Some(rgba(0x262a33ff).into()),
|
||||
panel_background: Some(rgba(0x21242bff).into()),
|
||||
element_background: Some(rgba(0x21242bff).into()),
|
||||
element_hover: Some(rgba(0x252931ff).into()),
|
||||
element_active: Some(rgba(0x2a2f39ff).into()),
|
||||
element_selected: Some(rgba(0x2a2f39ff).into()),
|
||||
element_disabled: Some(rgba(0x21242bff).into()),
|
||||
drop_target_background: Some(rgba(0xaca8ae80).into()),
|
||||
ghost_element_background: Some(rgba(0x00000000).into()),
|
||||
ghost_element_hover: Some(rgba(0x252931ff).into()),
|
||||
ghost_element_active: Some(rgba(0x2a2f39ff).into()),
|
||||
ghost_element_selected: Some(rgba(0x2a2f39ff).into()),
|
||||
ghost_element_disabled: Some(rgba(0x21242bff).into()),
|
||||
text: Some(rgba(0xf7f7f8ff).into()),
|
||||
text_muted: Some(rgba(0xaca8aeff).into()),
|
||||
text_placeholder: Some(rgba(0x6b6b73ff).into()),
|
||||
text_disabled: Some(rgba(0x6b6b73ff).into()),
|
||||
text_accent: Some(rgba(0x11a793ff).into()),
|
||||
icon: Some(rgba(0xf7f7f8ff).into()),
|
||||
icon_muted: Some(rgba(0xaca8aeff).into()),
|
||||
icon_disabled: Some(rgba(0x6b6b73ff).into()),
|
||||
icon_placeholder: Some(rgba(0xaca8aeff).into()),
|
||||
icon_accent: Some(rgba(0x11a793ff).into()),
|
||||
status_bar_background: Some(rgba(0x262a33ff).into()),
|
||||
title_bar_background: Some(rgba(0x262a33ff).into()),
|
||||
toolbar_background: Some(rgba(0x1e2025ff).into()),
|
||||
tab_bar_background: Some(rgba(0x21242bff).into()),
|
||||
tab_inactive_background: Some(rgba(0x21242bff).into()),
|
||||
tab_active_background: Some(rgba(0x1e2025ff).into()),
|
||||
scrollbar_thumb_background: Some(rgba(0xf7f7f84c).into()),
|
||||
scrollbar_thumb_hover_background: Some(rgba(0x252931ff).into()),
|
||||
scrollbar_thumb_border: Some(rgba(0x252931ff).into()),
|
||||
scrollbar_track_background: Some(rgba(0x00000000).into()),
|
||||
scrollbar_track_border: Some(rgba(0x21232aff).into()),
|
||||
editor_foreground: Some(rgba(0xf7f7f8ff).into()),
|
||||
editor_background: Some(rgba(0x1e2025ff).into()),
|
||||
editor_gutter_background: Some(rgba(0x1e2025ff).into()),
|
||||
editor_subheader_background: Some(rgba(0x21242bff).into()),
|
||||
editor_active_line_background: Some(rgba(0x21242bbf).into()),
|
||||
editor_highlighted_line_background: Some(rgba(0x21242bff).into()),
|
||||
editor_line_number: Some(rgba(0xf7f7f859).into()),
|
||||
editor_active_line_number: Some(rgba(0xf7f7f8ff).into()),
|
||||
editor_invisible: Some(rgba(0x64646dff).into()),
|
||||
editor_wrap_guide: Some(rgba(0xf7f7f80d).into()),
|
||||
editor_active_wrap_guide: Some(rgba(0xf7f7f81a).into()),
|
||||
editor_document_highlight_read_background: Some(rgba(0x11a7931a).into()),
|
||||
editor_document_highlight_write_background: Some(rgba(0x64646d66).into()),
|
||||
terminal_background: Some(rgba(0x1e2025ff).into()),
|
||||
terminal_foreground: Some(rgba(0xf7f7f8ff).into()),
|
||||
terminal_bright_foreground: Some(rgba(0xf7f7f8ff).into()),
|
||||
terminal_dim_foreground: Some(rgba(0x1e2025ff).into()),
|
||||
terminal_ansi_black: Some(rgba(0x1e2025ff).into()),
|
||||
terminal_ansi_bright_black: Some(rgba(0x40434cff).into()),
|
||||
terminal_ansi_dim_black: Some(rgba(0xf7f7f8ff).into()),
|
||||
terminal_ansi_red: Some(rgba(0xf82872ff).into()),
|
||||
terminal_ansi_bright_red: Some(rgba(0x8e103aff).into()),
|
||||
terminal_ansi_dim_red: Some(rgba(0xffa3b6ff).into()),
|
||||
terminal_ansi_green: Some(rgba(0x96df72ff).into()),
|
||||
terminal_ansi_bright_green: Some(rgba(0x457c38ff).into()),
|
||||
terminal_ansi_dim_green: Some(rgba(0xcef0b9ff).into()),
|
||||
terminal_ansi_yellow: Some(rgba(0xfee56dff).into()),
|
||||
terminal_ansi_bright_yellow: Some(rgba(0x958435ff).into()),
|
||||
terminal_ansi_dim_yellow: Some(rgba(0xfff2b8ff).into()),
|
||||
terminal_ansi_blue: Some(rgba(0x11a793ff).into()),
|
||||
terminal_ansi_bright_blue: Some(rgba(0x1b5148ff).into()),
|
||||
terminal_ansi_dim_blue: Some(rgba(0x9cd4c8ff).into()),
|
||||
terminal_ansi_magenta: Some(rgba(0xc74decff).into()),
|
||||
terminal_ansi_bright_magenta: Some(rgba(0x682781ff).into()),
|
||||
terminal_ansi_dim_magenta: Some(rgba(0xe8abf7ff).into()),
|
||||
terminal_ansi_cyan: Some(rgba(0x09e7c6ff).into()),
|
||||
terminal_ansi_bright_cyan: Some(rgba(0x018169ff).into()),
|
||||
terminal_ansi_dim_cyan: Some(rgba(0xaaf5e2ff).into()),
|
||||
terminal_ansi_white: Some(rgba(0xf7f7f8ff).into()),
|
||||
terminal_ansi_bright_white: Some(rgba(0xf7f7f8ff).into()),
|
||||
terminal_ansi_dim_white: Some(rgba(0x88868dff).into()),
|
||||
link_text_hover: Some(rgba(0x11a793ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
status: StatusColorsRefinement {
|
||||
conflict: Some(rgba(0xfee56dff).into()),
|
||||
conflict_background: Some(rgba(0x5c5015ff).into()),
|
||||
conflict_border: Some(rgba(0x796b26ff).into()),
|
||||
created: Some(rgba(0x96df72ff).into()),
|
||||
created_background: Some(rgba(0x194618ff).into()),
|
||||
created_border: Some(rgba(0x306129ff).into()),
|
||||
deleted: Some(rgba(0xf82872ff).into()),
|
||||
deleted_background: Some(rgba(0x55051bff).into()),
|
||||
deleted_border: Some(rgba(0x720a2bff).into()),
|
||||
error: Some(rgba(0xf82872ff).into()),
|
||||
error_background: Some(rgba(0x55051bff).into()),
|
||||
error_border: Some(rgba(0x720a2bff).into()),
|
||||
hidden: Some(rgba(0x6b6b73ff).into()),
|
||||
hidden_background: Some(rgba(0x262a33ff).into()),
|
||||
hidden_border: Some(rgba(0x292d37ff).into()),
|
||||
hint: Some(rgba(0x618399ff).into()),
|
||||
hint_background: Some(rgba(0x122420ff).into()),
|
||||
hint_border: Some(rgba(0x183a34ff).into()),
|
||||
ignored: Some(rgba(0xaca8aeff).into()),
|
||||
ignored_background: Some(rgba(0x262a33ff).into()),
|
||||
ignored_border: Some(rgba(0x2b2f39ff).into()),
|
||||
info: Some(rgba(0x11a793ff).into()),
|
||||
info_background: Some(rgba(0x122420ff).into()),
|
||||
info_border: Some(rgba(0x183a34ff).into()),
|
||||
modified: Some(rgba(0xfee56dff).into()),
|
||||
modified_background: Some(rgba(0x5c5015ff).into()),
|
||||
modified_border: Some(rgba(0x796b26ff).into()),
|
||||
predictive: Some(rgba(0x315f70ff).into()),
|
||||
predictive_background: Some(rgba(0x194618ff).into()),
|
||||
predictive_border: Some(rgba(0x306129ff).into()),
|
||||
renamed: Some(rgba(0x11a793ff).into()),
|
||||
renamed_background: Some(rgba(0x122420ff).into()),
|
||||
renamed_border: Some(rgba(0x183a34ff).into()),
|
||||
success: Some(rgba(0x96df72ff).into()),
|
||||
success_background: Some(rgba(0x194618ff).into()),
|
||||
success_border: Some(rgba(0x306129ff).into()),
|
||||
unreachable: Some(rgba(0xaca8aeff).into()),
|
||||
unreachable_background: Some(rgba(0x262a33ff).into()),
|
||||
unreachable_border: Some(rgba(0x2b2f39ff).into()),
|
||||
warning: Some(rgba(0xfee56dff).into()),
|
||||
warning_background: Some(rgba(0x5c5015ff).into()),
|
||||
warning_border: Some(rgba(0x796b26ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
player: Some(PlayerColors(vec![
|
||||
PlayerColor {
|
||||
cursor: rgba(0x11a793ff).into(),
|
||||
background: rgba(0x11a793ff).into(),
|
||||
selection: rgba(0x11a7933d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xc74decff).into(),
|
||||
background: rgba(0xc74decff).into(),
|
||||
selection: rgba(0xc74dec3d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xf29c14ff).into(),
|
||||
background: rgba(0xf29c14ff).into(),
|
||||
selection: rgba(0xf29c143d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x8a3fa6ff).into(),
|
||||
background: rgba(0x8a3fa6ff).into(),
|
||||
selection: rgba(0x8a3fa63d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x09e7c6ff).into(),
|
||||
background: rgba(0x09e7c6ff).into(),
|
||||
selection: rgba(0x09e7c63d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xf82872ff).into(),
|
||||
background: rgba(0xf82872ff).into(),
|
||||
selection: rgba(0xf828723d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xfee56dff).into(),
|
||||
background: rgba(0xfee56dff).into(),
|
||||
selection: rgba(0xfee56d3d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x96df72ff).into(),
|
||||
background: rgba(0x96df72ff).into(),
|
||||
selection: rgba(0x96df723d).into(),
|
||||
},
|
||||
])),
|
||||
syntax: Some(UserSyntaxTheme {
|
||||
highlights: vec![
|
||||
(
|
||||
"attribute".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x11a793ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"boolean".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x96df72ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"comment".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xafabb1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"comment.doc".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xafabb1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"constant".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x96df72ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"constructor".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x11a793ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"embedded".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xf7f7f8ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"emphasis".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x11a793ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"emphasis.strong".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x11a793ff).into()),
|
||||
font_weight: Some(UserFontWeight(700.0)),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"enum".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xf29c14ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"function".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xfee56dff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"hint".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x618399ff).into()),
|
||||
font_weight: Some(UserFontWeight(700.0)),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"keyword".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x11a793ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"label".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x11a793ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"link_text".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xf29c14ff).into()),
|
||||
font_style: Some(UserFontStyle::Italic),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"link_uri".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x96df72ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"number".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x96df72ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"operator".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xf29c14ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"predictive".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x315f70ff).into()),
|
||||
font_style: Some(UserFontStyle::Italic),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"preproc".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xf7f7f8ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"primary".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xf7f7f8ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"property".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x11a793ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xd8d5dbff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.bracket".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xd8d5dbff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.delimiter".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xd8d5dbff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.list_marker".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xd8d5dbff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.special".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xd8d5dbff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xf29c14ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.escape".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xafabb1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.regex".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xf29c14ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.special".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xf29c14ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.special.symbol".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xf29c14ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"tag".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x11a793ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"text.literal".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xf29c14ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"title".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xf7f7f8ff).into()),
|
||||
font_weight: Some(UserFontWeight(700.0)),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"type".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x09e7c6ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"variable".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xf7f7f8ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"variant".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x11a793ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
],
|
||||
}),
|
||||
},
|
||||
}],
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1,38 +0,0 @@
|
|||
// This file was generated by the `theme_importer`.
|
||||
// Be careful when modifying it by hand.
|
||||
|
||||
mod andromeda;
|
||||
mod atelier;
|
||||
mod ayu;
|
||||
mod gruvbox;
|
||||
mod one;
|
||||
mod rose_pine;
|
||||
mod sandcastle;
|
||||
mod solarized;
|
||||
mod summercamp;
|
||||
|
||||
pub use andromeda::*;
|
||||
pub use atelier::*;
|
||||
pub use ayu::*;
|
||||
pub use gruvbox::*;
|
||||
pub use one::*;
|
||||
pub use rose_pine::*;
|
||||
pub use sandcastle::*;
|
||||
pub use solarized::*;
|
||||
pub use summercamp::*;
|
||||
|
||||
use crate::UserThemeFamily;
|
||||
|
||||
pub fn all_user_themes() -> Vec<UserThemeFamily> {
|
||||
vec![
|
||||
andromeda(),
|
||||
atelier(),
|
||||
ayu(),
|
||||
gruvbox(),
|
||||
one(),
|
||||
rose_pine(),
|
||||
sandcastle(),
|
||||
solarized(),
|
||||
summercamp(),
|
||||
]
|
||||
}
|
|
@ -1,944 +0,0 @@
|
|||
// This file was generated by the `theme_importer`.
|
||||
// Be careful when modifying it by hand.
|
||||
|
||||
use gpui::rgba;
|
||||
|
||||
#[allow(unused)]
|
||||
use crate::{
|
||||
Appearance, PlayerColor, PlayerColors, StatusColorsRefinement, ThemeColorsRefinement,
|
||||
UserFontStyle, UserFontWeight, UserHighlightStyle, UserSyntaxTheme, UserTheme, UserThemeFamily,
|
||||
UserThemeStylesRefinement,
|
||||
};
|
||||
|
||||
pub fn one() -> UserThemeFamily {
|
||||
UserThemeFamily {
|
||||
name: "One".into(),
|
||||
author: "Zed Industries".into(),
|
||||
themes: vec![
|
||||
UserTheme {
|
||||
name: "One Dark".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: UserThemeStylesRefinement {
|
||||
colors: ThemeColorsRefinement {
|
||||
border: Some(rgba(0x464b57ff).into()),
|
||||
border_variant: Some(rgba(0x363c46ff).into()),
|
||||
border_focused: Some(rgba(0x293c5bff).into()),
|
||||
border_selected: Some(rgba(0x293c5bff).into()),
|
||||
border_transparent: Some(rgba(0x00000000).into()),
|
||||
border_disabled: Some(rgba(0x414754ff).into()),
|
||||
elevated_surface_background: Some(rgba(0x2f343eff).into()),
|
||||
surface_background: Some(rgba(0x2f343eff).into()),
|
||||
background: Some(rgba(0x3b414dff).into()),
|
||||
panel_background: Some(rgba(0x2f343eff).into()),
|
||||
element_background: Some(rgba(0x2f343eff).into()),
|
||||
element_hover: Some(rgba(0x363c46ff).into()),
|
||||
element_active: Some(rgba(0x454a56ff).into()),
|
||||
element_selected: Some(rgba(0x454a56ff).into()),
|
||||
element_disabled: Some(rgba(0x2f343eff).into()),
|
||||
drop_target_background: Some(rgba(0x83899480).into()),
|
||||
ghost_element_background: Some(rgba(0x00000000).into()),
|
||||
ghost_element_hover: Some(rgba(0x363c46ff).into()),
|
||||
ghost_element_active: Some(rgba(0x454a56ff).into()),
|
||||
ghost_element_selected: Some(rgba(0x454a56ff).into()),
|
||||
ghost_element_disabled: Some(rgba(0x2f343eff).into()),
|
||||
text: Some(rgba(0xc8ccd4ff).into()),
|
||||
text_muted: Some(rgba(0x838994ff).into()),
|
||||
text_placeholder: Some(rgba(0x555a63ff).into()),
|
||||
text_disabled: Some(rgba(0x555a63ff).into()),
|
||||
text_accent: Some(rgba(0x74ade8ff).into()),
|
||||
icon: Some(rgba(0xc8ccd4ff).into()),
|
||||
icon_muted: Some(rgba(0x838994ff).into()),
|
||||
icon_disabled: Some(rgba(0x555a63ff).into()),
|
||||
icon_placeholder: Some(rgba(0x838994ff).into()),
|
||||
icon_accent: Some(rgba(0x74ade8ff).into()),
|
||||
status_bar_background: Some(rgba(0x3b414dff).into()),
|
||||
title_bar_background: Some(rgba(0x3b414dff).into()),
|
||||
toolbar_background: Some(rgba(0x282c34ff).into()),
|
||||
tab_bar_background: Some(rgba(0x2f343eff).into()),
|
||||
tab_inactive_background: Some(rgba(0x2f343eff).into()),
|
||||
tab_active_background: Some(rgba(0x282c34ff).into()),
|
||||
scrollbar_thumb_background: Some(rgba(0xc8ccd44c).into()),
|
||||
scrollbar_thumb_hover_background: Some(rgba(0x363c46ff).into()),
|
||||
scrollbar_thumb_border: Some(rgba(0x363c46ff).into()),
|
||||
scrollbar_track_background: Some(rgba(0x00000000).into()),
|
||||
scrollbar_track_border: Some(rgba(0x2e333cff).into()),
|
||||
editor_foreground: Some(rgba(0xacb2beff).into()),
|
||||
editor_background: Some(rgba(0x282c34ff).into()),
|
||||
editor_gutter_background: Some(rgba(0x282c34ff).into()),
|
||||
editor_subheader_background: Some(rgba(0x2f343eff).into()),
|
||||
editor_active_line_background: Some(rgba(0x2f343ebf).into()),
|
||||
editor_highlighted_line_background: Some(rgba(0x2f343eff).into()),
|
||||
editor_line_number: Some(rgba(0xc8ccd459).into()),
|
||||
editor_active_line_number: Some(rgba(0xc8ccd4ff).into()),
|
||||
editor_invisible: Some(rgba(0x555a63ff).into()),
|
||||
editor_wrap_guide: Some(rgba(0xc8ccd40d).into()),
|
||||
editor_active_wrap_guide: Some(rgba(0xc8ccd41a).into()),
|
||||
editor_document_highlight_read_background: Some(rgba(0x74ade81a).into()),
|
||||
editor_document_highlight_write_background: Some(rgba(0x555a6366).into()),
|
||||
terminal_background: Some(rgba(0x282c34ff).into()),
|
||||
terminal_foreground: Some(rgba(0xc8ccd4ff).into()),
|
||||
terminal_bright_foreground: Some(rgba(0xc8ccd4ff).into()),
|
||||
terminal_dim_foreground: Some(rgba(0x282c34ff).into()),
|
||||
terminal_ansi_black: Some(rgba(0x282c34ff).into()),
|
||||
terminal_ansi_bright_black: Some(rgba(0x525661ff).into()),
|
||||
terminal_ansi_dim_black: Some(rgba(0xc8ccd4ff).into()),
|
||||
terminal_ansi_red: Some(rgba(0xd07277ff).into()),
|
||||
terminal_ansi_bright_red: Some(rgba(0x673a3cff).into()),
|
||||
terminal_ansi_dim_red: Some(rgba(0xebb8b9ff).into()),
|
||||
terminal_ansi_green: Some(rgba(0xa1c181ff).into()),
|
||||
terminal_ansi_bright_green: Some(rgba(0x4d6140ff).into()),
|
||||
terminal_ansi_dim_green: Some(rgba(0xd1e0bfff).into()),
|
||||
terminal_ansi_yellow: Some(rgba(0xdec184ff).into()),
|
||||
terminal_ansi_bright_yellow: Some(rgba(0x786441ff).into()),
|
||||
terminal_ansi_dim_yellow: Some(rgba(0xf1dfc1ff).into()),
|
||||
terminal_ansi_blue: Some(rgba(0x74ade8ff).into()),
|
||||
terminal_ansi_bright_blue: Some(rgba(0x385378ff).into()),
|
||||
terminal_ansi_dim_blue: Some(rgba(0xbed5f4ff).into()),
|
||||
terminal_ansi_magenta: Some(rgba(0xbe5046ff).into()),
|
||||
terminal_ansi_bright_magenta: Some(rgba(0x5e2b26ff).into()),
|
||||
terminal_ansi_dim_magenta: Some(rgba(0xe6a79eff).into()),
|
||||
terminal_ansi_cyan: Some(rgba(0x6fb4c0ff).into()),
|
||||
terminal_ansi_bright_cyan: Some(rgba(0x3a565bff).into()),
|
||||
terminal_ansi_dim_cyan: Some(rgba(0xb9d9dfff).into()),
|
||||
terminal_ansi_white: Some(rgba(0xc8ccd4ff).into()),
|
||||
terminal_ansi_bright_white: Some(rgba(0xc8ccd4ff).into()),
|
||||
terminal_ansi_dim_white: Some(rgba(0x575d65ff).into()),
|
||||
link_text_hover: Some(rgba(0x74ade8ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
status: StatusColorsRefinement {
|
||||
conflict: Some(rgba(0xdec184ff).into()),
|
||||
conflict_background: Some(rgba(0x41331dff).into()),
|
||||
conflict_border: Some(rgba(0x5d4c2fff).into()),
|
||||
created: Some(rgba(0xa1c181ff).into()),
|
||||
created_background: Some(rgba(0x222e1dff).into()),
|
||||
created_border: Some(rgba(0x38482fff).into()),
|
||||
deleted: Some(rgba(0xd07277ff).into()),
|
||||
deleted_background: Some(rgba(0x301b1cff).into()),
|
||||
deleted_border: Some(rgba(0x4c2b2cff).into()),
|
||||
error: Some(rgba(0xd07277ff).into()),
|
||||
error_background: Some(rgba(0x301b1cff).into()),
|
||||
error_border: Some(rgba(0x4c2b2cff).into()),
|
||||
hidden: Some(rgba(0x555a63ff).into()),
|
||||
hidden_background: Some(rgba(0x3b414dff).into()),
|
||||
hidden_border: Some(rgba(0x414754ff).into()),
|
||||
hint: Some(rgba(0x5b708aff).into()),
|
||||
hint_background: Some(rgba(0x18243dff).into()),
|
||||
hint_border: Some(rgba(0x293c5bff).into()),
|
||||
ignored: Some(rgba(0x838994ff).into()),
|
||||
ignored_background: Some(rgba(0x3b414dff).into()),
|
||||
ignored_border: Some(rgba(0x464b57ff).into()),
|
||||
info: Some(rgba(0x74ade8ff).into()),
|
||||
info_background: Some(rgba(0x18243dff).into()),
|
||||
info_border: Some(rgba(0x293c5bff).into()),
|
||||
modified: Some(rgba(0xdec184ff).into()),
|
||||
modified_background: Some(rgba(0x41331dff).into()),
|
||||
modified_border: Some(rgba(0x5d4c2fff).into()),
|
||||
predictive: Some(rgba(0x5b6b88ff).into()),
|
||||
predictive_background: Some(rgba(0x222e1dff).into()),
|
||||
predictive_border: Some(rgba(0x38482fff).into()),
|
||||
renamed: Some(rgba(0x74ade8ff).into()),
|
||||
renamed_background: Some(rgba(0x18243dff).into()),
|
||||
renamed_border: Some(rgba(0x293c5bff).into()),
|
||||
success: Some(rgba(0xa1c181ff).into()),
|
||||
success_background: Some(rgba(0x222e1dff).into()),
|
||||
success_border: Some(rgba(0x38482fff).into()),
|
||||
unreachable: Some(rgba(0x838994ff).into()),
|
||||
unreachable_background: Some(rgba(0x3b414dff).into()),
|
||||
unreachable_border: Some(rgba(0x464b57ff).into()),
|
||||
warning: Some(rgba(0xdec184ff).into()),
|
||||
warning_background: Some(rgba(0x41331dff).into()),
|
||||
warning_border: Some(rgba(0x5d4c2fff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
player: Some(PlayerColors(vec![
|
||||
PlayerColor {
|
||||
cursor: rgba(0x74ade8ff).into(),
|
||||
background: rgba(0x74ade8ff).into(),
|
||||
selection: rgba(0x74ade83d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xbe5046ff).into(),
|
||||
background: rgba(0xbe5046ff).into(),
|
||||
selection: rgba(0xbe50463d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xc0966bff).into(),
|
||||
background: rgba(0xc0966bff).into(),
|
||||
selection: rgba(0xc0966b3d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xb478cfff).into(),
|
||||
background: rgba(0xb478cfff).into(),
|
||||
selection: rgba(0xb478cf3d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x6fb4c0ff).into(),
|
||||
background: rgba(0x6fb4c0ff).into(),
|
||||
selection: rgba(0x6fb4c03d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xd07277ff).into(),
|
||||
background: rgba(0xd07277ff).into(),
|
||||
selection: rgba(0xd072773d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xdec184ff).into(),
|
||||
background: rgba(0xdec184ff).into(),
|
||||
selection: rgba(0xdec1843d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xa1c181ff).into(),
|
||||
background: rgba(0xa1c181ff).into(),
|
||||
selection: rgba(0xa1c1813d).into(),
|
||||
},
|
||||
])),
|
||||
syntax: Some(UserSyntaxTheme {
|
||||
highlights: vec![
|
||||
(
|
||||
"attribute".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x74ade8ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"boolean".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xc0966bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"comment".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x5d636fff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"comment.doc".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x878e98ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"constant".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xdfc184ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"constructor".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x74ade9ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"embedded".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xc8ccd4ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"emphasis".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x74ade8ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"emphasis.strong".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xc0966bff).into()),
|
||||
font_weight: Some(UserFontWeight(700.0)),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"enum".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xd07277ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"function".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x74ade9ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"hint".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x5b708aff).into()),
|
||||
font_weight: Some(UserFontWeight(700.0)),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"keyword".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xb478cfff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"label".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x74ade8ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"link_text".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x74ade9ff).into()),
|
||||
font_style: Some(UserFontStyle::Normal),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"link_uri".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x6fb4c0ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"number".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xc0966bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"operator".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x6fb4c0ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"predictive".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x5b6b88ff).into()),
|
||||
font_style: Some(UserFontStyle::Italic),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"preproc".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xc8ccd4ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"primary".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xacb2beff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"property".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xd07277ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xacb2beff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.bracket".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xb2b9c6ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.delimiter".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xb2b9c6ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.list_marker".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xd07277ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.special".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xb1574bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xa1c181ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.escape".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x878e98ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.regex".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xc0966bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.special".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xc0966bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.special.symbol".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xc0966bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"tag".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x74ade8ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"text.literal".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xa1c181ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"title".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xd07277ff).into()),
|
||||
font_weight: Some(UserFontWeight(400.0)),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"type".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x6fb4c0ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"variable".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xc8ccd4ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"variable.special".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xc0966bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"variant".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x74ade9ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
],
|
||||
}),
|
||||
},
|
||||
},
|
||||
UserTheme {
|
||||
name: "One Light".into(),
|
||||
appearance: Appearance::Light,
|
||||
styles: UserThemeStylesRefinement {
|
||||
colors: ThemeColorsRefinement {
|
||||
border: Some(rgba(0xc9c9caff).into()),
|
||||
border_variant: Some(rgba(0xdfdfe0ff).into()),
|
||||
border_focused: Some(rgba(0xcbcdf6ff).into()),
|
||||
border_selected: Some(rgba(0xcbcdf6ff).into()),
|
||||
border_transparent: Some(rgba(0x00000000).into()),
|
||||
border_disabled: Some(rgba(0xd3d3d4ff).into()),
|
||||
elevated_surface_background: Some(rgba(0xebebecff).into()),
|
||||
surface_background: Some(rgba(0xebebecff).into()),
|
||||
background: Some(rgba(0xdcdcddff).into()),
|
||||
panel_background: Some(rgba(0xebebecff).into()),
|
||||
element_background: Some(rgba(0xebebecff).into()),
|
||||
element_hover: Some(rgba(0xdfdfe0ff).into()),
|
||||
element_active: Some(rgba(0xcacacaff).into()),
|
||||
element_selected: Some(rgba(0xcacacaff).into()),
|
||||
element_disabled: Some(rgba(0xebebecff).into()),
|
||||
drop_target_background: Some(rgba(0x7f818880).into()),
|
||||
ghost_element_background: Some(rgba(0x00000000).into()),
|
||||
ghost_element_hover: Some(rgba(0xdfdfe0ff).into()),
|
||||
ghost_element_active: Some(rgba(0xcacacaff).into()),
|
||||
ghost_element_selected: Some(rgba(0xcacacaff).into()),
|
||||
ghost_element_disabled: Some(rgba(0xebebecff).into()),
|
||||
text: Some(rgba(0x383a41ff).into()),
|
||||
text_muted: Some(rgba(0x7f8188ff).into()),
|
||||
text_placeholder: Some(rgba(0xa1a1a3ff).into()),
|
||||
text_disabled: Some(rgba(0xa1a1a3ff).into()),
|
||||
text_accent: Some(rgba(0x5c79e2ff).into()),
|
||||
icon: Some(rgba(0x383a41ff).into()),
|
||||
icon_muted: Some(rgba(0x7f8188ff).into()),
|
||||
icon_disabled: Some(rgba(0xa1a1a3ff).into()),
|
||||
icon_placeholder: Some(rgba(0x7f8188ff).into()),
|
||||
icon_accent: Some(rgba(0x5c79e2ff).into()),
|
||||
status_bar_background: Some(rgba(0xdcdcddff).into()),
|
||||
title_bar_background: Some(rgba(0xdcdcddff).into()),
|
||||
toolbar_background: Some(rgba(0xfafafaff).into()),
|
||||
tab_bar_background: Some(rgba(0xebebecff).into()),
|
||||
tab_inactive_background: Some(rgba(0xebebecff).into()),
|
||||
tab_active_background: Some(rgba(0xfafafaff).into()),
|
||||
scrollbar_thumb_background: Some(rgba(0x383a414c).into()),
|
||||
scrollbar_thumb_hover_background: Some(rgba(0xdfdfe0ff).into()),
|
||||
scrollbar_thumb_border: Some(rgba(0xdfdfe0ff).into()),
|
||||
scrollbar_track_background: Some(rgba(0x00000000).into()),
|
||||
scrollbar_track_border: Some(rgba(0xeeeeeeff).into()),
|
||||
editor_foreground: Some(rgba(0x383a41ff).into()),
|
||||
editor_background: Some(rgba(0xfafafaff).into()),
|
||||
editor_gutter_background: Some(rgba(0xfafafaff).into()),
|
||||
editor_subheader_background: Some(rgba(0xebebecff).into()),
|
||||
editor_active_line_background: Some(rgba(0xebebecbf).into()),
|
||||
editor_highlighted_line_background: Some(rgba(0xebebecff).into()),
|
||||
editor_line_number: Some(rgba(0x383a4159).into()),
|
||||
editor_active_line_number: Some(rgba(0x383a41ff).into()),
|
||||
editor_invisible: Some(rgba(0xa3a3a4ff).into()),
|
||||
editor_wrap_guide: Some(rgba(0x383a410d).into()),
|
||||
editor_active_wrap_guide: Some(rgba(0x383a411a).into()),
|
||||
editor_document_highlight_read_background: Some(rgba(0x5c79e21a).into()),
|
||||
editor_document_highlight_write_background: Some(rgba(0xa3a3a466).into()),
|
||||
terminal_background: Some(rgba(0xfafafaff).into()),
|
||||
terminal_foreground: Some(rgba(0x383a41ff).into()),
|
||||
terminal_bright_foreground: Some(rgba(0x383a41ff).into()),
|
||||
terminal_dim_foreground: Some(rgba(0xfafafaff).into()),
|
||||
terminal_ansi_black: Some(rgba(0xfafafaff).into()),
|
||||
terminal_ansi_bright_black: Some(rgba(0xaaaaaaff).into()),
|
||||
terminal_ansi_dim_black: Some(rgba(0x383a41ff).into()),
|
||||
terminal_ansi_red: Some(rgba(0xd36151ff).into()),
|
||||
terminal_ansi_bright_red: Some(rgba(0xf0b0a4ff).into()),
|
||||
terminal_ansi_dim_red: Some(rgba(0x6f312aff).into()),
|
||||
terminal_ansi_green: Some(rgba(0x669f59ff).into()),
|
||||
terminal_ansi_bright_green: Some(rgba(0xb2cfa9ff).into()),
|
||||
terminal_ansi_dim_green: Some(rgba(0x354d2eff).into()),
|
||||
terminal_ansi_yellow: Some(rgba(0xdec184ff).into()),
|
||||
terminal_ansi_bright_yellow: Some(rgba(0xf1dfc1ff).into()),
|
||||
terminal_ansi_dim_yellow: Some(rgba(0x786441ff).into()),
|
||||
terminal_ansi_blue: Some(rgba(0x5c79e2ff).into()),
|
||||
terminal_ansi_bright_blue: Some(rgba(0xb5baf2ff).into()),
|
||||
terminal_ansi_dim_blue: Some(rgba(0x2d3d75ff).into()),
|
||||
terminal_ansi_magenta: Some(rgba(0x994fa6ff).into()),
|
||||
terminal_ansi_bright_magenta: Some(rgba(0xcea6d3ff).into()),
|
||||
terminal_ansi_dim_magenta: Some(rgba(0x4b2a50ff).into()),
|
||||
terminal_ansi_cyan: Some(rgba(0x3b82b7ff).into()),
|
||||
terminal_ansi_bright_cyan: Some(rgba(0xa4bfdbff).into()),
|
||||
terminal_ansi_dim_cyan: Some(rgba(0x254058ff).into()),
|
||||
terminal_ansi_white: Some(rgba(0x383a41ff).into()),
|
||||
terminal_ansi_bright_white: Some(rgba(0x383a41ff).into()),
|
||||
terminal_ansi_dim_white: Some(rgba(0x98989bff).into()),
|
||||
link_text_hover: Some(rgba(0x5c79e2ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
status: StatusColorsRefinement {
|
||||
conflict: Some(rgba(0xdec184ff).into()),
|
||||
conflict_background: Some(rgba(0xfaf2e6ff).into()),
|
||||
conflict_border: Some(rgba(0xf5e8d2ff).into()),
|
||||
created: Some(rgba(0x669f59ff).into()),
|
||||
created_background: Some(rgba(0xe0ebdcff).into()),
|
||||
created_border: Some(rgba(0xc8dcc1ff).into()),
|
||||
deleted: Some(rgba(0xd36151ff).into()),
|
||||
deleted_background: Some(rgba(0xfbdfd9ff).into()),
|
||||
deleted_border: Some(rgba(0xf6c6bdff).into()),
|
||||
error: Some(rgba(0xd36151ff).into()),
|
||||
error_background: Some(rgba(0xfbdfd9ff).into()),
|
||||
error_border: Some(rgba(0xf6c6bdff).into()),
|
||||
hidden: Some(rgba(0xa1a1a3ff).into()),
|
||||
hidden_background: Some(rgba(0xdcdcddff).into()),
|
||||
hidden_border: Some(rgba(0xd3d3d4ff).into()),
|
||||
hint: Some(rgba(0x9295beff).into()),
|
||||
hint_background: Some(rgba(0xe2e2faff).into()),
|
||||
hint_border: Some(rgba(0xcbcdf6ff).into()),
|
||||
ignored: Some(rgba(0x7f8188ff).into()),
|
||||
ignored_background: Some(rgba(0xdcdcddff).into()),
|
||||
ignored_border: Some(rgba(0xc9c9caff).into()),
|
||||
info: Some(rgba(0x5c79e2ff).into()),
|
||||
info_background: Some(rgba(0xe2e2faff).into()),
|
||||
info_border: Some(rgba(0xcbcdf6ff).into()),
|
||||
modified: Some(rgba(0xdec184ff).into()),
|
||||
modified_background: Some(rgba(0xfaf2e6ff).into()),
|
||||
modified_border: Some(rgba(0xf5e8d2ff).into()),
|
||||
predictive: Some(rgba(0x9c9fc7ff).into()),
|
||||
predictive_background: Some(rgba(0xe0ebdcff).into()),
|
||||
predictive_border: Some(rgba(0xc8dcc1ff).into()),
|
||||
renamed: Some(rgba(0x5c79e2ff).into()),
|
||||
renamed_background: Some(rgba(0xe2e2faff).into()),
|
||||
renamed_border: Some(rgba(0xcbcdf6ff).into()),
|
||||
success: Some(rgba(0x669f59ff).into()),
|
||||
success_background: Some(rgba(0xe0ebdcff).into()),
|
||||
success_border: Some(rgba(0xc8dcc1ff).into()),
|
||||
unreachable: Some(rgba(0x7f8188ff).into()),
|
||||
unreachable_background: Some(rgba(0xdcdcddff).into()),
|
||||
unreachable_border: Some(rgba(0xc9c9caff).into()),
|
||||
warning: Some(rgba(0xdec184ff).into()),
|
||||
warning_background: Some(rgba(0xfaf2e6ff).into()),
|
||||
warning_border: Some(rgba(0xf5e8d2ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
player: Some(PlayerColors(vec![
|
||||
PlayerColor {
|
||||
cursor: rgba(0x5c79e2ff).into(),
|
||||
background: rgba(0x5c79e2ff).into(),
|
||||
selection: rgba(0x5c79e23d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x994fa6ff).into(),
|
||||
background: rgba(0x994fa6ff).into(),
|
||||
selection: rgba(0x994fa63d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xad6f27ff).into(),
|
||||
background: rgba(0xad6f27ff).into(),
|
||||
selection: rgba(0xad6f273d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xa44aabff).into(),
|
||||
background: rgba(0xa44aabff).into(),
|
||||
selection: rgba(0xa44aab3d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x3b82b7ff).into(),
|
||||
background: rgba(0x3b82b7ff).into(),
|
||||
selection: rgba(0x3b82b73d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xd36151ff).into(),
|
||||
background: rgba(0xd36151ff).into(),
|
||||
selection: rgba(0xd361513d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xdec184ff).into(),
|
||||
background: rgba(0xdec184ff).into(),
|
||||
selection: rgba(0xdec1843d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x669f59ff).into(),
|
||||
background: rgba(0x669f59ff).into(),
|
||||
selection: rgba(0x669f593d).into(),
|
||||
},
|
||||
])),
|
||||
syntax: Some(UserSyntaxTheme {
|
||||
highlights: vec![
|
||||
(
|
||||
"attribute".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x5c79e2ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"boolean".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xad6f26ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"comment".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xa2a3a7ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"comment.doc".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x7c7e86ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"constant".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x669f59ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"constructor".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x5c79e2ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"embedded".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x383a41ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"emphasis".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x5c79e2ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"emphasis.strong".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xad6f26ff).into()),
|
||||
font_weight: Some(UserFontWeight(700.0)),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"enum".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xd36050ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"function".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x5b79e3ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"hint".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x9295beff).into()),
|
||||
font_weight: Some(UserFontWeight(700.0)),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"keyword".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xa449abff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"label".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x5c79e2ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"link_text".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x5b79e3ff).into()),
|
||||
font_style: Some(UserFontStyle::Italic),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"link_uri".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x3982b7ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"number".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xad6f26ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"operator".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x3982b7ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"predictive".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x9c9fc7ff).into()),
|
||||
font_style: Some(UserFontStyle::Italic),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"preproc".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x383a41ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"primary".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x383a41ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"property".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xd36050ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x383a41ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.bracket".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x4d4f52ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.delimiter".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x4d4f52ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.list_marker".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xd36050ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.special".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xb92c46ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x659f58ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.escape".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x7c7e86ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.regex".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xad6f27ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.special".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xad6f27ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.special.symbol".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xad6f27ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"tag".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x5c79e2ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"text.literal".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x659f58ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"title".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xd36050ff).into()),
|
||||
font_weight: Some(UserFontWeight(400.0)),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"type".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x3982b7ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"variable".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x383a41ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"variable.special".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xad6f26ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"variant".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x5b79e3ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
],
|
||||
}),
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load diff
|
@ -1,473 +0,0 @@
|
|||
// This file was generated by the `theme_importer`.
|
||||
// Be careful when modifying it by hand.
|
||||
|
||||
use gpui::rgba;
|
||||
|
||||
#[allow(unused)]
|
||||
use crate::{
|
||||
Appearance, PlayerColor, PlayerColors, StatusColorsRefinement, ThemeColorsRefinement,
|
||||
UserFontStyle, UserFontWeight, UserHighlightStyle, UserSyntaxTheme, UserTheme, UserThemeFamily,
|
||||
UserThemeStylesRefinement,
|
||||
};
|
||||
|
||||
pub fn sandcastle() -> UserThemeFamily {
|
||||
UserThemeFamily {
|
||||
name: "Sandcastle".into(),
|
||||
author: "Zed Industries".into(),
|
||||
themes: vec![UserTheme {
|
||||
name: "Sandcastle".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: UserThemeStylesRefinement {
|
||||
colors: ThemeColorsRefinement {
|
||||
border: Some(rgba(0x3d4350ff).into()),
|
||||
border_variant: Some(rgba(0x313741ff).into()),
|
||||
border_focused: Some(rgba(0x223232ff).into()),
|
||||
border_selected: Some(rgba(0x223232ff).into()),
|
||||
border_transparent: Some(rgba(0x00000000).into()),
|
||||
border_disabled: Some(rgba(0x393f4aff).into()),
|
||||
elevated_surface_background: Some(rgba(0x2b3039ff).into()),
|
||||
surface_background: Some(rgba(0x2b3039ff).into()),
|
||||
background: Some(rgba(0x333944ff).into()),
|
||||
panel_background: Some(rgba(0x2b3039ff).into()),
|
||||
element_background: Some(rgba(0x2b3039ff).into()),
|
||||
element_hover: Some(rgba(0x313741ff).into()),
|
||||
element_active: Some(rgba(0x3d4350ff).into()),
|
||||
element_selected: Some(rgba(0x3d4350ff).into()),
|
||||
element_disabled: Some(rgba(0x2b3039ff).into()),
|
||||
drop_target_background: Some(rgba(0xa6978280).into()),
|
||||
ghost_element_background: Some(rgba(0x00000000).into()),
|
||||
ghost_element_hover: Some(rgba(0x313741ff).into()),
|
||||
ghost_element_active: Some(rgba(0x3d4350ff).into()),
|
||||
ghost_element_selected: Some(rgba(0x3d4350ff).into()),
|
||||
ghost_element_disabled: Some(rgba(0x2b3039ff).into()),
|
||||
text: Some(rgba(0xfdf4c1ff).into()),
|
||||
text_muted: Some(rgba(0xa69782ff).into()),
|
||||
text_placeholder: Some(rgba(0x827568ff).into()),
|
||||
text_disabled: Some(rgba(0x827568ff).into()),
|
||||
text_accent: Some(rgba(0x528b8bff).into()),
|
||||
icon: Some(rgba(0xfdf4c1ff).into()),
|
||||
icon_muted: Some(rgba(0xa69782ff).into()),
|
||||
icon_disabled: Some(rgba(0x827568ff).into()),
|
||||
icon_placeholder: Some(rgba(0xa69782ff).into()),
|
||||
icon_accent: Some(rgba(0x528b8bff).into()),
|
||||
status_bar_background: Some(rgba(0x333944ff).into()),
|
||||
title_bar_background: Some(rgba(0x333944ff).into()),
|
||||
toolbar_background: Some(rgba(0x282c34ff).into()),
|
||||
tab_bar_background: Some(rgba(0x2b3039ff).into()),
|
||||
tab_inactive_background: Some(rgba(0x2b3039ff).into()),
|
||||
tab_active_background: Some(rgba(0x282c34ff).into()),
|
||||
scrollbar_thumb_background: Some(rgba(0xfdf4c14c).into()),
|
||||
scrollbar_thumb_hover_background: Some(rgba(0x313741ff).into()),
|
||||
scrollbar_thumb_border: Some(rgba(0x313741ff).into()),
|
||||
scrollbar_track_background: Some(rgba(0x00000000).into()),
|
||||
scrollbar_track_border: Some(rgba(0x2a2f38ff).into()),
|
||||
editor_foreground: Some(rgba(0xfdf4c1ff).into()),
|
||||
editor_background: Some(rgba(0x282c34ff).into()),
|
||||
editor_gutter_background: Some(rgba(0x282c34ff).into()),
|
||||
editor_subheader_background: Some(rgba(0x2b3039ff).into()),
|
||||
editor_active_line_background: Some(rgba(0x2b3039bf).into()),
|
||||
editor_highlighted_line_background: Some(rgba(0x2b3039ff).into()),
|
||||
editor_line_number: Some(rgba(0xfdf4c159).into()),
|
||||
editor_active_line_number: Some(rgba(0xfdf4c1ff).into()),
|
||||
editor_invisible: Some(rgba(0x7c6f64ff).into()),
|
||||
editor_wrap_guide: Some(rgba(0xfdf4c10d).into()),
|
||||
editor_active_wrap_guide: Some(rgba(0xfdf4c11a).into()),
|
||||
editor_document_highlight_read_background: Some(rgba(0x528b8b1a).into()),
|
||||
editor_document_highlight_write_background: Some(rgba(0x7c6f6466).into()),
|
||||
terminal_background: Some(rgba(0x282c34ff).into()),
|
||||
terminal_foreground: Some(rgba(0xfdf4c1ff).into()),
|
||||
terminal_bright_foreground: Some(rgba(0xfdf4c1ff).into()),
|
||||
terminal_dim_foreground: Some(rgba(0x282c34ff).into()),
|
||||
terminal_ansi_black: Some(rgba(0x282c34ff).into()),
|
||||
terminal_ansi_bright_black: Some(rgba(0x5e5753ff).into()),
|
||||
terminal_ansi_dim_black: Some(rgba(0xfdf4c1ff).into()),
|
||||
terminal_ansi_red: Some(rgba(0xb4637aff).into()),
|
||||
terminal_ansi_bright_red: Some(rgba(0x57333dff).into()),
|
||||
terminal_ansi_dim_red: Some(rgba(0xdcb0bbff).into()),
|
||||
terminal_ansi_green: Some(rgba(0x83a598ff).into()),
|
||||
terminal_ansi_bright_green: Some(rgba(0x414f4aff).into()),
|
||||
terminal_ansi_dim_green: Some(rgba(0xc0d2cbff).into()),
|
||||
terminal_ansi_yellow: Some(rgba(0xa07e3bff).into()),
|
||||
terminal_ansi_bright_yellow: Some(rgba(0x4e3f22ff).into()),
|
||||
terminal_ansi_dim_yellow: Some(rgba(0xd3bd9aff).into()),
|
||||
terminal_ansi_blue: Some(rgba(0x528b8bff).into()),
|
||||
terminal_ansi_bright_blue: Some(rgba(0x2c4444ff).into()),
|
||||
terminal_ansi_dim_blue: Some(rgba(0xa8c4c4ff).into()),
|
||||
terminal_ansi_magenta: Some(rgba(0xa87323ff).into()),
|
||||
terminal_ansi_bright_magenta: Some(rgba(0x523a18ff).into()),
|
||||
terminal_ansi_dim_magenta: Some(rgba(0xdab78eff).into()),
|
||||
terminal_ansi_cyan: Some(rgba(0x83a598ff).into()),
|
||||
terminal_ansi_bright_cyan: Some(rgba(0x414f4aff).into()),
|
||||
terminal_ansi_dim_cyan: Some(rgba(0xc0d2cbff).into()),
|
||||
terminal_ansi_white: Some(rgba(0xfdf4c1ff).into()),
|
||||
terminal_ansi_bright_white: Some(rgba(0xfdf4c1ff).into()),
|
||||
terminal_ansi_dim_white: Some(rgba(0x968777ff).into()),
|
||||
link_text_hover: Some(rgba(0x528b8bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
status: StatusColorsRefinement {
|
||||
conflict: Some(rgba(0xa07e3bff).into()),
|
||||
conflict_background: Some(rgba(0x231d12ff).into()),
|
||||
conflict_border: Some(rgba(0x392e1aff).into()),
|
||||
created: Some(rgba(0x83a598ff).into()),
|
||||
created_background: Some(rgba(0x1e2321ff).into()),
|
||||
created_border: Some(rgba(0x303a36ff).into()),
|
||||
deleted: Some(rgba(0xb4637aff).into()),
|
||||
deleted_background: Some(rgba(0x26191cff).into()),
|
||||
deleted_border: Some(rgba(0x3f272dff).into()),
|
||||
error: Some(rgba(0xb4637aff).into()),
|
||||
error_background: Some(rgba(0x26191cff).into()),
|
||||
error_border: Some(rgba(0x3f272dff).into()),
|
||||
hidden: Some(rgba(0x827568ff).into()),
|
||||
hidden_background: Some(rgba(0x333944ff).into()),
|
||||
hidden_border: Some(rgba(0x393f4aff).into()),
|
||||
hint: Some(rgba(0x727d68ff).into()),
|
||||
hint_background: Some(rgba(0x171f1fff).into()),
|
||||
hint_border: Some(rgba(0x223232ff).into()),
|
||||
ignored: Some(rgba(0xa69782ff).into()),
|
||||
ignored_background: Some(rgba(0x333944ff).into()),
|
||||
ignored_border: Some(rgba(0x3d4350ff).into()),
|
||||
info: Some(rgba(0x528b8bff).into()),
|
||||
info_background: Some(rgba(0x171f1fff).into()),
|
||||
info_border: Some(rgba(0x223232ff).into()),
|
||||
modified: Some(rgba(0xa07e3bff).into()),
|
||||
modified_background: Some(rgba(0x231d12ff).into()),
|
||||
modified_border: Some(rgba(0x392e1aff).into()),
|
||||
predictive: Some(rgba(0x5c6152ff).into()),
|
||||
predictive_background: Some(rgba(0x1e2321ff).into()),
|
||||
predictive_border: Some(rgba(0x303a36ff).into()),
|
||||
renamed: Some(rgba(0x528b8bff).into()),
|
||||
renamed_background: Some(rgba(0x171f1fff).into()),
|
||||
renamed_border: Some(rgba(0x223232ff).into()),
|
||||
success: Some(rgba(0x83a598ff).into()),
|
||||
success_background: Some(rgba(0x1e2321ff).into()),
|
||||
success_border: Some(rgba(0x303a36ff).into()),
|
||||
unreachable: Some(rgba(0xa69782ff).into()),
|
||||
unreachable_background: Some(rgba(0x333944ff).into()),
|
||||
unreachable_border: Some(rgba(0x3d4350ff).into()),
|
||||
warning: Some(rgba(0xa07e3bff).into()),
|
||||
warning_background: Some(rgba(0x231d12ff).into()),
|
||||
warning_border: Some(rgba(0x392e1aff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
player: Some(PlayerColors(vec![
|
||||
PlayerColor {
|
||||
cursor: rgba(0x528b8bff).into(),
|
||||
background: rgba(0x528b8bff).into(),
|
||||
selection: rgba(0x528b8b3d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xa87323ff).into(),
|
||||
background: rgba(0xa87323ff).into(),
|
||||
selection: rgba(0xa873233d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xa07e3bff).into(),
|
||||
background: rgba(0xa07e3bff).into(),
|
||||
selection: rgba(0xa07e3b3d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xd75f5fff).into(),
|
||||
background: rgba(0xd75f5fff).into(),
|
||||
selection: rgba(0xd75f5f3d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x83a598ff).into(),
|
||||
background: rgba(0x83a598ff).into(),
|
||||
selection: rgba(0x83a5983d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xb4637aff).into(),
|
||||
background: rgba(0xb4637aff).into(),
|
||||
selection: rgba(0xb4637a3d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xa07e3bff).into(),
|
||||
background: rgba(0xa07e3bff).into(),
|
||||
selection: rgba(0xa07e3b3d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x83a598ff).into(),
|
||||
background: rgba(0x83a598ff).into(),
|
||||
selection: rgba(0x83a5983d).into(),
|
||||
},
|
||||
])),
|
||||
syntax: Some(UserSyntaxTheme {
|
||||
highlights: vec![
|
||||
(
|
||||
"attribute".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x528b8bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"boolean".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x83a598ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"comment".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xa89984ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"comment.doc".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xa89984ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"constant".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x83a598ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"constructor".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x528b8bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"embedded".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xfdf4c1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"emphasis".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x528b8bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"emphasis.strong".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x528b8bff).into()),
|
||||
font_weight: Some(UserFontWeight(700.0)),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"enum".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xa07e3bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"function".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xa07e3bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"hint".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x727d68ff).into()),
|
||||
font_weight: Some(UserFontWeight(700.0)),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"keyword".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x528b8bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"label".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x528b8bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"link_text".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xa07e3bff).into()),
|
||||
font_style: Some(UserFontStyle::Italic),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"link_uri".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x83a598ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"number".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x83a598ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"operator".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xa07e3bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"predictive".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x5c6152ff).into()),
|
||||
font_style: Some(UserFontStyle::Italic),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"preproc".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xfdf4c1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"primary".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xfdf4c1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"property".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x528b8bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xd5c5a1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.bracket".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xd5c5a1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.delimiter".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xd5c5a1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.list_marker".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xd5c5a1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.special".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xd5c5a1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xa07e3bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.escape".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xa89984ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.regex".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xa07e3bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.special".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xa07e3bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.special.symbol".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xa07e3bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"tag".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x528b8bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"text.literal".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xa07e3bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"title".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xfdf4c1ff).into()),
|
||||
font_weight: Some(UserFontWeight(700.0)),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"type".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x83a598ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"variable".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xfdf4c1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"variant".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x528b8bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
],
|
||||
}),
|
||||
},
|
||||
}],
|
||||
}
|
||||
}
|
|
@ -1,930 +0,0 @@
|
|||
// This file was generated by the `theme_importer`.
|
||||
// Be careful when modifying it by hand.
|
||||
|
||||
use gpui::rgba;
|
||||
|
||||
#[allow(unused)]
|
||||
use crate::{
|
||||
Appearance, PlayerColor, PlayerColors, StatusColorsRefinement, ThemeColorsRefinement,
|
||||
UserFontStyle, UserFontWeight, UserHighlightStyle, UserSyntaxTheme, UserTheme, UserThemeFamily,
|
||||
UserThemeStylesRefinement,
|
||||
};
|
||||
|
||||
pub fn solarized() -> UserThemeFamily {
|
||||
UserThemeFamily {
|
||||
name: "Solarized".into(),
|
||||
author: "Zed Industries".into(),
|
||||
themes: vec![
|
||||
UserTheme {
|
||||
name: "Solarized Dark".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: UserThemeStylesRefinement {
|
||||
colors: ThemeColorsRefinement {
|
||||
border: Some(rgba(0x2b4f58ff).into()),
|
||||
border_variant: Some(rgba(0x063541ff).into()),
|
||||
border_focused: Some(rgba(0x1c3249ff).into()),
|
||||
border_selected: Some(rgba(0x1c3249ff).into()),
|
||||
border_transparent: Some(rgba(0x00000000).into()),
|
||||
border_disabled: Some(rgba(0x19424dff).into()),
|
||||
elevated_surface_background: Some(rgba(0x04313cff).into()),
|
||||
surface_background: Some(rgba(0x04313cff).into()),
|
||||
background: Some(rgba(0x083743ff).into()),
|
||||
panel_background: Some(rgba(0x04313cff).into()),
|
||||
element_background: Some(rgba(0x04313cff).into()),
|
||||
element_hover: Some(rgba(0x063541ff).into()),
|
||||
element_active: Some(rgba(0x294e58ff).into()),
|
||||
element_selected: Some(rgba(0x294e58ff).into()),
|
||||
element_disabled: Some(rgba(0x04313cff).into()),
|
||||
drop_target_background: Some(rgba(0x93a1a180).into()),
|
||||
ghost_element_background: Some(rgba(0x00000000).into()),
|
||||
ghost_element_hover: Some(rgba(0x063541ff).into()),
|
||||
ghost_element_active: Some(rgba(0x294e58ff).into()),
|
||||
ghost_element_selected: Some(rgba(0x294e58ff).into()),
|
||||
ghost_element_disabled: Some(rgba(0x04313cff).into()),
|
||||
text: Some(rgba(0xfdf6e3ff).into()),
|
||||
text_muted: Some(rgba(0x93a1a1ff).into()),
|
||||
text_placeholder: Some(rgba(0x6f8389ff).into()),
|
||||
text_disabled: Some(rgba(0x6f8389ff).into()),
|
||||
text_accent: Some(rgba(0x288bd1ff).into()),
|
||||
icon: Some(rgba(0xfdf6e3ff).into()),
|
||||
icon_muted: Some(rgba(0x93a1a1ff).into()),
|
||||
icon_disabled: Some(rgba(0x6f8389ff).into()),
|
||||
icon_placeholder: Some(rgba(0x93a1a1ff).into()),
|
||||
icon_accent: Some(rgba(0x288bd1ff).into()),
|
||||
status_bar_background: Some(rgba(0x083743ff).into()),
|
||||
title_bar_background: Some(rgba(0x083743ff).into()),
|
||||
toolbar_background: Some(rgba(0x002b36ff).into()),
|
||||
tab_bar_background: Some(rgba(0x04313cff).into()),
|
||||
tab_inactive_background: Some(rgba(0x04313cff).into()),
|
||||
tab_active_background: Some(rgba(0x002b36ff).into()),
|
||||
scrollbar_thumb_background: Some(rgba(0xfdf6e34c).into()),
|
||||
scrollbar_thumb_hover_background: Some(rgba(0x063541ff).into()),
|
||||
scrollbar_thumb_border: Some(rgba(0x063541ff).into()),
|
||||
scrollbar_track_background: Some(rgba(0x00000000).into()),
|
||||
scrollbar_track_border: Some(rgba(0x032f3bff).into()),
|
||||
editor_foreground: Some(rgba(0xfdf6e3ff).into()),
|
||||
editor_background: Some(rgba(0x002b36ff).into()),
|
||||
editor_gutter_background: Some(rgba(0x002b36ff).into()),
|
||||
editor_subheader_background: Some(rgba(0x04313cff).into()),
|
||||
editor_active_line_background: Some(rgba(0x04313cbf).into()),
|
||||
editor_highlighted_line_background: Some(rgba(0x04313cff).into()),
|
||||
editor_line_number: Some(rgba(0xfdf6e359).into()),
|
||||
editor_active_line_number: Some(rgba(0xfdf6e3ff).into()),
|
||||
editor_invisible: Some(rgba(0x6d8288ff).into()),
|
||||
editor_wrap_guide: Some(rgba(0xfdf6e30d).into()),
|
||||
editor_active_wrap_guide: Some(rgba(0xfdf6e31a).into()),
|
||||
editor_document_highlight_read_background: Some(rgba(0x288bd11a).into()),
|
||||
editor_document_highlight_write_background: Some(rgba(0x6d828866).into()),
|
||||
terminal_background: Some(rgba(0x002b36ff).into()),
|
||||
terminal_foreground: Some(rgba(0xfdf6e3ff).into()),
|
||||
terminal_bright_foreground: Some(rgba(0xfdf6e3ff).into()),
|
||||
terminal_dim_foreground: Some(rgba(0x002b36ff).into()),
|
||||
terminal_ansi_black: Some(rgba(0x002b36ff).into()),
|
||||
terminal_ansi_bright_black: Some(rgba(0x5c7279ff).into()),
|
||||
terminal_ansi_dim_black: Some(rgba(0xfdf6e3ff).into()),
|
||||
terminal_ansi_red: Some(rgba(0xdc3330ff).into()),
|
||||
terminal_ansi_bright_red: Some(rgba(0x7d181cff).into()),
|
||||
terminal_ansi_dim_red: Some(rgba(0xfaa091ff).into()),
|
||||
terminal_ansi_green: Some(rgba(0x859904ff).into()),
|
||||
terminal_ansi_bright_green: Some(rgba(0x434a11ff).into()),
|
||||
terminal_ansi_dim_green: Some(rgba(0xc6cb8bff).into()),
|
||||
terminal_ansi_yellow: Some(rgba(0xb58903ff).into()),
|
||||
terminal_ansi_bright_yellow: Some(rgba(0x5d4310ff).into()),
|
||||
terminal_ansi_dim_yellow: Some(rgba(0xe1c28aff).into()),
|
||||
terminal_ansi_blue: Some(rgba(0x288bd1ff).into()),
|
||||
terminal_ansi_bright_blue: Some(rgba(0x214465ff).into()),
|
||||
terminal_ansi_dim_blue: Some(rgba(0xa5c3e9ff).into()),
|
||||
terminal_ansi_magenta: Some(rgba(0xd33782ff).into()),
|
||||
terminal_ansi_bright_magenta: Some(rgba(0x6f1f40ff).into()),
|
||||
terminal_ansi_dim_magenta: Some(rgba(0xf0a2bfff).into()),
|
||||
terminal_ansi_cyan: Some(rgba(0x2ca198ff).into()),
|
||||
terminal_ansi_bright_cyan: Some(rgba(0x204e4aff).into()),
|
||||
terminal_ansi_dim_cyan: Some(rgba(0x9fd0cbff).into()),
|
||||
terminal_ansi_white: Some(rgba(0xfdf6e3ff).into()),
|
||||
terminal_ansi_bright_white: Some(rgba(0xfdf6e3ff).into()),
|
||||
terminal_ansi_dim_white: Some(rgba(0x7b8e91ff).into()),
|
||||
link_text_hover: Some(rgba(0x288bd1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
status: StatusColorsRefinement {
|
||||
conflict: Some(rgba(0xb58903ff).into()),
|
||||
conflict_background: Some(rgba(0x2f1e0cff).into()),
|
||||
conflict_border: Some(rgba(0x473110ff).into()),
|
||||
created: Some(rgba(0x859904ff).into()),
|
||||
created_background: Some(rgba(0x1f210cff).into()),
|
||||
created_border: Some(rgba(0x323610ff).into()),
|
||||
deleted: Some(rgba(0xdc3330ff).into()),
|
||||
deleted_background: Some(rgba(0x4a090fff).into()),
|
||||
deleted_border: Some(rgba(0x641116ff).into()),
|
||||
error: Some(rgba(0xdc3330ff).into()),
|
||||
error_background: Some(rgba(0x4a090fff).into()),
|
||||
error_border: Some(rgba(0x641116ff).into()),
|
||||
hidden: Some(rgba(0x6f8389ff).into()),
|
||||
hidden_background: Some(rgba(0x083743ff).into()),
|
||||
hidden_border: Some(rgba(0x19424dff).into()),
|
||||
hint: Some(rgba(0x4f8297ff).into()),
|
||||
hint_background: Some(rgba(0x141f2cff).into()),
|
||||
hint_border: Some(rgba(0x1c3249ff).into()),
|
||||
ignored: Some(rgba(0x93a1a1ff).into()),
|
||||
ignored_background: Some(rgba(0x083743ff).into()),
|
||||
ignored_border: Some(rgba(0x2b4f58ff).into()),
|
||||
info: Some(rgba(0x288bd1ff).into()),
|
||||
info_background: Some(rgba(0x141f2cff).into()),
|
||||
info_border: Some(rgba(0x1c3249ff).into()),
|
||||
modified: Some(rgba(0xb58903ff).into()),
|
||||
modified_background: Some(rgba(0x2f1e0cff).into()),
|
||||
modified_border: Some(rgba(0x473110ff).into()),
|
||||
predictive: Some(rgba(0x40728bff).into()),
|
||||
predictive_background: Some(rgba(0x1f210cff).into()),
|
||||
predictive_border: Some(rgba(0x323610ff).into()),
|
||||
renamed: Some(rgba(0x288bd1ff).into()),
|
||||
renamed_background: Some(rgba(0x141f2cff).into()),
|
||||
renamed_border: Some(rgba(0x1c3249ff).into()),
|
||||
success: Some(rgba(0x859904ff).into()),
|
||||
success_background: Some(rgba(0x1f210cff).into()),
|
||||
success_border: Some(rgba(0x323610ff).into()),
|
||||
unreachable: Some(rgba(0x93a1a1ff).into()),
|
||||
unreachable_background: Some(rgba(0x083743ff).into()),
|
||||
unreachable_border: Some(rgba(0x2b4f58ff).into()),
|
||||
warning: Some(rgba(0xb58903ff).into()),
|
||||
warning_background: Some(rgba(0x2f1e0cff).into()),
|
||||
warning_border: Some(rgba(0x473110ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
player: Some(PlayerColors(vec![
|
||||
PlayerColor {
|
||||
cursor: rgba(0x288bd1ff).into(),
|
||||
background: rgba(0x288bd1ff).into(),
|
||||
selection: rgba(0x288bd13d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xd33782ff).into(),
|
||||
background: rgba(0xd33782ff).into(),
|
||||
selection: rgba(0xd337823d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xcb4b17ff).into(),
|
||||
background: rgba(0xcb4b17ff).into(),
|
||||
selection: rgba(0xcb4b173d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x6c71c4ff).into(),
|
||||
background: rgba(0x6c71c4ff).into(),
|
||||
selection: rgba(0x6c71c43d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x2ca198ff).into(),
|
||||
background: rgba(0x2ca198ff).into(),
|
||||
selection: rgba(0x2ca1983d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xdc3330ff).into(),
|
||||
background: rgba(0xdc3330ff).into(),
|
||||
selection: rgba(0xdc33303d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xb58903ff).into(),
|
||||
background: rgba(0xb58903ff).into(),
|
||||
selection: rgba(0xb589033d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x859904ff).into(),
|
||||
background: rgba(0x859904ff).into(),
|
||||
selection: rgba(0x8599043d).into(),
|
||||
},
|
||||
])),
|
||||
syntax: Some(UserSyntaxTheme {
|
||||
highlights: vec![
|
||||
(
|
||||
"attribute".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x288bd1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"boolean".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x859904ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"comment".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x99a5a4ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"comment.doc".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x99a5a4ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"constant".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x859904ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"constructor".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x288bd1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"embedded".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xfdf6e3ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"emphasis".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x288bd1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"emphasis.strong".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x288bd1ff).into()),
|
||||
font_weight: Some(UserFontWeight(700.0)),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"enum".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xcb4b17ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"function".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xb58903ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"hint".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x4f8297ff).into()),
|
||||
font_weight: Some(UserFontWeight(700.0)),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"keyword".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x288bd1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"label".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x288bd1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"link_text".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xcb4b17ff).into()),
|
||||
font_style: Some(UserFontStyle::Italic),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"link_uri".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x859904ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"number".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x859904ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"operator".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xcb4b17ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"predictive".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x40728bff).into()),
|
||||
font_style: Some(UserFontStyle::Italic),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"preproc".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xfdf6e3ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"primary".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xfdf6e3ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"property".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x288bd1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xefe9d6ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.bracket".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xefe9d6ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.delimiter".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xefe9d6ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.list_marker".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xefe9d6ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.special".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xefe9d6ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xcb4b17ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.escape".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x99a5a4ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.regex".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xcb4b17ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.special".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xcb4b17ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.special.symbol".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xcb4b17ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"tag".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x288bd1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"text.literal".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xcb4b17ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"title".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xfdf6e3ff).into()),
|
||||
font_weight: Some(UserFontWeight(700.0)),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"type".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x2ca198ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"variable".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xfdf6e3ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"variant".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x288bd1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
],
|
||||
}),
|
||||
},
|
||||
},
|
||||
UserTheme {
|
||||
name: "Solarized Light".into(),
|
||||
appearance: Appearance::Light,
|
||||
styles: UserThemeStylesRefinement {
|
||||
colors: ThemeColorsRefinement {
|
||||
border: Some(rgba(0x9faaa8ff).into()),
|
||||
border_variant: Some(rgba(0xdcdacbff).into()),
|
||||
border_focused: Some(rgba(0xbfd3efff).into()),
|
||||
border_selected: Some(rgba(0xbfd3efff).into()),
|
||||
border_transparent: Some(rgba(0x00000000).into()),
|
||||
border_disabled: Some(rgba(0xb7bdb6ff).into()),
|
||||
elevated_surface_background: Some(rgba(0xf3eddaff).into()),
|
||||
surface_background: Some(rgba(0xf3eddaff).into()),
|
||||
background: Some(rgba(0xcfd0c4ff).into()),
|
||||
panel_background: Some(rgba(0xf3eddaff).into()),
|
||||
element_background: Some(rgba(0xf3eddaff).into()),
|
||||
element_hover: Some(rgba(0xdcdacbff).into()),
|
||||
element_active: Some(rgba(0xa2aca9ff).into()),
|
||||
element_selected: Some(rgba(0xa2aca9ff).into()),
|
||||
element_disabled: Some(rgba(0xf3eddaff).into()),
|
||||
drop_target_background: Some(rgba(0x34555e80).into()),
|
||||
ghost_element_background: Some(rgba(0x00000000).into()),
|
||||
ghost_element_hover: Some(rgba(0xdcdacbff).into()),
|
||||
ghost_element_active: Some(rgba(0xa2aca9ff).into()),
|
||||
ghost_element_selected: Some(rgba(0xa2aca9ff).into()),
|
||||
ghost_element_disabled: Some(rgba(0xf3eddaff).into()),
|
||||
text: Some(rgba(0x002b36ff).into()),
|
||||
text_muted: Some(rgba(0x34555eff).into()),
|
||||
text_placeholder: Some(rgba(0x6a7f86ff).into()),
|
||||
text_disabled: Some(rgba(0x6a7f86ff).into()),
|
||||
text_accent: Some(rgba(0x298bd1ff).into()),
|
||||
icon: Some(rgba(0x002b36ff).into()),
|
||||
icon_muted: Some(rgba(0x34555eff).into()),
|
||||
icon_disabled: Some(rgba(0x6a7f86ff).into()),
|
||||
icon_placeholder: Some(rgba(0x34555eff).into()),
|
||||
icon_accent: Some(rgba(0x298bd1ff).into()),
|
||||
status_bar_background: Some(rgba(0xcfd0c4ff).into()),
|
||||
title_bar_background: Some(rgba(0xcfd0c4ff).into()),
|
||||
toolbar_background: Some(rgba(0xfdf6e3ff).into()),
|
||||
tab_bar_background: Some(rgba(0xf3eddaff).into()),
|
||||
tab_inactive_background: Some(rgba(0xf3eddaff).into()),
|
||||
tab_active_background: Some(rgba(0xfdf6e3ff).into()),
|
||||
scrollbar_thumb_background: Some(rgba(0x002b364c).into()),
|
||||
scrollbar_thumb_hover_background: Some(rgba(0xdcdacbff).into()),
|
||||
scrollbar_thumb_border: Some(rgba(0xdcdacbff).into()),
|
||||
scrollbar_track_background: Some(rgba(0x00000000).into()),
|
||||
scrollbar_track_border: Some(rgba(0xf5eedbff).into()),
|
||||
editor_foreground: Some(rgba(0x002b36ff).into()),
|
||||
editor_background: Some(rgba(0xfdf6e3ff).into()),
|
||||
editor_gutter_background: Some(rgba(0xfdf6e3ff).into()),
|
||||
editor_subheader_background: Some(rgba(0xf3eddaff).into()),
|
||||
editor_active_line_background: Some(rgba(0xf3eddabf).into()),
|
||||
editor_highlighted_line_background: Some(rgba(0xf3eddaff).into()),
|
||||
editor_line_number: Some(rgba(0x002b3659).into()),
|
||||
editor_active_line_number: Some(rgba(0x002b36ff).into()),
|
||||
editor_invisible: Some(rgba(0x6d8288ff).into()),
|
||||
editor_wrap_guide: Some(rgba(0x002b360d).into()),
|
||||
editor_active_wrap_guide: Some(rgba(0x002b361a).into()),
|
||||
editor_document_highlight_read_background: Some(rgba(0x298bd11a).into()),
|
||||
editor_document_highlight_write_background: Some(rgba(0x6d828866).into()),
|
||||
terminal_background: Some(rgba(0xfdf6e3ff).into()),
|
||||
terminal_foreground: Some(rgba(0x002b36ff).into()),
|
||||
terminal_bright_foreground: Some(rgba(0x002b36ff).into()),
|
||||
terminal_dim_foreground: Some(rgba(0xfdf6e3ff).into()),
|
||||
terminal_ansi_black: Some(rgba(0xfdf6e3ff).into()),
|
||||
terminal_ansi_bright_black: Some(rgba(0x7b8e91ff).into()),
|
||||
terminal_ansi_dim_black: Some(rgba(0x002b36ff).into()),
|
||||
terminal_ansi_red: Some(rgba(0xdc3330ff).into()),
|
||||
terminal_ansi_bright_red: Some(rgba(0xfaa091ff).into()),
|
||||
terminal_ansi_dim_red: Some(rgba(0x7d181cff).into()),
|
||||
terminal_ansi_green: Some(rgba(0x859904ff).into()),
|
||||
terminal_ansi_bright_green: Some(rgba(0xc6cb8bff).into()),
|
||||
terminal_ansi_dim_green: Some(rgba(0x434a11ff).into()),
|
||||
terminal_ansi_yellow: Some(rgba(0xb58904ff).into()),
|
||||
terminal_ansi_bright_yellow: Some(rgba(0xe1c28aff).into()),
|
||||
terminal_ansi_dim_yellow: Some(rgba(0x5d4310ff).into()),
|
||||
terminal_ansi_blue: Some(rgba(0x298bd1ff).into()),
|
||||
terminal_ansi_bright_blue: Some(rgba(0xa5c3e9ff).into()),
|
||||
terminal_ansi_dim_blue: Some(rgba(0x214465ff).into()),
|
||||
terminal_ansi_magenta: Some(rgba(0xd33882ff).into()),
|
||||
terminal_ansi_bright_magenta: Some(rgba(0xf0a2bfff).into()),
|
||||
terminal_ansi_dim_magenta: Some(rgba(0x6f1f40ff).into()),
|
||||
terminal_ansi_cyan: Some(rgba(0x2ca198ff).into()),
|
||||
terminal_ansi_bright_cyan: Some(rgba(0x9fd0cbff).into()),
|
||||
terminal_ansi_dim_cyan: Some(rgba(0x204e4aff).into()),
|
||||
terminal_ansi_white: Some(rgba(0x002b36ff).into()),
|
||||
terminal_ansi_bright_white: Some(rgba(0x002b36ff).into()),
|
||||
terminal_ansi_dim_white: Some(rgba(0x5c7279ff).into()),
|
||||
link_text_hover: Some(rgba(0x298bd1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
status: StatusColorsRefinement {
|
||||
conflict: Some(rgba(0xb58904ff).into()),
|
||||
conflict_background: Some(rgba(0xf5e6d0ff).into()),
|
||||
conflict_border: Some(rgba(0xebd3aaff).into()),
|
||||
created: Some(rgba(0x859904ff).into()),
|
||||
created_background: Some(rgba(0xe9ead0ff).into()),
|
||||
created_border: Some(rgba(0xd6d9abff).into()),
|
||||
deleted: Some(rgba(0xdc3330ff).into()),
|
||||
deleted_background: Some(rgba(0xffd9d2ff).into()),
|
||||
deleted_border: Some(rgba(0xffbbafff).into()),
|
||||
error: Some(rgba(0xdc3330ff).into()),
|
||||
error_background: Some(rgba(0xffd9d2ff).into()),
|
||||
error_border: Some(rgba(0xffbbafff).into()),
|
||||
hidden: Some(rgba(0x6a7f86ff).into()),
|
||||
hidden_background: Some(rgba(0xcfd0c4ff).into()),
|
||||
hidden_border: Some(rgba(0xb7bdb6ff).into()),
|
||||
hint: Some(rgba(0x5889a3ff).into()),
|
||||
hint_background: Some(rgba(0xdbe6f6ff).into()),
|
||||
hint_border: Some(rgba(0xbfd3efff).into()),
|
||||
ignored: Some(rgba(0x34555eff).into()),
|
||||
ignored_background: Some(rgba(0xcfd0c4ff).into()),
|
||||
ignored_border: Some(rgba(0x9faaa8ff).into()),
|
||||
info: Some(rgba(0x298bd1ff).into()),
|
||||
info_background: Some(rgba(0xdbe6f6ff).into()),
|
||||
info_border: Some(rgba(0xbfd3efff).into()),
|
||||
modified: Some(rgba(0xb58904ff).into()),
|
||||
modified_background: Some(rgba(0xf5e6d0ff).into()),
|
||||
modified_border: Some(rgba(0xebd3aaff).into()),
|
||||
predictive: Some(rgba(0x679aafff).into()),
|
||||
predictive_background: Some(rgba(0xe9ead0ff).into()),
|
||||
predictive_border: Some(rgba(0xd6d9abff).into()),
|
||||
renamed: Some(rgba(0x298bd1ff).into()),
|
||||
renamed_background: Some(rgba(0xdbe6f6ff).into()),
|
||||
renamed_border: Some(rgba(0xbfd3efff).into()),
|
||||
success: Some(rgba(0x859904ff).into()),
|
||||
success_background: Some(rgba(0xe9ead0ff).into()),
|
||||
success_border: Some(rgba(0xd6d9abff).into()),
|
||||
unreachable: Some(rgba(0x34555eff).into()),
|
||||
unreachable_background: Some(rgba(0xcfd0c4ff).into()),
|
||||
unreachable_border: Some(rgba(0x9faaa8ff).into()),
|
||||
warning: Some(rgba(0xb58904ff).into()),
|
||||
warning_background: Some(rgba(0xf5e6d0ff).into()),
|
||||
warning_border: Some(rgba(0xebd3aaff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
player: Some(PlayerColors(vec![
|
||||
PlayerColor {
|
||||
cursor: rgba(0x298bd1ff).into(),
|
||||
background: rgba(0x298bd1ff).into(),
|
||||
selection: rgba(0x298bd13d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xd33882ff).into(),
|
||||
background: rgba(0xd33882ff).into(),
|
||||
selection: rgba(0xd338823d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xcb4c18ff).into(),
|
||||
background: rgba(0xcb4c18ff).into(),
|
||||
selection: rgba(0xcb4c183d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x6d71c4ff).into(),
|
||||
background: rgba(0x6d71c4ff).into(),
|
||||
selection: rgba(0x6d71c43d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x2ca198ff).into(),
|
||||
background: rgba(0x2ca198ff).into(),
|
||||
selection: rgba(0x2ca1983d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xdc3330ff).into(),
|
||||
background: rgba(0xdc3330ff).into(),
|
||||
selection: rgba(0xdc33303d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xb58904ff).into(),
|
||||
background: rgba(0xb58904ff).into(),
|
||||
selection: rgba(0xb589043d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x859904ff).into(),
|
||||
background: rgba(0x859904ff).into(),
|
||||
selection: rgba(0x8599043d).into(),
|
||||
},
|
||||
])),
|
||||
syntax: Some(UserSyntaxTheme {
|
||||
highlights: vec![
|
||||
(
|
||||
"attribute".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x298bd1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"boolean".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x859904ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"comment".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x30525bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"comment.doc".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x30525bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"constant".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x859904ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"constructor".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x298bd1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"embedded".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x002b36ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"emphasis".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x298bd1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"emphasis.strong".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x298bd1ff).into()),
|
||||
font_weight: Some(UserFontWeight(700.0)),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"enum".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xcb4c18ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"function".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xb58904ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"hint".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x5889a3ff).into()),
|
||||
font_weight: Some(UserFontWeight(700.0)),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"keyword".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x298bd1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"label".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x298bd1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"link_text".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xcb4c18ff).into()),
|
||||
font_style: Some(UserFontStyle::Italic),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"link_uri".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x859904ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"number".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x859904ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"operator".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xcb4c18ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"predictive".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x679aafff).into()),
|
||||
font_style: Some(UserFontStyle::Italic),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"preproc".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x002b36ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"primary".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x002b36ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"property".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x298bd1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x05333eff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.bracket".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x05333eff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.delimiter".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x05333eff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.list_marker".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x05333eff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.special".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x05333eff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xcb4c18ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.escape".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x30525bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.regex".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xcb4c18ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.special".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xcb4c18ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.special.symbol".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xcb4c18ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"tag".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x298bd1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"text.literal".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xcb4c18ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"title".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x002b36ff).into()),
|
||||
font_weight: Some(UserFontWeight(700.0)),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"type".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x2ca198ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"variable".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x002b36ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"variant".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x298bd1ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
],
|
||||
}),
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
}
|
|
@ -1,473 +0,0 @@
|
|||
// This file was generated by the `theme_importer`.
|
||||
// Be careful when modifying it by hand.
|
||||
|
||||
use gpui::rgba;
|
||||
|
||||
#[allow(unused)]
|
||||
use crate::{
|
||||
Appearance, PlayerColor, PlayerColors, StatusColorsRefinement, ThemeColorsRefinement,
|
||||
UserFontStyle, UserFontWeight, UserHighlightStyle, UserSyntaxTheme, UserTheme, UserThemeFamily,
|
||||
UserThemeStylesRefinement,
|
||||
};
|
||||
|
||||
pub fn summercamp() -> UserThemeFamily {
|
||||
UserThemeFamily {
|
||||
name: "Summercamp".into(),
|
||||
author: "Zed Industries".into(),
|
||||
themes: vec![UserTheme {
|
||||
name: "Summercamp".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: UserThemeStylesRefinement {
|
||||
colors: ThemeColorsRefinement {
|
||||
border: Some(rgba(0x312d21ff).into()),
|
||||
border_variant: Some(rgba(0x29251bff).into()),
|
||||
border_focused: Some(rgba(0x193761ff).into()),
|
||||
border_selected: Some(rgba(0x193761ff).into()),
|
||||
border_transparent: Some(rgba(0x00000000).into()),
|
||||
border_disabled: Some(rgba(0x2e2a1fff).into()),
|
||||
elevated_surface_background: Some(rgba(0x231f16ff).into()),
|
||||
surface_background: Some(rgba(0x231f16ff).into()),
|
||||
background: Some(rgba(0x2a261cff).into()),
|
||||
panel_background: Some(rgba(0x231f16ff).into()),
|
||||
element_background: Some(rgba(0x231f16ff).into()),
|
||||
element_hover: Some(rgba(0x29251bff).into()),
|
||||
element_active: Some(rgba(0x302c20ff).into()),
|
||||
element_selected: Some(rgba(0x302c20ff).into()),
|
||||
element_disabled: Some(rgba(0x231f16ff).into()),
|
||||
drop_target_background: Some(rgba(0x736e5580).into()),
|
||||
ghost_element_background: Some(rgba(0x00000000).into()),
|
||||
ghost_element_hover: Some(rgba(0x29251bff).into()),
|
||||
ghost_element_active: Some(rgba(0x302c20ff).into()),
|
||||
ghost_element_selected: Some(rgba(0x302c20ff).into()),
|
||||
ghost_element_disabled: Some(rgba(0x231f16ff).into()),
|
||||
text: Some(rgba(0xf8f5deff).into()),
|
||||
text_muted: Some(rgba(0x736e55ff).into()),
|
||||
text_placeholder: Some(rgba(0x4c4735ff).into()),
|
||||
text_disabled: Some(rgba(0x4c4735ff).into()),
|
||||
text_accent: Some(rgba(0x499befff).into()),
|
||||
icon: Some(rgba(0xf8f5deff).into()),
|
||||
icon_muted: Some(rgba(0x736e55ff).into()),
|
||||
icon_disabled: Some(rgba(0x4c4735ff).into()),
|
||||
icon_placeholder: Some(rgba(0x736e55ff).into()),
|
||||
icon_accent: Some(rgba(0x499befff).into()),
|
||||
status_bar_background: Some(rgba(0x2a261cff).into()),
|
||||
title_bar_background: Some(rgba(0x2a261cff).into()),
|
||||
toolbar_background: Some(rgba(0x1c1810ff).into()),
|
||||
tab_bar_background: Some(rgba(0x231f16ff).into()),
|
||||
tab_inactive_background: Some(rgba(0x231f16ff).into()),
|
||||
tab_active_background: Some(rgba(0x1c1810ff).into()),
|
||||
scrollbar_thumb_background: Some(rgba(0xf8f5de4c).into()),
|
||||
scrollbar_thumb_hover_background: Some(rgba(0x29251bff).into()),
|
||||
scrollbar_thumb_border: Some(rgba(0x29251bff).into()),
|
||||
scrollbar_track_background: Some(rgba(0x00000000).into()),
|
||||
scrollbar_track_border: Some(rgba(0x221e15ff).into()),
|
||||
editor_foreground: Some(rgba(0xf8f5deff).into()),
|
||||
editor_background: Some(rgba(0x1c1810ff).into()),
|
||||
editor_gutter_background: Some(rgba(0x1c1810ff).into()),
|
||||
editor_subheader_background: Some(rgba(0x231f16ff).into()),
|
||||
editor_active_line_background: Some(rgba(0x231f16bf).into()),
|
||||
editor_highlighted_line_background: Some(rgba(0x231f16ff).into()),
|
||||
editor_line_number: Some(rgba(0xf8f5de59).into()),
|
||||
editor_active_line_number: Some(rgba(0xf8f5deff).into()),
|
||||
editor_invisible: Some(rgba(0x494433ff).into()),
|
||||
editor_wrap_guide: Some(rgba(0xf8f5de0d).into()),
|
||||
editor_active_wrap_guide: Some(rgba(0xf8f5de1a).into()),
|
||||
editor_document_highlight_read_background: Some(rgba(0x499bef1a).into()),
|
||||
editor_document_highlight_write_background: Some(rgba(0x49443366).into()),
|
||||
terminal_background: Some(rgba(0x1c1810ff).into()),
|
||||
terminal_foreground: Some(rgba(0xf8f5deff).into()),
|
||||
terminal_bright_foreground: Some(rgba(0xf8f5deff).into()),
|
||||
terminal_dim_foreground: Some(rgba(0x1c1810ff).into()),
|
||||
terminal_ansi_black: Some(rgba(0x1c1810ff).into()),
|
||||
terminal_ansi_bright_black: Some(rgba(0x3b3627ff).into()),
|
||||
terminal_ansi_dim_black: Some(rgba(0xf8f5deff).into()),
|
||||
terminal_ansi_red: Some(rgba(0xe35142ff).into()),
|
||||
terminal_ansi_bright_red: Some(rgba(0x7f2724ff).into()),
|
||||
terminal_ansi_dim_red: Some(rgba(0xfbab9cff).into()),
|
||||
terminal_ansi_green: Some(rgba(0x5dea5aff).into()),
|
||||
terminal_ansi_bright_green: Some(rgba(0x28842cff).into()),
|
||||
terminal_ansi_dim_green: Some(rgba(0xb9f7aeff).into()),
|
||||
terminal_ansi_yellow: Some(rgba(0xf1fe29ff).into()),
|
||||
terminal_ansi_bright_yellow: Some(rgba(0x8c9a10ff).into()),
|
||||
terminal_ansi_dim_yellow: Some(rgba(0xffffa2ff).into()),
|
||||
terminal_ansi_blue: Some(rgba(0x499befff).into()),
|
||||
terminal_ansi_bright_blue: Some(rgba(0x234b7fff).into()),
|
||||
terminal_ansi_dim_blue: Some(rgba(0xb1ccf8ff).into()),
|
||||
terminal_ansi_magenta: Some(rgba(0xf59be6ff).into()),
|
||||
terminal_ansi_bright_magenta: Some(rgba(0x88487eff).into()),
|
||||
terminal_ansi_dim_magenta: Some(rgba(0xfccef3ff).into()),
|
||||
terminal_ansi_cyan: Some(rgba(0x5beabcff).into()),
|
||||
terminal_ansi_bright_cyan: Some(rgba(0x298462ff).into()),
|
||||
terminal_ansi_dim_cyan: Some(rgba(0xb7f6ddff).into()),
|
||||
terminal_ansi_white: Some(rgba(0xf8f5deff).into()),
|
||||
terminal_ansi_bright_white: Some(rgba(0xf8f5deff).into()),
|
||||
terminal_ansi_dim_white: Some(rgba(0x57533fff).into()),
|
||||
link_text_hover: Some(rgba(0x499befff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
status: StatusColorsRefinement {
|
||||
conflict: Some(rgba(0xf1fe29ff).into()),
|
||||
conflict_background: Some(rgba(0x556305ff).into()),
|
||||
conflict_border: Some(rgba(0x727f0aff).into()),
|
||||
created: Some(rgba(0x5dea5aff).into()),
|
||||
created_background: Some(rgba(0x0a4d13ff).into()),
|
||||
created_border: Some(rgba(0x1a6a20ff).into()),
|
||||
deleted: Some(rgba(0xe35142ff).into()),
|
||||
deleted_background: Some(rgba(0x491013ff).into()),
|
||||
deleted_border: Some(rgba(0x651c1cff).into()),
|
||||
error: Some(rgba(0xe35142ff).into()),
|
||||
error_background: Some(rgba(0x491013ff).into()),
|
||||
error_border: Some(rgba(0x651c1cff).into()),
|
||||
hidden: Some(rgba(0x4c4735ff).into()),
|
||||
hidden_background: Some(rgba(0x2a261cff).into()),
|
||||
hidden_border: Some(rgba(0x2e2a1fff).into()),
|
||||
hint: Some(rgba(0x246e61ff).into()),
|
||||
hint_background: Some(rgba(0x0e2242ff).into()),
|
||||
hint_border: Some(rgba(0x193761ff).into()),
|
||||
ignored: Some(rgba(0x736e55ff).into()),
|
||||
ignored_background: Some(rgba(0x2a261cff).into()),
|
||||
ignored_border: Some(rgba(0x312d21ff).into()),
|
||||
info: Some(rgba(0x499befff).into()),
|
||||
info_background: Some(rgba(0x0e2242ff).into()),
|
||||
info_border: Some(rgba(0x193761ff).into()),
|
||||
modified: Some(rgba(0xf1fe29ff).into()),
|
||||
modified_background: Some(rgba(0x556305ff).into()),
|
||||
modified_border: Some(rgba(0x727f0aff).into()),
|
||||
predictive: Some(rgba(0x79434bff).into()),
|
||||
predictive_background: Some(rgba(0x0a4d13ff).into()),
|
||||
predictive_border: Some(rgba(0x1a6a20ff).into()),
|
||||
renamed: Some(rgba(0x499befff).into()),
|
||||
renamed_background: Some(rgba(0x0e2242ff).into()),
|
||||
renamed_border: Some(rgba(0x193761ff).into()),
|
||||
success: Some(rgba(0x5dea5aff).into()),
|
||||
success_background: Some(rgba(0x0a4d13ff).into()),
|
||||
success_border: Some(rgba(0x1a6a20ff).into()),
|
||||
unreachable: Some(rgba(0x736e55ff).into()),
|
||||
unreachable_background: Some(rgba(0x2a261cff).into()),
|
||||
unreachable_border: Some(rgba(0x312d21ff).into()),
|
||||
warning: Some(rgba(0xf1fe29ff).into()),
|
||||
warning_background: Some(rgba(0x556305ff).into()),
|
||||
warning_border: Some(rgba(0x727f0aff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
player: Some(PlayerColors(vec![
|
||||
PlayerColor {
|
||||
cursor: rgba(0x499befff).into(),
|
||||
background: rgba(0x499befff).into(),
|
||||
selection: rgba(0x499bef3d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xf59be6ff).into(),
|
||||
background: rgba(0xf59be6ff).into(),
|
||||
selection: rgba(0xf59be63d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xfaa11dff).into(),
|
||||
background: rgba(0xfaa11dff).into(),
|
||||
selection: rgba(0xfaa11d3d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xfe8080ff).into(),
|
||||
background: rgba(0xfe8080ff).into(),
|
||||
selection: rgba(0xfe80803d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x5beabcff).into(),
|
||||
background: rgba(0x5beabcff).into(),
|
||||
selection: rgba(0x5beabc3d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xe35142ff).into(),
|
||||
background: rgba(0xe35142ff).into(),
|
||||
selection: rgba(0xe351423d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0xf1fe29ff).into(),
|
||||
background: rgba(0xf1fe29ff).into(),
|
||||
selection: rgba(0xf1fe293d).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x5dea5aff).into(),
|
||||
background: rgba(0x5dea5aff).into(),
|
||||
selection: rgba(0x5dea5a3d).into(),
|
||||
},
|
||||
])),
|
||||
syntax: Some(UserSyntaxTheme {
|
||||
highlights: vec![
|
||||
(
|
||||
"attribute".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x499befff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"boolean".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x5dea5aff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"comment".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x777259ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"comment.doc".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x777259ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"constant".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x5dea5aff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"constructor".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x499befff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"embedded".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xf8f5deff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"emphasis".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x499befff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"emphasis.strong".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x499befff).into()),
|
||||
font_weight: Some(UserFontWeight(700.0)),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"enum".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xfaa11dff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"function".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xf1fe29ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"hint".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x246e61ff).into()),
|
||||
font_weight: Some(UserFontWeight(700.0)),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"keyword".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x499befff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"label".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x499befff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"link_text".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xfaa11dff).into()),
|
||||
font_style: Some(UserFontStyle::Italic),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"link_uri".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x5dea5aff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"number".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x5dea5aff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"operator".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xfaa11dff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"predictive".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x79434bff).into()),
|
||||
font_style: Some(UserFontStyle::Italic),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"preproc".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xf8f5deff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"primary".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xf8f5deff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"property".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x499befff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xbfbb9bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.bracket".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xbfbb9bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.delimiter".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xbfbb9bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.list_marker".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xbfbb9bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"punctuation.special".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xbfbb9bff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xfaa11dff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.escape".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x777259ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.regex".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xfaa11dff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.special".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xfaa11dff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"string.special.symbol".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xfaa11dff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"tag".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x499befff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"text.literal".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xfaa11dff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"title".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xf8f5deff).into()),
|
||||
font_weight: Some(UserFontWeight(700.0)),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"type".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x5beabcff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"variable".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0xf8f5deff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
(
|
||||
"variant".into(),
|
||||
UserHighlightStyle {
|
||||
color: Some(rgba(0x499befff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
),
|
||||
],
|
||||
}),
|
||||
},
|
||||
}],
|
||||
}
|
||||
}
|
|
@ -1,97 +0,0 @@
|
|||
use crate::{
|
||||
Appearance, PlayerColors, StatusColors, StatusColorsRefinement, ThemeColors,
|
||||
ThemeColorsRefinement,
|
||||
};
|
||||
use gpui::{FontStyle, FontWeight, Hsla};
|
||||
use refineable::Refineable;
|
||||
use serde::Deserialize;
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct UserThemeFamily {
|
||||
pub name: String,
|
||||
pub author: String,
|
||||
pub themes: Vec<UserTheme>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct UserTheme {
|
||||
pub name: String,
|
||||
pub appearance: Appearance,
|
||||
pub styles: UserThemeStylesRefinement,
|
||||
}
|
||||
|
||||
#[derive(Refineable, Clone)]
|
||||
#[refineable(Deserialize)]
|
||||
pub struct UserThemeStyles {
|
||||
#[refineable]
|
||||
pub colors: ThemeColors,
|
||||
#[refineable]
|
||||
pub status: StatusColors,
|
||||
pub player: PlayerColors,
|
||||
pub syntax: UserSyntaxTheme,
|
||||
}
|
||||
|
||||
#[derive(Clone, Default, Deserialize)]
|
||||
pub struct UserSyntaxTheme {
|
||||
pub highlights: Vec<(String, UserHighlightStyle)>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Default, Deserialize)]
|
||||
pub struct UserHighlightStyle {
|
||||
pub color: Option<Hsla>,
|
||||
pub font_style: Option<UserFontStyle>,
|
||||
pub font_weight: Option<UserFontWeight>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Default, Deserialize)]
|
||||
pub struct UserFontWeight(pub f32);
|
||||
|
||||
impl UserFontWeight {
|
||||
/// Thin weight (100), the thinnest value.
|
||||
pub const THIN: Self = Self(FontWeight::THIN.0);
|
||||
/// Extra light weight (200).
|
||||
pub const EXTRA_LIGHT: Self = Self(FontWeight::EXTRA_LIGHT.0);
|
||||
/// Light weight (300).
|
||||
pub const LIGHT: Self = Self(FontWeight::LIGHT.0);
|
||||
/// Normal (400).
|
||||
pub const NORMAL: Self = Self(FontWeight::NORMAL.0);
|
||||
/// Medium weight (500, higher than normal).
|
||||
pub const MEDIUM: Self = Self(FontWeight::MEDIUM.0);
|
||||
/// Semibold weight (600).
|
||||
pub const SEMIBOLD: Self = Self(FontWeight::SEMIBOLD.0);
|
||||
/// Bold weight (700).
|
||||
pub const BOLD: Self = Self(FontWeight::BOLD.0);
|
||||
/// Extra-bold weight (800).
|
||||
pub const EXTRA_BOLD: Self = Self(FontWeight::EXTRA_BOLD.0);
|
||||
/// Black weight (900), the thickest value.
|
||||
pub const BLACK: Self = Self(FontWeight::BLACK.0);
|
||||
}
|
||||
|
||||
impl From<UserFontWeight> for FontWeight {
|
||||
fn from(value: UserFontWeight) -> Self {
|
||||
Self(value.0)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, Deserialize)]
|
||||
pub enum UserFontStyle {
|
||||
Normal,
|
||||
Italic,
|
||||
Oblique,
|
||||
}
|
||||
|
||||
impl From<UserFontStyle> for FontStyle {
|
||||
fn from(value: UserFontStyle) -> Self {
|
||||
match value {
|
||||
UserFontStyle::Normal => FontStyle::Normal,
|
||||
UserFontStyle::Italic => FontStyle::Italic,
|
||||
UserFontStyle::Oblique => FontStyle::Oblique,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl UserHighlightStyle {
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.color.is_none() && self.font_style.is_none() && self.font_weight.is_none()
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue