From 9b453d2cbc1eab79c88cb8caac5a216b909bdcca Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Sat, 27 Jan 2024 16:55:37 -0500 Subject: [PATCH] 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 --- crates/theme/Cargo.toml | 1 - crates/theme/src/schema.rs | 6 + crates/theme/src/theme.rs | 6 - crates/theme/src/themes/andromeda.rs | 473 - crates/theme/src/themes/atelier.rs | 9540 ----------------- crates/theme/src/themes/ayu.rs | 1385 --- crates/theme/src/themes/gruvbox.rs | 2792 ----- crates/theme/src/themes/mod.rs | 38 - crates/theme/src/themes/one.rs | 944 -- crates/theme/src/themes/rose_pine.rs | 1427 --- crates/theme/src/themes/sandcastle.rs | 473 - crates/theme/src/themes/solarized.rs | 930 -- crates/theme/src/themes/summercamp.rs | 473 - crates/theme/src/user_theme.rs | 97 - crates/theme_importer/Cargo.toml | 2 +- crates/theme_importer/README.md | 123 - crates/theme_importer/src/color.rs | 2 + crates/theme_importer/src/main.rs | 647 +- crates/theme_importer/src/theme_printer.rs | 478 - crates/theme_importer/src/vscode/converter.rs | 354 +- crates/theme_importer/src/zed1.rs | 6 - crates/theme_importer/src/zed1/converter.rs | 302 - crates/theme_importer/src/zed1/licenses.rs | 1192 -- crates/theme_importer/src/zed1/theme.rs | 1518 --- 24 files changed, 142 insertions(+), 23067 deletions(-) delete mode 100644 crates/theme/src/themes/andromeda.rs delete mode 100644 crates/theme/src/themes/atelier.rs delete mode 100644 crates/theme/src/themes/ayu.rs delete mode 100644 crates/theme/src/themes/gruvbox.rs delete mode 100644 crates/theme/src/themes/mod.rs delete mode 100644 crates/theme/src/themes/one.rs delete mode 100644 crates/theme/src/themes/rose_pine.rs delete mode 100644 crates/theme/src/themes/sandcastle.rs delete mode 100644 crates/theme/src/themes/solarized.rs delete mode 100644 crates/theme/src/themes/summercamp.rs delete mode 100644 crates/theme/src/user_theme.rs delete mode 100644 crates/theme_importer/src/theme_printer.rs delete mode 100644 crates/theme_importer/src/zed1.rs delete mode 100644 crates/theme_importer/src/zed1/converter.rs delete mode 100644 crates/theme_importer/src/zed1/licenses.rs delete mode 100644 crates/theme_importer/src/zed1/theme.rs diff --git a/crates/theme/Cargo.toml b/crates/theme/Cargo.toml index 4d20b14711..9c061b226f 100644 --- a/crates/theme/Cargo.toml +++ b/crates/theme/Cargo.toml @@ -8,7 +8,6 @@ license = "GPL-3.0-or-later" [features] default = [] -importing-themes = [] stories = ["dep:itertools", "dep:story"] test-support = [ "gpui/test-support", diff --git a/crates/theme/src/schema.rs b/crates/theme/src/schema.rs index 6687d0cdc0..37fa235be7 100644 --- a/crates/theme/src/schema.rs +++ b/crates/theme/src/schema.rs @@ -1249,6 +1249,12 @@ pub struct HighlightStyleContent { pub font_weight: Option, } +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, D::Error> where T: Deserialize<'de>, diff --git a/crates/theme/src/theme.rs b/crates/theme/src/theme.rs index e03f4043dc..5018a72da0 100644 --- a/crates/theme/src/theme.rs +++ b/crates/theme/src/theme.rs @@ -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; diff --git a/crates/theme/src/themes/andromeda.rs b/crates/theme/src/themes/andromeda.rs deleted file mode 100644 index 184e27833d..0000000000 --- a/crates/theme/src/themes/andromeda.rs +++ /dev/null @@ -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() - }, - ), - ], - }), - }, - }], - } -} diff --git a/crates/theme/src/themes/atelier.rs b/crates/theme/src/themes/atelier.rs deleted file mode 100644 index 300c16f94c..0000000000 --- a/crates/theme/src/themes/atelier.rs +++ /dev/null @@ -1,9540 +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 atelier() -> UserThemeFamily { - UserThemeFamily { - name: "Atelier".into(), - author: "Zed Industries".into(), - themes: vec![ - UserTheme { - name: "Atelier Cave Dark".into(), - appearance: Appearance::Dark, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0x56505eff).into()), - border_variant: Some(rgba(0x332f38ff).into()), - border_focused: Some(rgba(0x222953ff).into()), - border_selected: Some(rgba(0x222953ff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0x48434fff).into()), - elevated_surface_background: Some(rgba(0x221f26ff).into()), - surface_background: Some(rgba(0x221f26ff).into()), - background: Some(rgba(0x3a353fff).into()), - panel_background: Some(rgba(0x221f26ff).into()), - element_background: Some(rgba(0x221f26ff).into()), - element_hover: Some(rgba(0x332f38ff).into()), - element_active: Some(rgba(0x544f5cff).into()), - element_selected: Some(rgba(0x544f5cff).into()), - element_disabled: Some(rgba(0x221f26ff).into()), - drop_target_background: Some(rgba(0x89859180).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0x332f38ff).into()), - ghost_element_active: Some(rgba(0x544f5cff).into()), - ghost_element_selected: Some(rgba(0x544f5cff).into()), - ghost_element_disabled: Some(rgba(0x221f26ff).into()), - text: Some(rgba(0xefecf4ff).into()), - text_muted: Some(rgba(0x898591ff).into()), - text_placeholder: Some(rgba(0x756f7eff).into()), - text_disabled: Some(rgba(0x756f7eff).into()), - text_accent: Some(rgba(0x576ddaff).into()), - icon: Some(rgba(0xefecf4ff).into()), - icon_muted: Some(rgba(0x898591ff).into()), - icon_disabled: Some(rgba(0x756f7eff).into()), - icon_placeholder: Some(rgba(0x898591ff).into()), - icon_accent: Some(rgba(0x576ddaff).into()), - status_bar_background: Some(rgba(0x3a353fff).into()), - title_bar_background: Some(rgba(0x3a353fff).into()), - toolbar_background: Some(rgba(0x19171cff).into()), - tab_bar_background: Some(rgba(0x221f26ff).into()), - tab_inactive_background: Some(rgba(0x221f26ff).into()), - tab_active_background: Some(rgba(0x19171cff).into()), - scrollbar_thumb_background: Some(rgba(0xefecf44c).into()), - scrollbar_thumb_hover_background: Some(rgba(0x332f38ff).into()), - scrollbar_thumb_border: Some(rgba(0x332f38ff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0x201e24ff).into()), - editor_foreground: Some(rgba(0xe2dfe7ff).into()), - editor_background: Some(rgba(0x19171cff).into()), - editor_gutter_background: Some(rgba(0x19171cff).into()), - editor_subheader_background: Some(rgba(0x221f26ff).into()), - editor_active_line_background: Some(rgba(0x221f26bf).into()), - editor_highlighted_line_background: Some(rgba(0x221f26ff).into()), - editor_line_number: Some(rgba(0xefecf459).into()), - editor_active_line_number: Some(rgba(0xefecf4ff).into()), - editor_invisible: Some(rgba(0x726c7aff).into()), - editor_wrap_guide: Some(rgba(0xefecf40d).into()), - editor_active_wrap_guide: Some(rgba(0xefecf41a).into()), - editor_document_highlight_read_background: Some(rgba(0x576dda1a).into()), - editor_document_highlight_write_background: Some(rgba(0x726c7a66).into()), - terminal_background: Some(rgba(0x19171cff).into()), - terminal_foreground: Some(rgba(0xefecf4ff).into()), - terminal_bright_foreground: Some(rgba(0xefecf4ff).into()), - terminal_dim_foreground: Some(rgba(0x19171cff).into()), - terminal_ansi_black: Some(rgba(0x19171cff).into()), - terminal_ansi_bright_black: Some(rgba(0x635d6bff).into()), - terminal_ansi_dim_black: Some(rgba(0xefecf4ff).into()), - terminal_ansi_red: Some(rgba(0xbe4678ff).into()), - terminal_ansi_bright_red: Some(rgba(0x5c283cff).into()), - terminal_ansi_dim_red: Some(rgba(0xe3a4b9ff).into()), - terminal_ansi_green: Some(rgba(0x2c9292ff).into()), - terminal_ansi_bright_green: Some(rgba(0x1f4747ff).into()), - terminal_ansi_dim_green: Some(rgba(0x9dc8c8ff).into()), - terminal_ansi_yellow: Some(rgba(0xa06e3bff).into()), - terminal_ansi_bright_yellow: Some(rgba(0x4e3821ff).into()), - terminal_ansi_dim_yellow: Some(rgba(0xd4b499ff).into()), - terminal_ansi_blue: Some(rgba(0x576ddaff).into()), - terminal_ansi_bright_blue: Some(rgba(0x2d376fff).into()), - terminal_ansi_dim_blue: Some(rgba(0xb3b3eeff).into()), - terminal_ansi_magenta: Some(rgba(0xbf41bfff).into()), - terminal_ansi_bright_magenta: Some(rgba(0x60255bff).into()), - terminal_ansi_dim_magenta: Some(rgba(0xe3a4dfff).into()), - terminal_ansi_cyan: Some(rgba(0x3a8bc6ff).into()), - terminal_ansi_bright_cyan: Some(rgba(0x26445eff).into()), - terminal_ansi_dim_cyan: Some(rgba(0xa6c4e3ff).into()), - terminal_ansi_white: Some(rgba(0xefecf4ff).into()), - terminal_ansi_bright_white: Some(rgba(0xefecf4ff).into()), - terminal_ansi_dim_white: Some(rgba(0x807b89ff).into()), - link_text_hover: Some(rgba(0x576ddaff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0xa06e3bff).into()), - conflict_background: Some(rgba(0x231a12ff).into()), - conflict_border: Some(rgba(0x392a1aff).into()), - created: Some(rgba(0x2c9292ff).into()), - created_background: Some(rgba(0x132020ff).into()), - created_border: Some(rgba(0x1a3434ff).into()), - deleted: Some(rgba(0xbe4678ff).into()), - deleted_background: Some(rgba(0x28151cff).into()), - deleted_border: Some(rgba(0x421f2dff).into()), - error: Some(rgba(0xbe4678ff).into()), - error_background: Some(rgba(0x28151cff).into()), - error_border: Some(rgba(0x421f2dff).into()), - hidden: Some(rgba(0x756f7eff).into()), - hidden_background: Some(rgba(0x3a353fff).into()), - hidden_border: Some(rgba(0x48434fff).into()), - hint: Some(rgba(0x716998ff).into()), - hint_background: Some(rgba(0x161a36ff).into()), - hint_border: Some(rgba(0x222953ff).into()), - ignored: Some(rgba(0x898591ff).into()), - ignored_background: Some(rgba(0x3a353fff).into()), - ignored_border: Some(rgba(0x56505eff).into()), - info: Some(rgba(0x576ddaff).into()), - info_background: Some(rgba(0x161a36ff).into()), - info_border: Some(rgba(0x222953ff).into()), - modified: Some(rgba(0xa06e3bff).into()), - modified_background: Some(rgba(0x231a12ff).into()), - modified_border: Some(rgba(0x392a1aff).into()), - predictive: Some(rgba(0x625887ff).into()), - predictive_background: Some(rgba(0x132020ff).into()), - predictive_border: Some(rgba(0x1a3434ff).into()), - renamed: Some(rgba(0x576ddaff).into()), - renamed_background: Some(rgba(0x161a36ff).into()), - renamed_border: Some(rgba(0x222953ff).into()), - success: Some(rgba(0x2c9292ff).into()), - success_background: Some(rgba(0x132020ff).into()), - success_border: Some(rgba(0x1a3434ff).into()), - unreachable: Some(rgba(0x898591ff).into()), - unreachable_background: Some(rgba(0x3a353fff).into()), - unreachable_border: Some(rgba(0x56505eff).into()), - warning: Some(rgba(0xa06e3bff).into()), - warning_background: Some(rgba(0x231a12ff).into()), - warning_border: Some(rgba(0x392a1aff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x576ddaff).into(), - background: rgba(0x576ddaff).into(), - selection: rgba(0x576dda3d).into(), - }, - PlayerColor { - cursor: rgba(0xbf41bfff).into(), - background: rgba(0xbf41bfff).into(), - selection: rgba(0xbf41bf3d).into(), - }, - PlayerColor { - cursor: rgba(0xaa573cff).into(), - background: rgba(0xaa573cff).into(), - selection: rgba(0xaa573c3d).into(), - }, - PlayerColor { - cursor: rgba(0x955ae6ff).into(), - background: rgba(0x955ae6ff).into(), - selection: rgba(0x955ae63d).into(), - }, - PlayerColor { - cursor: rgba(0x3a8bc6ff).into(), - background: rgba(0x3a8bc6ff).into(), - selection: rgba(0x3a8bc63d).into(), - }, - PlayerColor { - cursor: rgba(0xbe4678ff).into(), - background: rgba(0xbe4678ff).into(), - selection: rgba(0xbe46783d).into(), - }, - PlayerColor { - cursor: rgba(0xa06e3bff).into(), - background: rgba(0xa06e3bff).into(), - selection: rgba(0xa06e3b3d).into(), - }, - PlayerColor { - cursor: rgba(0x2c9292ff).into(), - background: rgba(0x2c9292ff).into(), - selection: rgba(0x2c92923d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x576ddaff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0x2c9292ff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0x655f6dff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0x8b8792ff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0x2c9292ff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x576ddaff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0xefecf4ff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x576ddaff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x576ddaff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0xaa573cff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0x576ddbff).into()), - ..Default::default() - }, - ), - ( - "function.method".into(), - UserHighlightStyle { - color: Some(rgba(0x576ddbff).into()), - ..Default::default() - }, - ), - ( - "function.special.definition".into(), - UserHighlightStyle { - color: Some(rgba(0xa06e3bff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x716998ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0x955ae7ff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x576ddaff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0xaa573cff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0x2c9292ff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0xaa573cff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0x8b8792ff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0x625887ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0xefecf4ff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0xe2dfe7ff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0xbe4678ff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0xe2dfe7ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0x8b8792ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0x8b8792ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0xe2dfe7ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0xbf40bfff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0x2a9292ff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0x8b8792ff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0x398bc6ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0xbf40bfff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0x2a9292ff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x576ddaff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0xaa573cff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0xefecf4ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0xa06e3bff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0xe2dfe7ff).into()), - ..Default::default() - }, - ), - ( - "variable.special".into(), - UserHighlightStyle { - color: Some(rgba(0x955ae7ff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0xa06e3bff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Atelier Cave Light".into(), - appearance: Appearance::Light, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0x8f8b96ff).into()), - border_variant: Some(rgba(0xcbc8d1ff).into()), - border_focused: Some(rgba(0xc9c8f3ff).into()), - border_selected: Some(rgba(0xc9c8f3ff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0xa7a3adff).into()), - elevated_surface_background: Some(rgba(0xe6e3ebff).into()), - surface_background: Some(rgba(0xe6e3ebff).into()), - background: Some(rgba(0xbfbcc5ff).into()), - panel_background: Some(rgba(0xe6e3ebff).into()), - element_background: Some(rgba(0xe6e3ebff).into()), - element_hover: Some(rgba(0xcbc8d1ff).into()), - element_active: Some(rgba(0x918d98ff).into()), - element_selected: Some(rgba(0x918d98ff).into()), - element_disabled: Some(rgba(0xe6e3ebff).into()), - drop_target_background: Some(rgba(0x5a546280).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0xcbc8d1ff).into()), - ghost_element_active: Some(rgba(0x918d98ff).into()), - ghost_element_selected: Some(rgba(0x918d98ff).into()), - ghost_element_disabled: Some(rgba(0xe6e3ebff).into()), - text: Some(rgba(0x19171cff).into()), - text_muted: Some(rgba(0x5a5462ff).into()), - text_placeholder: Some(rgba(0x6e6876ff).into()), - text_disabled: Some(rgba(0x6e6876ff).into()), - text_accent: Some(rgba(0x586ddaff).into()), - icon: Some(rgba(0x19171cff).into()), - icon_muted: Some(rgba(0x5a5462ff).into()), - icon_disabled: Some(rgba(0x6e6876ff).into()), - icon_placeholder: Some(rgba(0x5a5462ff).into()), - icon_accent: Some(rgba(0x586ddaff).into()), - status_bar_background: Some(rgba(0xbfbcc5ff).into()), - title_bar_background: Some(rgba(0xbfbcc5ff).into()), - toolbar_background: Some(rgba(0xefecf4ff).into()), - tab_bar_background: Some(rgba(0xe6e3ebff).into()), - tab_inactive_background: Some(rgba(0xe6e3ebff).into()), - tab_active_background: Some(rgba(0xefecf4ff).into()), - scrollbar_thumb_background: Some(rgba(0x19171c4c).into()), - scrollbar_thumb_hover_background: Some(rgba(0xcbc8d1ff).into()), - scrollbar_thumb_border: Some(rgba(0xcbc8d1ff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0xe8e5edff).into()), - editor_foreground: Some(rgba(0x26232aff).into()), - editor_background: Some(rgba(0xefecf4ff).into()), - editor_gutter_background: Some(rgba(0xefecf4ff).into()), - editor_subheader_background: Some(rgba(0xe6e3ebff).into()), - editor_active_line_background: Some(rgba(0xe6e3ebbf).into()), - editor_highlighted_line_background: Some(rgba(0xe6e3ebff).into()), - editor_line_number: Some(rgba(0x19171c59).into()), - editor_active_line_number: Some(rgba(0x19171cff).into()), - editor_invisible: Some(rgba(0x726c7aff).into()), - editor_wrap_guide: Some(rgba(0x19171c0d).into()), - editor_active_wrap_guide: Some(rgba(0x19171c1a).into()), - editor_document_highlight_read_background: Some(rgba(0x586dda1a).into()), - editor_document_highlight_write_background: Some(rgba(0x726c7a66).into()), - terminal_background: Some(rgba(0xefecf4ff).into()), - terminal_foreground: Some(rgba(0x19171cff).into()), - terminal_bright_foreground: Some(rgba(0x19171cff).into()), - terminal_dim_foreground: Some(rgba(0xefecf4ff).into()), - terminal_ansi_black: Some(rgba(0xefecf4ff).into()), - terminal_ansi_bright_black: Some(rgba(0x807b89ff).into()), - terminal_ansi_dim_black: Some(rgba(0x19171cff).into()), - terminal_ansi_red: Some(rgba(0xbe4778ff).into()), - terminal_ansi_bright_red: Some(rgba(0xe3a4b9ff).into()), - terminal_ansi_dim_red: Some(rgba(0x5c283cff).into()), - terminal_ansi_green: Some(rgba(0x2c9292ff).into()), - terminal_ansi_bright_green: Some(rgba(0x9dc8c8ff).into()), - terminal_ansi_dim_green: Some(rgba(0x1f4747ff).into()), - terminal_ansi_yellow: Some(rgba(0xa06e3cff).into()), - terminal_ansi_bright_yellow: Some(rgba(0xd4b499ff).into()), - terminal_ansi_dim_yellow: Some(rgba(0x4e3821ff).into()), - terminal_ansi_blue: Some(rgba(0x586ddaff).into()), - terminal_ansi_bright_blue: Some(rgba(0xb3b3eeff).into()), - terminal_ansi_dim_blue: Some(rgba(0x2d376fff).into()), - terminal_ansi_magenta: Some(rgba(0xbf41bfff).into()), - terminal_ansi_bright_magenta: Some(rgba(0xe3a4dfff).into()), - terminal_ansi_dim_magenta: Some(rgba(0x60255bff).into()), - terminal_ansi_cyan: Some(rgba(0x3b8bc6ff).into()), - terminal_ansi_bright_cyan: Some(rgba(0xa6c4e3ff).into()), - terminal_ansi_dim_cyan: Some(rgba(0x26445eff).into()), - terminal_ansi_white: Some(rgba(0x19171cff).into()), - terminal_ansi_bright_white: Some(rgba(0x19171cff).into()), - terminal_ansi_dim_white: Some(rgba(0x635d6bff).into()), - link_text_hover: Some(rgba(0x586ddaff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0xa06e3cff).into()), - conflict_background: Some(rgba(0xeee0d5ff).into()), - conflict_border: Some(rgba(0xe0c9b5ff).into()), - created: Some(rgba(0x2c9292ff).into()), - created_background: Some(rgba(0xd7e9e8ff).into()), - created_border: Some(rgba(0xb9d7d6ff).into()), - deleted: Some(rgba(0xbe4778ff).into()), - deleted_background: Some(rgba(0xf5dae2ff).into()), - deleted_border: Some(rgba(0xecbecdff).into()), - error: Some(rgba(0xbe4778ff).into()), - error_background: Some(rgba(0xf5dae2ff).into()), - error_border: Some(rgba(0xecbecdff).into()), - hidden: Some(rgba(0x6e6876ff).into()), - hidden_background: Some(rgba(0xbfbcc5ff).into()), - hidden_border: Some(rgba(0xa7a3adff).into()), - hint: Some(rgba(0x786e9dff).into()), - hint_background: Some(rgba(0xe1e0f9ff).into()), - hint_border: Some(rgba(0xc9c8f3ff).into()), - ignored: Some(rgba(0x5a5462ff).into()), - ignored_background: Some(rgba(0xbfbcc5ff).into()), - ignored_border: Some(rgba(0x8f8b96ff).into()), - info: Some(rgba(0x586ddaff).into()), - info_background: Some(rgba(0xe1e0f9ff).into()), - info_border: Some(rgba(0xc9c8f3ff).into()), - modified: Some(rgba(0xa06e3cff).into()), - modified_background: Some(rgba(0xeee0d5ff).into()), - modified_border: Some(rgba(0xe0c9b5ff).into()), - predictive: Some(rgba(0x887fafff).into()), - predictive_background: Some(rgba(0xd7e9e8ff).into()), - predictive_border: Some(rgba(0xb9d7d6ff).into()), - renamed: Some(rgba(0x586ddaff).into()), - renamed_background: Some(rgba(0xe1e0f9ff).into()), - renamed_border: Some(rgba(0xc9c8f3ff).into()), - success: Some(rgba(0x2c9292ff).into()), - success_background: Some(rgba(0xd7e9e8ff).into()), - success_border: Some(rgba(0xb9d7d6ff).into()), - unreachable: Some(rgba(0x5a5462ff).into()), - unreachable_background: Some(rgba(0xbfbcc5ff).into()), - unreachable_border: Some(rgba(0x8f8b96ff).into()), - warning: Some(rgba(0xa06e3cff).into()), - warning_background: Some(rgba(0xeee0d5ff).into()), - warning_border: Some(rgba(0xe0c9b5ff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x586ddaff).into(), - background: rgba(0x586ddaff).into(), - selection: rgba(0x586dda3d).into(), - }, - PlayerColor { - cursor: rgba(0xbf41bfff).into(), - background: rgba(0xbf41bfff).into(), - selection: rgba(0xbf41bf3d).into(), - }, - PlayerColor { - cursor: rgba(0xaa583dff).into(), - background: rgba(0xaa583dff).into(), - selection: rgba(0xaa583d3d).into(), - }, - PlayerColor { - cursor: rgba(0x955be6ff).into(), - background: rgba(0x955be6ff).into(), - selection: rgba(0x955be63d).into(), - }, - PlayerColor { - cursor: rgba(0x3b8bc6ff).into(), - background: rgba(0x3b8bc6ff).into(), - selection: rgba(0x3b8bc63d).into(), - }, - PlayerColor { - cursor: rgba(0xbe4778ff).into(), - background: rgba(0xbe4778ff).into(), - selection: rgba(0xbe47783d).into(), - }, - PlayerColor { - cursor: rgba(0xa06e3cff).into(), - background: rgba(0xa06e3cff).into(), - selection: rgba(0xa06e3c3d).into(), - }, - PlayerColor { - cursor: rgba(0x2c9292ff).into(), - background: rgba(0x2c9292ff).into(), - selection: rgba(0x2c92923d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x586ddaff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0x2c9292ff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0x7e7887ff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0x585260ff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0x2c9292ff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x586ddaff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0x19171cff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x586ddaff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x586ddaff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0xaa583dff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0x576ddbff).into()), - ..Default::default() - }, - ), - ( - "function.method".into(), - UserHighlightStyle { - color: Some(rgba(0x576ddbff).into()), - ..Default::default() - }, - ), - ( - "function.special.definition".into(), - UserHighlightStyle { - color: Some(rgba(0xa06e3bff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x786e9dff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0x955ae7ff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x586ddaff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0xaa583dff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0x2c9292ff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0xaa573cff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0x585260ff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0x887fafff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0x19171cff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0x26232aff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0xbe4678ff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0x26232aff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0x585260ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0x585260ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0x26232aff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0xbf40bfff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0x2a9292ff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0x585260ff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0x398bc6ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0xbf40bfff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0x2a9292ff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x586ddaff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0xaa583dff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0x19171cff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0xa06e3bff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0x26232aff).into()), - ..Default::default() - }, - ), - ( - "variable.special".into(), - UserHighlightStyle { - color: Some(rgba(0x955ae7ff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0xa06e3bff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Atelier Dune Dark".into(), - appearance: Appearance::Dark, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0x6c695cff).into()), - border_variant: Some(rgba(0x3b3933ff).into()), - border_focused: Some(rgba(0x263056ff).into()), - border_selected: Some(rgba(0x263056ff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0x58564bff).into()), - elevated_surface_background: Some(rgba(0x262622ff).into()), - surface_background: Some(rgba(0x262622ff).into()), - background: Some(rgba(0x45433bff).into()), - panel_background: Some(rgba(0x262622ff).into()), - element_background: Some(rgba(0x262622ff).into()), - element_hover: Some(rgba(0x3b3933ff).into()), - element_active: Some(rgba(0x6a675aff).into()), - element_selected: Some(rgba(0x6a675aff).into()), - element_disabled: Some(rgba(0x262622ff).into()), - drop_target_background: Some(rgba(0xa4a08b80).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0x3b3933ff).into()), - ghost_element_active: Some(rgba(0x6a675aff).into()), - ghost_element_selected: Some(rgba(0x6a675aff).into()), - ghost_element_disabled: Some(rgba(0x262622ff).into()), - text: Some(rgba(0xfefbecff).into()), - text_muted: Some(rgba(0xa4a08bff).into()), - text_placeholder: Some(rgba(0x8f8b77ff).into()), - text_disabled: Some(rgba(0x8f8b77ff).into()), - text_accent: Some(rgba(0x6684e0ff).into()), - icon: Some(rgba(0xfefbecff).into()), - icon_muted: Some(rgba(0xa4a08bff).into()), - icon_disabled: Some(rgba(0x8f8b77ff).into()), - icon_placeholder: Some(rgba(0xa4a08bff).into()), - icon_accent: Some(rgba(0x6684e0ff).into()), - status_bar_background: Some(rgba(0x45433bff).into()), - title_bar_background: Some(rgba(0x45433bff).into()), - toolbar_background: Some(rgba(0x20201dff).into()), - tab_bar_background: Some(rgba(0x262622ff).into()), - tab_inactive_background: Some(rgba(0x262622ff).into()), - tab_active_background: Some(rgba(0x20201dff).into()), - scrollbar_thumb_background: Some(rgba(0xfefbec4c).into()), - scrollbar_thumb_hover_background: Some(rgba(0x3b3933ff).into()), - scrollbar_thumb_border: Some(rgba(0x3b3933ff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0x252521ff).into()), - editor_foreground: Some(rgba(0xe8e4cfff).into()), - editor_background: Some(rgba(0x20201dff).into()), - editor_gutter_background: Some(rgba(0x20201dff).into()), - editor_subheader_background: Some(rgba(0x262622ff).into()), - editor_active_line_background: Some(rgba(0x262622bf).into()), - editor_highlighted_line_background: Some(rgba(0x262622ff).into()), - editor_line_number: Some(rgba(0xfefbec59).into()), - editor_active_line_number: Some(rgba(0xfefbecff).into()), - editor_invisible: Some(rgba(0x8b8874ff).into()), - editor_wrap_guide: Some(rgba(0xfefbec0d).into()), - editor_active_wrap_guide: Some(rgba(0xfefbec1a).into()), - editor_document_highlight_read_background: Some(rgba(0x6684e01a).into()), - editor_document_highlight_write_background: Some(rgba(0x8b887466).into()), - terminal_background: Some(rgba(0x20201dff).into()), - terminal_foreground: Some(rgba(0xfefbecff).into()), - terminal_bright_foreground: Some(rgba(0xfefbecff).into()), - terminal_dim_foreground: Some(rgba(0x20201dff).into()), - terminal_ansi_black: Some(rgba(0x20201dff).into()), - terminal_ansi_bright_black: Some(rgba(0x7a7766ff).into()), - terminal_ansi_dim_black: Some(rgba(0xfefbecff).into()), - terminal_ansi_red: Some(rgba(0xd73837ff).into()), - terminal_ansi_bright_red: Some(rgba(0x781c1fff).into()), - terminal_ansi_dim_red: Some(rgba(0xf7a195ff).into()), - terminal_ansi_green: Some(rgba(0x60ac3aff).into()), - terminal_ansi_bright_green: Some(rgba(0x335322ff).into()), - terminal_ansi_dim_green: Some(rgba(0xb3d69cff).into()), - terminal_ansi_yellow: Some(rgba(0xae9515ff).into()), - terminal_ansi_bright_yellow: Some(rgba(0x574815ff).into()), - terminal_ansi_dim_yellow: Some(rgba(0xdcc98eff).into()), - terminal_ansi_blue: Some(rgba(0x6684e0ff).into()), - terminal_ansi_bright_blue: Some(rgba(0x334173ff).into()), - terminal_ansi_dim_blue: Some(rgba(0xb8c0f1ff).into()), - terminal_ansi_magenta: Some(rgba(0xd43652ff).into()), - terminal_ansi_bright_magenta: Some(rgba(0x721d2bff).into()), - terminal_ansi_dim_magenta: Some(rgba(0xf3a0a4ff).into()), - terminal_ansi_cyan: Some(rgba(0x21ad83ff).into()), - terminal_ansi_bright_cyan: Some(rgba(0x1e5341ff).into()), - terminal_ansi_dim_cyan: Some(rgba(0x9ed7c0ff).into()), - terminal_ansi_white: Some(rgba(0xfefbecff).into()), - terminal_ansi_bright_white: Some(rgba(0xfefbecff).into()), - terminal_ansi_dim_white: Some(rgba(0x9b9782ff).into()), - link_text_hover: Some(rgba(0x6684e0ff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0xae9515ff).into()), - conflict_background: Some(rgba(0x2a200eff).into()), - conflict_border: Some(rgba(0x413513ff).into()), - created: Some(rgba(0x60ac3aff).into()), - created_background: Some(rgba(0x1a2413ff).into()), - created_border: Some(rgba(0x273c1bff).into()), - deleted: Some(rgba(0xd73837ff).into()), - deleted_background: Some(rgba(0x450d11ff).into()), - deleted_border: Some(rgba(0x5f1519ff).into()), - error: Some(rgba(0xd73837ff).into()), - error_background: Some(rgba(0x450d11ff).into()), - error_border: Some(rgba(0x5f1519ff).into()), - hidden: Some(rgba(0x8f8b77ff).into()), - hidden_background: Some(rgba(0x45433bff).into()), - hidden_border: Some(rgba(0x58564bff).into()), - hint: Some(rgba(0xb17272ff).into()), - hint_background: Some(rgba(0x171e39ff).into()), - hint_border: Some(rgba(0x263056ff).into()), - ignored: Some(rgba(0xa4a08bff).into()), - ignored_background: Some(rgba(0x45433bff).into()), - ignored_border: Some(rgba(0x6c695cff).into()), - info: Some(rgba(0x6684e0ff).into()), - info_background: Some(rgba(0x171e39ff).into()), - info_border: Some(rgba(0x263056ff).into()), - modified: Some(rgba(0xae9515ff).into()), - modified_background: Some(rgba(0x2a200eff).into()), - modified_border: Some(rgba(0x413513ff).into()), - predictive: Some(rgba(0x9c6262ff).into()), - predictive_background: Some(rgba(0x1a2413ff).into()), - predictive_border: Some(rgba(0x273c1bff).into()), - renamed: Some(rgba(0x6684e0ff).into()), - renamed_background: Some(rgba(0x171e39ff).into()), - renamed_border: Some(rgba(0x263056ff).into()), - success: Some(rgba(0x60ac3aff).into()), - success_background: Some(rgba(0x1a2413ff).into()), - success_border: Some(rgba(0x273c1bff).into()), - unreachable: Some(rgba(0xa4a08bff).into()), - unreachable_background: Some(rgba(0x45433bff).into()), - unreachable_border: Some(rgba(0x6c695cff).into()), - warning: Some(rgba(0xae9515ff).into()), - warning_background: Some(rgba(0x2a200eff).into()), - warning_border: Some(rgba(0x413513ff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x6684e0ff).into(), - background: rgba(0x6684e0ff).into(), - selection: rgba(0x6684e03d).into(), - }, - PlayerColor { - cursor: rgba(0xd43652ff).into(), - background: rgba(0xd43652ff).into(), - selection: rgba(0xd436523d).into(), - }, - PlayerColor { - cursor: rgba(0xb65612ff).into(), - background: rgba(0xb65612ff).into(), - selection: rgba(0xb656123d).into(), - }, - PlayerColor { - cursor: rgba(0xb854d3ff).into(), - background: rgba(0xb854d3ff).into(), - selection: rgba(0xb854d33d).into(), - }, - PlayerColor { - cursor: rgba(0x21ad83ff).into(), - background: rgba(0x21ad83ff).into(), - selection: rgba(0x21ad833d).into(), - }, - PlayerColor { - cursor: rgba(0xd73837ff).into(), - background: rgba(0xd73837ff).into(), - selection: rgba(0xd738373d).into(), - }, - PlayerColor { - cursor: rgba(0xae9515ff).into(), - background: rgba(0xae9515ff).into(), - selection: rgba(0xae95153d).into(), - }, - PlayerColor { - cursor: rgba(0x60ac3aff).into(), - background: rgba(0x60ac3aff).into(), - selection: rgba(0x60ac3a3d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x6684e0ff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0x60ac3aff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0x7d7a68ff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0xa6a28cff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0x60ac3aff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x6684e0ff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0xfefbecff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x6684e0ff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x6684e0ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0xb65612ff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0x6684e1ff).into()), - ..Default::default() - }, - ), - ( - "function.method".into(), - UserHighlightStyle { - color: Some(rgba(0x6684e1ff).into()), - ..Default::default() - }, - ), - ( - "function.special.definition".into(), - UserHighlightStyle { - color: Some(rgba(0xae9513ff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0xb17272ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0xb854d4ff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x6684e0ff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0xb65612ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0x60ac3aff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0xb65611ff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0xa6a28cff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0x9c6262ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0xfefbecff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0xe8e4cfff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0xd73737ff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0xe8e4cfff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0xa6a28cff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0xa6a28cff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0xe8e4cfff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0xd43552ff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0x60ac39ff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0xa6a28cff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0x1fad83ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0xd43552ff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0x60ac39ff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x6684e0ff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0xb65612ff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0xfefbecff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0xae9513ff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0xe8e4cfff).into()), - ..Default::default() - }, - ), - ( - "variable.special".into(), - UserHighlightStyle { - color: Some(rgba(0xb854d4ff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0xae9513ff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Atelier Dune Light".into(), - appearance: Appearance::Light, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0xa8a48eff).into()), - border_variant: Some(rgba(0xd7d3beff).into()), - border_focused: Some(rgba(0xcdd1f5ff).into()), - border_selected: Some(rgba(0xcdd1f5ff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0xbbb7a1ff).into()), - elevated_surface_background: Some(rgba(0xeeebd7ff).into()), - surface_background: Some(rgba(0xeeebd7ff).into()), - background: Some(rgba(0xcecab4ff).into()), - panel_background: Some(rgba(0xeeebd7ff).into()), - element_background: Some(rgba(0xeeebd7ff).into()), - element_hover: Some(rgba(0xd7d3beff).into()), - element_active: Some(rgba(0xaaa690ff).into()), - element_selected: Some(rgba(0xaaa690ff).into()), - element_disabled: Some(rgba(0xeeebd7ff).into()), - drop_target_background: Some(rgba(0x706d5f80).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0xd7d3beff).into()), - ghost_element_active: Some(rgba(0xaaa690ff).into()), - ghost_element_selected: Some(rgba(0xaaa690ff).into()), - ghost_element_disabled: Some(rgba(0xeeebd7ff).into()), - text: Some(rgba(0x20201dff).into()), - text_muted: Some(rgba(0x706d5fff).into()), - text_placeholder: Some(rgba(0x878471ff).into()), - text_disabled: Some(rgba(0x878471ff).into()), - text_accent: Some(rgba(0x6784e0ff).into()), - icon: Some(rgba(0x20201dff).into()), - icon_muted: Some(rgba(0x706d5fff).into()), - icon_disabled: Some(rgba(0x878471ff).into()), - icon_placeholder: Some(rgba(0x706d5fff).into()), - icon_accent: Some(rgba(0x6784e0ff).into()), - status_bar_background: Some(rgba(0xcecab4ff).into()), - title_bar_background: Some(rgba(0xcecab4ff).into()), - toolbar_background: Some(rgba(0xfefbecff).into()), - tab_bar_background: Some(rgba(0xeeebd7ff).into()), - tab_inactive_background: Some(rgba(0xeeebd7ff).into()), - tab_active_background: Some(rgba(0xfefbecff).into()), - scrollbar_thumb_background: Some(rgba(0x20201d4c).into()), - scrollbar_thumb_hover_background: Some(rgba(0xd7d3beff).into()), - scrollbar_thumb_border: Some(rgba(0xd7d3beff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0xf2eedcff).into()), - editor_foreground: Some(rgba(0x292824ff).into()), - editor_background: Some(rgba(0xfefbecff).into()), - editor_gutter_background: Some(rgba(0xfefbecff).into()), - editor_subheader_background: Some(rgba(0xeeebd7ff).into()), - editor_active_line_background: Some(rgba(0xeeebd7bf).into()), - editor_highlighted_line_background: Some(rgba(0xeeebd7ff).into()), - editor_line_number: Some(rgba(0x20201d59).into()), - editor_active_line_number: Some(rgba(0x20201dff).into()), - editor_invisible: Some(rgba(0x8b8874ff).into()), - editor_wrap_guide: Some(rgba(0x20201d0d).into()), - editor_active_wrap_guide: Some(rgba(0x20201d1a).into()), - editor_document_highlight_read_background: Some(rgba(0x6784e01a).into()), - editor_document_highlight_write_background: Some(rgba(0x8b887466).into()), - terminal_background: Some(rgba(0xfefbecff).into()), - terminal_foreground: Some(rgba(0x20201dff).into()), - terminal_bright_foreground: Some(rgba(0x20201dff).into()), - terminal_dim_foreground: Some(rgba(0xfefbecff).into()), - terminal_ansi_black: Some(rgba(0xfefbecff).into()), - terminal_ansi_bright_black: Some(rgba(0x9b9782ff).into()), - terminal_ansi_dim_black: Some(rgba(0x20201dff).into()), - terminal_ansi_red: Some(rgba(0xd73838ff).into()), - terminal_ansi_bright_red: Some(rgba(0xf7a195ff).into()), - terminal_ansi_dim_red: Some(rgba(0x781c1fff).into()), - terminal_ansi_green: Some(rgba(0x61ac3aff).into()), - terminal_ansi_bright_green: Some(rgba(0xb3d69cff).into()), - terminal_ansi_dim_green: Some(rgba(0x335322ff).into()), - terminal_ansi_yellow: Some(rgba(0xae9515ff).into()), - terminal_ansi_bright_yellow: Some(rgba(0xdcc98eff).into()), - terminal_ansi_dim_yellow: Some(rgba(0x574815ff).into()), - terminal_ansi_blue: Some(rgba(0x6784e0ff).into()), - terminal_ansi_bright_blue: Some(rgba(0xb8c0f1ff).into()), - terminal_ansi_dim_blue: Some(rgba(0x334173ff).into()), - terminal_ansi_magenta: Some(rgba(0xd43753ff).into()), - terminal_ansi_bright_magenta: Some(rgba(0xf3a0a4ff).into()), - terminal_ansi_dim_magenta: Some(rgba(0x721d2bff).into()), - terminal_ansi_cyan: Some(rgba(0x22ad83ff).into()), - terminal_ansi_bright_cyan: Some(rgba(0x9ed7c0ff).into()), - terminal_ansi_dim_cyan: Some(rgba(0x1e5341ff).into()), - terminal_ansi_white: Some(rgba(0x20201dff).into()), - terminal_ansi_bright_white: Some(rgba(0x20201dff).into()), - terminal_ansi_dim_white: Some(rgba(0x7a7766ff).into()), - link_text_hover: Some(rgba(0x6784e0ff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0xae9515ff).into()), - conflict_background: Some(rgba(0xf2e8d1ff).into()), - conflict_border: Some(rgba(0xe7d7aeff).into()), - created: Some(rgba(0x61ac3aff).into()), - created_background: Some(rgba(0xe0eed6ff).into()), - created_border: Some(rgba(0xc9e1b7ff).into()), - deleted: Some(rgba(0xd73838ff).into()), - deleted_background: Some(rgba(0xffd9d4ff).into()), - deleted_border: Some(rgba(0xfcbcb2ff).into()), - error: Some(rgba(0xd73838ff).into()), - error_background: Some(rgba(0xffd9d4ff).into()), - error_border: Some(rgba(0xfcbcb2ff).into()), - hidden: Some(rgba(0x878471ff).into()), - hidden_background: Some(rgba(0xcecab4ff).into()), - hidden_border: Some(rgba(0xbbb7a1ff).into()), - hint: Some(rgba(0xb37979ff).into()), - hint_background: Some(rgba(0xe3e5faff).into()), - hint_border: Some(rgba(0xcdd1f5ff).into()), - ignored: Some(rgba(0x706d5fff).into()), - ignored_background: Some(rgba(0xcecab4ff).into()), - ignored_border: Some(rgba(0xa8a48eff).into()), - info: Some(rgba(0x6784e0ff).into()), - info_background: Some(rgba(0xe3e5faff).into()), - info_border: Some(rgba(0xcdd1f5ff).into()), - modified: Some(rgba(0xae9515ff).into()), - modified_background: Some(rgba(0xf2e8d1ff).into()), - modified_border: Some(rgba(0xe7d7aeff).into()), - predictive: Some(rgba(0xc88a8aff).into()), - predictive_background: Some(rgba(0xe0eed6ff).into()), - predictive_border: Some(rgba(0xc9e1b7ff).into()), - renamed: Some(rgba(0x6784e0ff).into()), - renamed_background: Some(rgba(0xe3e5faff).into()), - renamed_border: Some(rgba(0xcdd1f5ff).into()), - success: Some(rgba(0x61ac3aff).into()), - success_background: Some(rgba(0xe0eed6ff).into()), - success_border: Some(rgba(0xc9e1b7ff).into()), - unreachable: Some(rgba(0x706d5fff).into()), - unreachable_background: Some(rgba(0xcecab4ff).into()), - unreachable_border: Some(rgba(0xa8a48eff).into()), - warning: Some(rgba(0xae9515ff).into()), - warning_background: Some(rgba(0xf2e8d1ff).into()), - warning_border: Some(rgba(0xe7d7aeff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x6784e0ff).into(), - background: rgba(0x6784e0ff).into(), - selection: rgba(0x6784e03d).into(), - }, - PlayerColor { - cursor: rgba(0xd43753ff).into(), - background: rgba(0xd43753ff).into(), - selection: rgba(0xd437533d).into(), - }, - PlayerColor { - cursor: rgba(0xb65713ff).into(), - background: rgba(0xb65713ff).into(), - selection: rgba(0xb657133d).into(), - }, - PlayerColor { - cursor: rgba(0xb855d3ff).into(), - background: rgba(0xb855d3ff).into(), - selection: rgba(0xb855d33d).into(), - }, - PlayerColor { - cursor: rgba(0x22ad83ff).into(), - background: rgba(0x22ad83ff).into(), - selection: rgba(0x22ad833d).into(), - }, - PlayerColor { - cursor: rgba(0xd73838ff).into(), - background: rgba(0xd73838ff).into(), - selection: rgba(0xd738383d).into(), - }, - PlayerColor { - cursor: rgba(0xae9515ff).into(), - background: rgba(0xae9515ff).into(), - selection: rgba(0xae95153d).into(), - }, - PlayerColor { - cursor: rgba(0x61ac3aff).into(), - background: rgba(0x61ac3aff).into(), - selection: rgba(0x61ac3a3d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x6784e0ff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0x61ac3aff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0x999580ff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0x6e6b5eff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0x61ac3aff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x6784e0ff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0x20201dff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x6784e0ff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x6784e0ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0xb65713ff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0x6684e1ff).into()), - ..Default::default() - }, - ), - ( - "function.method".into(), - UserHighlightStyle { - color: Some(rgba(0x6684e1ff).into()), - ..Default::default() - }, - ), - ( - "function.special.definition".into(), - UserHighlightStyle { - color: Some(rgba(0xae9513ff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0xb37979ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0xb854d4ff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x6784e0ff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0xb65713ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0x61ac3aff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0xb65611ff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0x6e6b5eff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0xc88a8aff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0x20201dff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0x292824ff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0xd73737ff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0x292824ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0x6e6b5eff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0x6e6b5eff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0x292824ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0xd43552ff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0x60ac39ff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0x6e6b5eff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0x1fad83ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0xd43552ff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0x60ac39ff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x6784e0ff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0xb65713ff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0x20201dff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0xae9513ff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0x292824ff).into()), - ..Default::default() - }, - ), - ( - "variable.special".into(), - UserHighlightStyle { - color: Some(rgba(0xb854d4ff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0xae9513ff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Atelier Estuary Dark".into(), - appearance: Appearance::Dark, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0x5d5c4cff).into()), - border_variant: Some(rgba(0x3c3b31ff).into()), - border_focused: Some(rgba(0x1c3927ff).into()), - border_selected: Some(rgba(0x1c3927ff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0x504f41ff).into()), - elevated_surface_background: Some(rgba(0x2c2b23ff).into()), - surface_background: Some(rgba(0x2c2b23ff).into()), - background: Some(rgba(0x424136ff).into()), - panel_background: Some(rgba(0x2c2b23ff).into()), - element_background: Some(rgba(0x2c2b23ff).into()), - element_hover: Some(rgba(0x3c3b31ff).into()), - element_active: Some(rgba(0x5c5b4bff).into()), - element_selected: Some(rgba(0x5c5b4bff).into()), - element_disabled: Some(rgba(0x2c2b23ff).into()), - drop_target_background: Some(rgba(0x91907f80).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0x3c3b31ff).into()), - ghost_element_active: Some(rgba(0x5c5b4bff).into()), - ghost_element_selected: Some(rgba(0x5c5b4bff).into()), - ghost_element_disabled: Some(rgba(0x2c2b23ff).into()), - text: Some(rgba(0xf4f3ecff).into()), - text_muted: Some(rgba(0x91907fff).into()), - text_placeholder: Some(rgba(0x7d7c6aff).into()), - text_disabled: Some(rgba(0x7d7c6aff).into()), - text_accent: Some(rgba(0x37a166ff).into()), - icon: Some(rgba(0xf4f3ecff).into()), - icon_muted: Some(rgba(0x91907fff).into()), - icon_disabled: Some(rgba(0x7d7c6aff).into()), - icon_placeholder: Some(rgba(0x91907fff).into()), - icon_accent: Some(rgba(0x37a166ff).into()), - status_bar_background: Some(rgba(0x424136ff).into()), - title_bar_background: Some(rgba(0x424136ff).into()), - toolbar_background: Some(rgba(0x22221bff).into()), - tab_bar_background: Some(rgba(0x2c2b23ff).into()), - tab_inactive_background: Some(rgba(0x2c2b23ff).into()), - tab_active_background: Some(rgba(0x22221bff).into()), - scrollbar_thumb_background: Some(rgba(0xf4f3ec4c).into()), - scrollbar_thumb_hover_background: Some(rgba(0x3c3b31ff).into()), - scrollbar_thumb_border: Some(rgba(0x3c3b31ff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0x2a2922ff).into()), - editor_foreground: Some(rgba(0xe7e6dfff).into()), - editor_background: Some(rgba(0x22221bff).into()), - editor_gutter_background: Some(rgba(0x22221bff).into()), - editor_subheader_background: Some(rgba(0x2c2b23ff).into()), - editor_active_line_background: Some(rgba(0x2c2b23bf).into()), - editor_highlighted_line_background: Some(rgba(0x2c2b23ff).into()), - editor_line_number: Some(rgba(0xf4f3ec59).into()), - editor_active_line_number: Some(rgba(0xf4f3ecff).into()), - editor_invisible: Some(rgba(0x7a7867ff).into()), - editor_wrap_guide: Some(rgba(0xf4f3ec0d).into()), - editor_active_wrap_guide: Some(rgba(0xf4f3ec1a).into()), - editor_document_highlight_read_background: Some(rgba(0x37a1661a).into()), - editor_document_highlight_write_background: Some(rgba(0x7a786766).into()), - terminal_background: Some(rgba(0x22221bff).into()), - terminal_foreground: Some(rgba(0xf4f3ecff).into()), - terminal_bright_foreground: Some(rgba(0xf4f3ecff).into()), - terminal_dim_foreground: Some(rgba(0x22221bff).into()), - terminal_ansi_black: Some(rgba(0x22221bff).into()), - terminal_ansi_bright_black: Some(rgba(0x6a6958ff).into()), - terminal_ansi_dim_black: Some(rgba(0xf4f3ecff).into()), - terminal_ansi_red: Some(rgba(0xba6237ff).into()), - terminal_ansi_bright_red: Some(rgba(0x5c331fff).into()), - terminal_ansi_dim_red: Some(rgba(0xe4af96ff).into()), - terminal_ansi_green: Some(rgba(0x7d9727ff).into()), - terminal_ansi_bright_green: Some(rgba(0x3f491aff).into()), - terminal_ansi_dim_green: Some(rgba(0xc0ca93ff).into()), - terminal_ansi_yellow: Some(rgba(0xa59810ff).into()), - terminal_ansi_bright_yellow: Some(rgba(0x514a14ff).into()), - terminal_ansi_dim_yellow: Some(rgba(0xd7ca8dff).into()), - terminal_ansi_blue: Some(rgba(0x37a166ff).into()), - terminal_ansi_bright_blue: Some(rgba(0x234e34ff).into()), - terminal_ansi_dim_blue: Some(rgba(0xa0d1b0ff).into()), - terminal_ansi_magenta: Some(rgba(0x9d6c7cff).into()), - terminal_ansi_bright_magenta: Some(rgba(0x4c373eff).into()), - terminal_ansi_dim_magenta: Some(rgba(0xcfb4bcff).into()), - terminal_ansi_cyan: Some(rgba(0x5b9d48ff).into()), - terminal_ansi_bright_cyan: Some(rgba(0x314c27ff).into()), - terminal_ansi_dim_cyan: Some(rgba(0xaecea1ff).into()), - terminal_ansi_white: Some(rgba(0xf4f3ecff).into()), - terminal_ansi_bright_white: Some(rgba(0xf4f3ecff).into()), - terminal_ansi_dim_white: Some(rgba(0x898775ff).into()), - link_text_hover: Some(rgba(0x37a166ff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0xa59810ff).into()), - conflict_background: Some(rgba(0x25210dff).into()), - conflict_border: Some(rgba(0x3b3612ff).into()), - created: Some(rgba(0x7d9727ff).into()), - created_background: Some(rgba(0x1e2110ff).into()), - created_border: Some(rgba(0x2f3516ff).into()), - deleted: Some(rgba(0xba6237ff).into()), - deleted_background: Some(rgba(0x2b1811ff).into()), - deleted_border: Some(rgba(0x442619ff).into()), - error: Some(rgba(0xba6237ff).into()), - error_background: Some(rgba(0x2b1811ff).into()), - error_border: Some(rgba(0x442619ff).into()), - hidden: Some(rgba(0x7d7c6aff).into()), - hidden_background: Some(rgba(0x424136ff).into()), - hidden_border: Some(rgba(0x504f41ff).into()), - hint: Some(rgba(0x70825bff).into()), - hint_background: Some(rgba(0x142319ff).into()), - hint_border: Some(rgba(0x1c3927ff).into()), - ignored: Some(rgba(0x91907fff).into()), - ignored_background: Some(rgba(0x424136ff).into()), - ignored_border: Some(rgba(0x5d5c4cff).into()), - info: Some(rgba(0x37a166ff).into()), - info_background: Some(rgba(0x142319ff).into()), - info_border: Some(rgba(0x1c3927ff).into()), - modified: Some(rgba(0xa59810ff).into()), - modified_background: Some(rgba(0x25210dff).into()), - modified_border: Some(rgba(0x3b3612ff).into()), - predictive: Some(rgba(0x5f724cff).into()), - predictive_background: Some(rgba(0x1e2110ff).into()), - predictive_border: Some(rgba(0x2f3516ff).into()), - renamed: Some(rgba(0x37a166ff).into()), - renamed_background: Some(rgba(0x142319ff).into()), - renamed_border: Some(rgba(0x1c3927ff).into()), - success: Some(rgba(0x7d9727ff).into()), - success_background: Some(rgba(0x1e2110ff).into()), - success_border: Some(rgba(0x2f3516ff).into()), - unreachable: Some(rgba(0x91907fff).into()), - unreachable_background: Some(rgba(0x424136ff).into()), - unreachable_border: Some(rgba(0x5d5c4cff).into()), - warning: Some(rgba(0xa59810ff).into()), - warning_background: Some(rgba(0x25210dff).into()), - warning_border: Some(rgba(0x3b3612ff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x37a166ff).into(), - background: rgba(0x37a166ff).into(), - selection: rgba(0x37a1663d).into(), - }, - PlayerColor { - cursor: rgba(0x9d6c7cff).into(), - background: rgba(0x9d6c7cff).into(), - selection: rgba(0x9d6c7c3d).into(), - }, - PlayerColor { - cursor: rgba(0xae7315ff).into(), - background: rgba(0xae7315ff).into(), - selection: rgba(0xae73153d).into(), - }, - PlayerColor { - cursor: rgba(0x5f9182ff).into(), - background: rgba(0x5f9182ff).into(), - selection: rgba(0x5f91823d).into(), - }, - PlayerColor { - cursor: rgba(0x5b9d48ff).into(), - background: rgba(0x5b9d48ff).into(), - selection: rgba(0x5b9d483d).into(), - }, - PlayerColor { - cursor: rgba(0xba6237ff).into(), - background: rgba(0xba6237ff).into(), - selection: rgba(0xba62373d).into(), - }, - PlayerColor { - cursor: rgba(0xa59810ff).into(), - background: rgba(0xa59810ff).into(), - selection: rgba(0xa598103d).into(), - }, - PlayerColor { - cursor: rgba(0x7d9727ff).into(), - background: rgba(0x7d9727ff).into(), - selection: rgba(0x7d97273d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x37a166ff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0x7d9727ff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0x6c6b5aff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0x929181ff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0x7d9727ff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x37a166ff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0xf4f3ecff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x37a166ff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x37a166ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0xae7315ff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0x36a166ff).into()), - ..Default::default() - }, - ), - ( - "function.method".into(), - UserHighlightStyle { - color: Some(rgba(0x36a166ff).into()), - ..Default::default() - }, - ), - ( - "function.special.definition".into(), - UserHighlightStyle { - color: Some(rgba(0xa5980dff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x70825bff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0x5f9182ff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x37a166ff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0xae7315ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0x7d9727ff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0xae7313ff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0x929181ff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0x5f724cff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0xf4f3ecff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0xe7e6dfff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0xba6236ff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0xe7e6dfff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0x929181ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0x929181ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0xe7e6dfff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0x9d6c7cff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0x7d9726ff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0x929181ff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0x5b9d48ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0x9d6c7cff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0x7d9726ff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x37a166ff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0xae7315ff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0xf4f3ecff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0xa5980dff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0xe7e6dfff).into()), - ..Default::default() - }, - ), - ( - "variable.special".into(), - UserHighlightStyle { - color: Some(rgba(0x5f9182ff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0xa5980dff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Atelier Estuary Light".into(), - appearance: Appearance::Light, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0x969585ff).into()), - border_variant: Some(rgba(0xd1d0c6ff).into()), - border_focused: Some(rgba(0xbbddc6ff).into()), - border_selected: Some(rgba(0xbbddc6ff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0xadac9fff).into()), - elevated_surface_background: Some(rgba(0xebeae3ff).into()), - surface_background: Some(rgba(0xebeae3ff).into()), - background: Some(rgba(0xc5c4b9ff).into()), - panel_background: Some(rgba(0xebeae3ff).into()), - element_background: Some(rgba(0xebeae3ff).into()), - element_hover: Some(rgba(0xd1d0c6ff).into()), - element_active: Some(rgba(0x989788ff).into()), - element_selected: Some(rgba(0x989788ff).into()), - element_disabled: Some(rgba(0xebeae3ff).into()), - drop_target_background: Some(rgba(0x61604f80).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0xd1d0c6ff).into()), - ghost_element_active: Some(rgba(0x989788ff).into()), - ghost_element_selected: Some(rgba(0x989788ff).into()), - ghost_element_disabled: Some(rgba(0xebeae3ff).into()), - text: Some(rgba(0x22221bff).into()), - text_muted: Some(rgba(0x61604fff).into()), - text_placeholder: Some(rgba(0x767463ff).into()), - text_disabled: Some(rgba(0x767463ff).into()), - text_accent: Some(rgba(0x38a166ff).into()), - icon: Some(rgba(0x22221bff).into()), - icon_muted: Some(rgba(0x61604fff).into()), - icon_disabled: Some(rgba(0x767463ff).into()), - icon_placeholder: Some(rgba(0x61604fff).into()), - icon_accent: Some(rgba(0x38a166ff).into()), - status_bar_background: Some(rgba(0xc5c4b9ff).into()), - title_bar_background: Some(rgba(0xc5c4b9ff).into()), - toolbar_background: Some(rgba(0xf4f3ecff).into()), - tab_bar_background: Some(rgba(0xebeae3ff).into()), - tab_inactive_background: Some(rgba(0xebeae3ff).into()), - tab_active_background: Some(rgba(0xf4f3ecff).into()), - scrollbar_thumb_background: Some(rgba(0x22221b4c).into()), - scrollbar_thumb_hover_background: Some(rgba(0xd1d0c6ff).into()), - scrollbar_thumb_border: Some(rgba(0xd1d0c6ff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0xedece5ff).into()), - editor_foreground: Some(rgba(0x302f27ff).into()), - editor_background: Some(rgba(0xf4f3ecff).into()), - editor_gutter_background: Some(rgba(0xf4f3ecff).into()), - editor_subheader_background: Some(rgba(0xebeae3ff).into()), - editor_active_line_background: Some(rgba(0xebeae3bf).into()), - editor_highlighted_line_background: Some(rgba(0xebeae3ff).into()), - editor_line_number: Some(rgba(0x22221b59).into()), - editor_active_line_number: Some(rgba(0x22221bff).into()), - editor_invisible: Some(rgba(0x7a7867ff).into()), - editor_wrap_guide: Some(rgba(0x22221b0d).into()), - editor_active_wrap_guide: Some(rgba(0x22221b1a).into()), - editor_document_highlight_read_background: Some(rgba(0x38a1661a).into()), - editor_document_highlight_write_background: Some(rgba(0x7a786766).into()), - terminal_background: Some(rgba(0xf4f3ecff).into()), - terminal_foreground: Some(rgba(0x22221bff).into()), - terminal_bright_foreground: Some(rgba(0x22221bff).into()), - terminal_dim_foreground: Some(rgba(0xf4f3ecff).into()), - terminal_ansi_black: Some(rgba(0xf4f3ecff).into()), - terminal_ansi_bright_black: Some(rgba(0x898775ff).into()), - terminal_ansi_dim_black: Some(rgba(0x22221bff).into()), - terminal_ansi_red: Some(rgba(0xba6337ff).into()), - terminal_ansi_bright_red: Some(rgba(0xe4af96ff).into()), - terminal_ansi_dim_red: Some(rgba(0x5c331fff).into()), - terminal_ansi_green: Some(rgba(0x7d9728ff).into()), - terminal_ansi_bright_green: Some(rgba(0xc0ca93ff).into()), - terminal_ansi_dim_green: Some(rgba(0x3f491aff).into()), - terminal_ansi_yellow: Some(rgba(0xa59810ff).into()), - terminal_ansi_bright_yellow: Some(rgba(0xd7ca8dff).into()), - terminal_ansi_dim_yellow: Some(rgba(0x514a14ff).into()), - terminal_ansi_blue: Some(rgba(0x38a166ff).into()), - terminal_ansi_bright_blue: Some(rgba(0xa0d1b0ff).into()), - terminal_ansi_dim_blue: Some(rgba(0x234e34ff).into()), - terminal_ansi_magenta: Some(rgba(0x9d6c7cff).into()), - terminal_ansi_bright_magenta: Some(rgba(0xcfb4bcff).into()), - terminal_ansi_dim_magenta: Some(rgba(0x4c373eff).into()), - terminal_ansi_cyan: Some(rgba(0x5c9d49ff).into()), - terminal_ansi_bright_cyan: Some(rgba(0xaecea1ff).into()), - terminal_ansi_dim_cyan: Some(rgba(0x314c27ff).into()), - terminal_ansi_white: Some(rgba(0x22221bff).into()), - terminal_ansi_bright_white: Some(rgba(0x22221bff).into()), - terminal_ansi_dim_white: Some(rgba(0x6a6958ff).into()), - link_text_hover: Some(rgba(0x38a166ff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0xa59810ff).into()), - conflict_background: Some(rgba(0xf0e9d1ff).into()), - conflict_border: Some(rgba(0xe3d8adff).into()), - created: Some(rgba(0x7d9728ff).into()), - created_background: Some(rgba(0xe6e9d3ff).into()), - created_border: Some(rgba(0xd2d8b1ff).into()), - deleted: Some(rgba(0xba6337ff).into()), - deleted_background: Some(rgba(0xf6ded4ff).into()), - deleted_border: Some(rgba(0xedc5b3ff).into()), - error: Some(rgba(0xba6337ff).into()), - error_background: Some(rgba(0xf6ded4ff).into()), - error_border: Some(rgba(0xedc5b3ff).into()), - hidden: Some(rgba(0x767463ff).into()), - hidden_background: Some(rgba(0xc5c4b9ff).into()), - hidden_border: Some(rgba(0xadac9fff).into()), - hint: Some(rgba(0x768962ff).into()), - hint_background: Some(rgba(0xd9ecdfff).into()), - hint_border: Some(rgba(0xbbddc6ff).into()), - ignored: Some(rgba(0x61604fff).into()), - ignored_background: Some(rgba(0xc5c4b9ff).into()), - ignored_border: Some(rgba(0x969585ff).into()), - info: Some(rgba(0x38a166ff).into()), - info_background: Some(rgba(0xd9ecdfff).into()), - info_border: Some(rgba(0xbbddc6ff).into()), - modified: Some(rgba(0xa59810ff).into()), - modified_background: Some(rgba(0xf0e9d1ff).into()), - modified_border: Some(rgba(0xe3d8adff).into()), - predictive: Some(rgba(0x879a72ff).into()), - predictive_background: Some(rgba(0xe6e9d3ff).into()), - predictive_border: Some(rgba(0xd2d8b1ff).into()), - renamed: Some(rgba(0x38a166ff).into()), - renamed_background: Some(rgba(0xd9ecdfff).into()), - renamed_border: Some(rgba(0xbbddc6ff).into()), - success: Some(rgba(0x7d9728ff).into()), - success_background: Some(rgba(0xe6e9d3ff).into()), - success_border: Some(rgba(0xd2d8b1ff).into()), - unreachable: Some(rgba(0x61604fff).into()), - unreachable_background: Some(rgba(0xc5c4b9ff).into()), - unreachable_border: Some(rgba(0x969585ff).into()), - warning: Some(rgba(0xa59810ff).into()), - warning_background: Some(rgba(0xf0e9d1ff).into()), - warning_border: Some(rgba(0xe3d8adff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x38a166ff).into(), - background: rgba(0x38a166ff).into(), - selection: rgba(0x38a1663d).into(), - }, - PlayerColor { - cursor: rgba(0x9d6c7cff).into(), - background: rgba(0x9d6c7cff).into(), - selection: rgba(0x9d6c7c3d).into(), - }, - PlayerColor { - cursor: rgba(0xae7315ff).into(), - background: rgba(0xae7315ff).into(), - selection: rgba(0xae73153d).into(), - }, - PlayerColor { - cursor: rgba(0x609182ff).into(), - background: rgba(0x609182ff).into(), - selection: rgba(0x6091823d).into(), - }, - PlayerColor { - cursor: rgba(0x5c9d49ff).into(), - background: rgba(0x5c9d49ff).into(), - selection: rgba(0x5c9d493d).into(), - }, - PlayerColor { - cursor: rgba(0xba6337ff).into(), - background: rgba(0xba6337ff).into(), - selection: rgba(0xba63373d).into(), - }, - PlayerColor { - cursor: rgba(0xa59810ff).into(), - background: rgba(0xa59810ff).into(), - selection: rgba(0xa598103d).into(), - }, - PlayerColor { - cursor: rgba(0x7d9728ff).into(), - background: rgba(0x7d9728ff).into(), - selection: rgba(0x7d97283d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x38a166ff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0x7d9728ff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0x878573ff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0x5f5e4eff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0x7d9728ff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x38a166ff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0x22221bff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x38a166ff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x38a166ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0xae7315ff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0x36a166ff).into()), - ..Default::default() - }, - ), - ( - "function.method".into(), - UserHighlightStyle { - color: Some(rgba(0x36a166ff).into()), - ..Default::default() - }, - ), - ( - "function.special.definition".into(), - UserHighlightStyle { - color: Some(rgba(0xa5980dff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x768962ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0x5f9182ff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x38a166ff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0xae7315ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0x7d9728ff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0xae7313ff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0x5f5e4eff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0x879a72ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0x22221bff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0x302f27ff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0xba6236ff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0x302f27ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0x5f5e4eff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0x5f5e4eff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0x302f27ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0x9d6c7cff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0x7d9726ff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0x5f5e4eff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0x5b9d48ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0x9d6c7cff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0x7d9726ff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x38a166ff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0xae7315ff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0x22221bff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0xa5980dff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0x302f27ff).into()), - ..Default::default() - }, - ), - ( - "variable.special".into(), - UserHighlightStyle { - color: Some(rgba(0x5f9182ff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0xa5980dff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Atelier Forest Dark".into(), - appearance: Appearance::Dark, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0x665f5cff).into()), - border_variant: Some(rgba(0x3b3431ff).into()), - border_focused: Some(rgba(0x192e5bff).into()), - border_selected: Some(rgba(0x192e5bff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0x554e4bff).into()), - elevated_surface_background: Some(rgba(0x27211eff).into()), - surface_background: Some(rgba(0x27211eff).into()), - background: Some(rgba(0x443c39ff).into()), - panel_background: Some(rgba(0x27211eff).into()), - element_background: Some(rgba(0x27211eff).into()), - element_hover: Some(rgba(0x3b3431ff).into()), - element_active: Some(rgba(0x645d5aff).into()), - element_selected: Some(rgba(0x645d5aff).into()), - element_disabled: Some(rgba(0x27211eff).into()), - drop_target_background: Some(rgba(0xa79f9d80).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0x3b3431ff).into()), - ghost_element_active: Some(rgba(0x645d5aff).into()), - ghost_element_selected: Some(rgba(0x645d5aff).into()), - ghost_element_disabled: Some(rgba(0x27211eff).into()), - text: Some(rgba(0xf1efeeff).into()), - text_muted: Some(rgba(0xa79f9dff).into()), - text_placeholder: Some(rgba(0x8e8683ff).into()), - text_disabled: Some(rgba(0x8e8683ff).into()), - text_accent: Some(rgba(0x417ee6ff).into()), - icon: Some(rgba(0xf1efeeff).into()), - icon_muted: Some(rgba(0xa79f9dff).into()), - icon_disabled: Some(rgba(0x8e8683ff).into()), - icon_placeholder: Some(rgba(0xa79f9dff).into()), - icon_accent: Some(rgba(0x417ee6ff).into()), - status_bar_background: Some(rgba(0x443c39ff).into()), - title_bar_background: Some(rgba(0x443c39ff).into()), - toolbar_background: Some(rgba(0x1b1918ff).into()), - tab_bar_background: Some(rgba(0x27211eff).into()), - tab_inactive_background: Some(rgba(0x27211eff).into()), - tab_active_background: Some(rgba(0x1b1918ff).into()), - scrollbar_thumb_background: Some(rgba(0xf1efee4c).into()), - scrollbar_thumb_hover_background: Some(rgba(0x3b3431ff).into()), - scrollbar_thumb_border: Some(rgba(0x3b3431ff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0x251f1dff).into()), - editor_foreground: Some(rgba(0xe6e2e0ff).into()), - editor_background: Some(rgba(0x1b1918ff).into()), - editor_gutter_background: Some(rgba(0x1b1918ff).into()), - editor_subheader_background: Some(rgba(0x27211eff).into()), - editor_active_line_background: Some(rgba(0x27211ebf).into()), - editor_highlighted_line_background: Some(rgba(0x27211eff).into()), - editor_line_number: Some(rgba(0xf1efee59).into()), - editor_active_line_number: Some(rgba(0xf1efeeff).into()), - editor_invisible: Some(rgba(0x89817eff).into()), - editor_wrap_guide: Some(rgba(0xf1efee0d).into()), - editor_active_wrap_guide: Some(rgba(0xf1efee1a).into()), - editor_document_highlight_read_background: Some(rgba(0x417ee61a).into()), - editor_document_highlight_write_background: Some(rgba(0x89817e66).into()), - terminal_background: Some(rgba(0x1b1918ff).into()), - terminal_foreground: Some(rgba(0xf1efeeff).into()), - terminal_bright_foreground: Some(rgba(0xf1efeeff).into()), - terminal_dim_foreground: Some(rgba(0x1b1918ff).into()), - terminal_ansi_black: Some(rgba(0x1b1918ff).into()), - terminal_ansi_bright_black: Some(rgba(0x746c69ff).into()), - terminal_ansi_dim_black: Some(rgba(0xf1efeeff).into()), - terminal_ansi_red: Some(rgba(0xf22d40ff).into()), - terminal_ansi_bright_red: Some(rgba(0x8c1223ff).into()), - terminal_ansi_dim_red: Some(rgba(0xffa29aff).into()), - terminal_ansi_green: Some(rgba(0x7b9727ff).into()), - terminal_ansi_bright_green: Some(rgba(0x3e491aff).into()), - terminal_ansi_dim_green: Some(rgba(0xbfca93ff).into()), - terminal_ansi_yellow: Some(rgba(0xc38419ff).into()), - terminal_ansi_bright_yellow: Some(rgba(0x674115ff).into()), - terminal_ansi_dim_yellow: Some(rgba(0xe9c08eff).into()), - terminal_ansi_blue: Some(rgba(0x417ee6ff).into()), - terminal_ansi_bright_blue: Some(rgba(0x213f78ff).into()), - terminal_ansi_dim_blue: Some(rgba(0xaebcf4ff).into()), - terminal_ansi_magenta: Some(rgba(0xc340f2ff).into()), - terminal_ansi_bright_magenta: Some(rgba(0x662186ff).into()), - terminal_ansi_dim_magenta: Some(rgba(0xe7a6fbff).into()), - terminal_ansi_cyan: Some(rgba(0x3e97b8ff).into()), - terminal_ansi_bright_cyan: Some(rgba(0x264958ff).into()), - terminal_ansi_dim_cyan: Some(rgba(0xa6cadbff).into()), - terminal_ansi_white: Some(rgba(0xf1efeeff).into()), - terminal_ansi_bright_white: Some(rgba(0xf1efeeff).into()), - terminal_ansi_dim_white: Some(rgba(0x9e9693ff).into()), - link_text_hover: Some(rgba(0x417ee6ff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0xc38419ff).into()), - conflict_background: Some(rgba(0x371d0dff).into()), - conflict_border: Some(rgba(0x4f2f12ff).into()), - created: Some(rgba(0x7b9727ff).into()), - created_background: Some(rgba(0x1d2110ff).into()), - created_border: Some(rgba(0x2e3516ff).into()), - deleted: Some(rgba(0xf22d40ff).into()), - deleted_background: Some(rgba(0x550512ff).into()), - deleted_border: Some(rgba(0x710c1bff).into()), - error: Some(rgba(0xf22d40ff).into()), - error_background: Some(rgba(0x550512ff).into()), - error_border: Some(rgba(0x710c1bff).into()), - hidden: Some(rgba(0x8e8683ff).into()), - hidden_background: Some(rgba(0x443c39ff).into()), - hidden_border: Some(rgba(0x554e4bff).into()), - hint: Some(rgba(0xa87187ff).into()), - hint_background: Some(rgba(0x0f1d3dff).into()), - hint_border: Some(rgba(0x192e5bff).into()), - ignored: Some(rgba(0xa79f9dff).into()), - ignored_background: Some(rgba(0x443c39ff).into()), - ignored_border: Some(rgba(0x665f5cff).into()), - info: Some(rgba(0x417ee6ff).into()), - info_background: Some(rgba(0x0f1d3dff).into()), - info_border: Some(rgba(0x192e5bff).into()), - modified: Some(rgba(0xc38419ff).into()), - modified_background: Some(rgba(0x371d0dff).into()), - modified_border: Some(rgba(0x4f2f12ff).into()), - predictive: Some(rgba(0x8f5b71ff).into()), - predictive_background: Some(rgba(0x1d2110ff).into()), - predictive_border: Some(rgba(0x2e3516ff).into()), - renamed: Some(rgba(0x417ee6ff).into()), - renamed_background: Some(rgba(0x0f1d3dff).into()), - renamed_border: Some(rgba(0x192e5bff).into()), - success: Some(rgba(0x7b9727ff).into()), - success_background: Some(rgba(0x1d2110ff).into()), - success_border: Some(rgba(0x2e3516ff).into()), - unreachable: Some(rgba(0xa79f9dff).into()), - unreachable_background: Some(rgba(0x443c39ff).into()), - unreachable_border: Some(rgba(0x665f5cff).into()), - warning: Some(rgba(0xc38419ff).into()), - warning_background: Some(rgba(0x371d0dff).into()), - warning_border: Some(rgba(0x4f2f12ff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x417ee6ff).into(), - background: rgba(0x417ee6ff).into(), - selection: rgba(0x417ee63d).into(), - }, - PlayerColor { - cursor: rgba(0xc340f2ff).into(), - background: rgba(0xc340f2ff).into(), - selection: rgba(0xc340f23d).into(), - }, - PlayerColor { - cursor: rgba(0xdf5321ff).into(), - background: rgba(0xdf5321ff).into(), - selection: rgba(0xdf53213d).into(), - }, - PlayerColor { - cursor: rgba(0x6666e9ff).into(), - background: rgba(0x6666e9ff).into(), - selection: rgba(0x6666e93d).into(), - }, - PlayerColor { - cursor: rgba(0x3e97b8ff).into(), - background: rgba(0x3e97b8ff).into(), - selection: rgba(0x3e97b83d).into(), - }, - PlayerColor { - cursor: rgba(0xf22d40ff).into(), - background: rgba(0xf22d40ff).into(), - selection: rgba(0xf22d403d).into(), - }, - PlayerColor { - cursor: rgba(0xc38419ff).into(), - background: rgba(0xc38419ff).into(), - selection: rgba(0xc384193d).into(), - }, - PlayerColor { - cursor: rgba(0x7b9727ff).into(), - background: rgba(0x7b9727ff).into(), - selection: rgba(0x7b97273d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x417ee6ff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0x7b9727ff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0x766e6bff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0xa8a19fff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0x7b9727ff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x417ee6ff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0xf1efeeff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x417ee6ff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x417ee6ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0xdf5321ff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0x407ee7ff).into()), - ..Default::default() - }, - ), - ( - "function.method".into(), - UserHighlightStyle { - color: Some(rgba(0x407ee7ff).into()), - ..Default::default() - }, - ), - ( - "function.special.definition".into(), - UserHighlightStyle { - color: Some(rgba(0xc38418ff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0xa87187ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0x6666eaff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x417ee6ff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0xdf5321ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0x7b9727ff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0xdf5320ff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0xa8a19fff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0x8f5b71ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0xf1efeeff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0xe6e2e0ff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0xf22c40ff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0xe6e2e0ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0xa8a19fff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0xa8a19fff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0xe6e2e0ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0xc33ff3ff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0x7b9726ff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0xa8a19fff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0x3d97b8ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0xc33ff3ff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0x7b9726ff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x417ee6ff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0xdf5321ff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0xf1efeeff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0xc38418ff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0xe6e2e0ff).into()), - ..Default::default() - }, - ), - ( - "variable.special".into(), - UserHighlightStyle { - color: Some(rgba(0x6666eaff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0xc38418ff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Atelier Forest Light".into(), - appearance: Appearance::Light, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0xaaa3a1ff).into()), - border_variant: Some(rgba(0xd6d1cfff).into()), - border_focused: Some(rgba(0xc6cef7ff).into()), - border_selected: Some(rgba(0xc6cef7ff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0xbcb6b4ff).into()), - elevated_surface_background: Some(rgba(0xe9e6e4ff).into()), - surface_background: Some(rgba(0xe9e6e4ff).into()), - background: Some(rgba(0xcdc8c6ff).into()), - panel_background: Some(rgba(0xe9e6e4ff).into()), - element_background: Some(rgba(0xe9e6e4ff).into()), - element_hover: Some(rgba(0xd6d1cfff).into()), - element_active: Some(rgba(0xaca5a3ff).into()), - element_selected: Some(rgba(0xaca5a3ff).into()), - element_disabled: Some(rgba(0xe9e6e4ff).into()), - drop_target_background: Some(rgba(0x6a636080).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0xd6d1cfff).into()), - ghost_element_active: Some(rgba(0xaca5a3ff).into()), - ghost_element_selected: Some(rgba(0xaca5a3ff).into()), - ghost_element_disabled: Some(rgba(0xe9e6e4ff).into()), - text: Some(rgba(0x1b1918ff).into()), - text_muted: Some(rgba(0x6a6360ff).into()), - text_placeholder: Some(rgba(0x847c79ff).into()), - text_disabled: Some(rgba(0x847c79ff).into()), - text_accent: Some(rgba(0x417ee6ff).into()), - icon: Some(rgba(0x1b1918ff).into()), - icon_muted: Some(rgba(0x6a6360ff).into()), - icon_disabled: Some(rgba(0x847c79ff).into()), - icon_placeholder: Some(rgba(0x6a6360ff).into()), - icon_accent: Some(rgba(0x417ee6ff).into()), - status_bar_background: Some(rgba(0xcdc8c6ff).into()), - title_bar_background: Some(rgba(0xcdc8c6ff).into()), - toolbar_background: Some(rgba(0xf1efeeff).into()), - tab_bar_background: Some(rgba(0xe9e6e4ff).into()), - tab_inactive_background: Some(rgba(0xe9e6e4ff).into()), - tab_active_background: Some(rgba(0xf1efeeff).into()), - scrollbar_thumb_background: Some(rgba(0x1b19184c).into()), - scrollbar_thumb_hover_background: Some(rgba(0xd6d1cfff).into()), - scrollbar_thumb_border: Some(rgba(0xd6d1cfff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0xebe8e6ff).into()), - editor_foreground: Some(rgba(0x2c2421ff).into()), - editor_background: Some(rgba(0xf1efeeff).into()), - editor_gutter_background: Some(rgba(0xf1efeeff).into()), - editor_subheader_background: Some(rgba(0xe9e6e4ff).into()), - editor_active_line_background: Some(rgba(0xe9e6e4bf).into()), - editor_highlighted_line_background: Some(rgba(0xe9e6e4ff).into()), - editor_line_number: Some(rgba(0x1b191859).into()), - editor_active_line_number: Some(rgba(0x1b1918ff).into()), - editor_invisible: Some(rgba(0x89817eff).into()), - editor_wrap_guide: Some(rgba(0x1b19180d).into()), - editor_active_wrap_guide: Some(rgba(0x1b19181a).into()), - editor_document_highlight_read_background: Some(rgba(0x417ee61a).into()), - editor_document_highlight_write_background: Some(rgba(0x89817e66).into()), - terminal_background: Some(rgba(0xf1efeeff).into()), - terminal_foreground: Some(rgba(0x1b1918ff).into()), - terminal_bright_foreground: Some(rgba(0x1b1918ff).into()), - terminal_dim_foreground: Some(rgba(0xf1efeeff).into()), - terminal_ansi_black: Some(rgba(0xf1efeeff).into()), - terminal_ansi_bright_black: Some(rgba(0x9e9693ff).into()), - terminal_ansi_dim_black: Some(rgba(0x1b1918ff).into()), - terminal_ansi_red: Some(rgba(0xf22e41ff).into()), - terminal_ansi_bright_red: Some(rgba(0xffa29aff).into()), - terminal_ansi_dim_red: Some(rgba(0x8c1223ff).into()), - terminal_ansi_green: Some(rgba(0x7b9728ff).into()), - terminal_ansi_bright_green: Some(rgba(0xbfca93ff).into()), - terminal_ansi_dim_green: Some(rgba(0x3e491aff).into()), - terminal_ansi_yellow: Some(rgba(0xc3841aff).into()), - terminal_ansi_bright_yellow: Some(rgba(0xe9c08eff).into()), - terminal_ansi_dim_yellow: Some(rgba(0x674115ff).into()), - terminal_ansi_blue: Some(rgba(0x417ee6ff).into()), - terminal_ansi_bright_blue: Some(rgba(0xaebcf4ff).into()), - terminal_ansi_dim_blue: Some(rgba(0x213f78ff).into()), - terminal_ansi_magenta: Some(rgba(0xc340f2ff).into()), - terminal_ansi_bright_magenta: Some(rgba(0xe7a6fbff).into()), - terminal_ansi_dim_magenta: Some(rgba(0x662186ff).into()), - terminal_ansi_cyan: Some(rgba(0x3f97b8ff).into()), - terminal_ansi_bright_cyan: Some(rgba(0xa6cadbff).into()), - terminal_ansi_dim_cyan: Some(rgba(0x264958ff).into()), - terminal_ansi_white: Some(rgba(0x1b1918ff).into()), - terminal_ansi_bright_white: Some(rgba(0x1b1918ff).into()), - terminal_ansi_dim_white: Some(rgba(0x746c69ff).into()), - link_text_hover: Some(rgba(0x417ee6ff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0xc3841aff).into()), - conflict_background: Some(rgba(0xf8e5d1ff).into()), - conflict_border: Some(rgba(0xf0d1adff).into()), - created: Some(rgba(0x7b9728ff).into()), - created_background: Some(rgba(0xe5e9d3ff).into()), - created_border: Some(rgba(0xd1d8b1ff).into()), - deleted: Some(rgba(0xf22e41ff).into()), - deleted_background: Some(rgba(0xffdad5ff).into()), - deleted_border: Some(rgba(0xffbdb6ff).into()), - error: Some(rgba(0xf22e41ff).into()), - error_background: Some(rgba(0xffdad5ff).into()), - error_border: Some(rgba(0xffbdb6ff).into()), - hidden: Some(rgba(0x847c79ff).into()), - hidden_background: Some(rgba(0xcdc8c6ff).into()), - hidden_border: Some(rgba(0xbcb6b4ff).into()), - hint: Some(rgba(0xa67287ff).into()), - hint_background: Some(rgba(0xdfe3fbff).into()), - hint_border: Some(rgba(0xc6cef7ff).into()), - ignored: Some(rgba(0x6a6360ff).into()), - ignored_background: Some(rgba(0xcdc8c6ff).into()), - ignored_border: Some(rgba(0xaaa3a1ff).into()), - info: Some(rgba(0x417ee6ff).into()), - info_background: Some(rgba(0xdfe3fbff).into()), - info_border: Some(rgba(0xc6cef7ff).into()), - modified: Some(rgba(0xc3841aff).into()), - modified_background: Some(rgba(0xf8e5d1ff).into()), - modified_border: Some(rgba(0xf0d1adff).into()), - predictive: Some(rgba(0xbe899eff).into()), - predictive_background: Some(rgba(0xe5e9d3ff).into()), - predictive_border: Some(rgba(0xd1d8b1ff).into()), - renamed: Some(rgba(0x417ee6ff).into()), - renamed_background: Some(rgba(0xdfe3fbff).into()), - renamed_border: Some(rgba(0xc6cef7ff).into()), - success: Some(rgba(0x7b9728ff).into()), - success_background: Some(rgba(0xe5e9d3ff).into()), - success_border: Some(rgba(0xd1d8b1ff).into()), - unreachable: Some(rgba(0x6a6360ff).into()), - unreachable_background: Some(rgba(0xcdc8c6ff).into()), - unreachable_border: Some(rgba(0xaaa3a1ff).into()), - warning: Some(rgba(0xc3841aff).into()), - warning_background: Some(rgba(0xf8e5d1ff).into()), - warning_border: Some(rgba(0xf0d1adff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x417ee6ff).into(), - background: rgba(0x417ee6ff).into(), - selection: rgba(0x417ee63d).into(), - }, - PlayerColor { - cursor: rgba(0xc340f2ff).into(), - background: rgba(0xc340f2ff).into(), - selection: rgba(0xc340f23d).into(), - }, - PlayerColor { - cursor: rgba(0xdf5421ff).into(), - background: rgba(0xdf5421ff).into(), - selection: rgba(0xdf54213d).into(), - }, - PlayerColor { - cursor: rgba(0x6766e9ff).into(), - background: rgba(0x6766e9ff).into(), - selection: rgba(0x6766e93d).into(), - }, - PlayerColor { - cursor: rgba(0x3f97b8ff).into(), - background: rgba(0x3f97b8ff).into(), - selection: rgba(0x3f97b83d).into(), - }, - PlayerColor { - cursor: rgba(0xf22e41ff).into(), - background: rgba(0xf22e41ff).into(), - selection: rgba(0xf22e413d).into(), - }, - PlayerColor { - cursor: rgba(0xc3841aff).into(), - background: rgba(0xc3841aff).into(), - selection: rgba(0xc3841a3d).into(), - }, - PlayerColor { - cursor: rgba(0x7b9728ff).into(), - background: rgba(0x7b9728ff).into(), - selection: rgba(0x7b97283d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x417ee6ff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0x7b9728ff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0x9c9491ff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0x68615eff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0x7b9728ff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x417ee6ff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0x1b1918ff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x417ee6ff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x417ee6ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0xdf5421ff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0x407ee7ff).into()), - ..Default::default() - }, - ), - ( - "function.method".into(), - UserHighlightStyle { - color: Some(rgba(0x407ee7ff).into()), - ..Default::default() - }, - ), - ( - "function.special.definition".into(), - UserHighlightStyle { - color: Some(rgba(0xc38418ff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0xa67287ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0x6666eaff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x417ee6ff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0xdf5421ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0x7b9728ff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0xdf5320ff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0x68615eff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0xbe899eff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0x1b1918ff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0x2c2421ff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0xf22c40ff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0x2c2421ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0x68615eff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0x68615eff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0x2c2421ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0xc33ff3ff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0x7b9726ff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0x68615eff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0x3d97b8ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0xc33ff3ff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0x7b9726ff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x417ee6ff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0xdf5421ff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0x1b1918ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0xc38418ff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0x2c2421ff).into()), - ..Default::default() - }, - ), - ( - "variable.special".into(), - UserHighlightStyle { - color: Some(rgba(0x6666eaff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0xc38418ff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Atelier Heath Dark".into(), - appearance: Appearance::Dark, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0x675b67ff).into()), - border_variant: Some(rgba(0x393239ff).into()), - border_focused: Some(rgba(0x1a2961ff).into()), - border_selected: Some(rgba(0x1a2961ff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0x554a55ff).into()), - elevated_surface_background: Some(rgba(0x252025ff).into()), - surface_background: Some(rgba(0x252025ff).into()), - background: Some(rgba(0x433a43ff).into()), - panel_background: Some(rgba(0x252025ff).into()), - element_background: Some(rgba(0x252025ff).into()), - element_hover: Some(rgba(0x393239ff).into()), - element_active: Some(rgba(0x655965ff).into()), - element_selected: Some(rgba(0x655965ff).into()), - element_disabled: Some(rgba(0x252025ff).into()), - drop_target_background: Some(rgba(0xa99aa980).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0x393239ff).into()), - ghost_element_active: Some(rgba(0x655965ff).into()), - ghost_element_selected: Some(rgba(0x655965ff).into()), - ghost_element_disabled: Some(rgba(0x252025ff).into()), - text: Some(rgba(0xf7f3f7ff).into()), - text_muted: Some(rgba(0xa99aa9ff).into()), - text_placeholder: Some(rgba(0x908190ff).into()), - text_disabled: Some(rgba(0x908190ff).into()), - text_accent: Some(rgba(0x526aebff).into()), - icon: Some(rgba(0xf7f3f7ff).into()), - icon_muted: Some(rgba(0xa99aa9ff).into()), - icon_disabled: Some(rgba(0x908190ff).into()), - icon_placeholder: Some(rgba(0xa99aa9ff).into()), - icon_accent: Some(rgba(0x526aebff).into()), - status_bar_background: Some(rgba(0x433a43ff).into()), - title_bar_background: Some(rgba(0x433a43ff).into()), - toolbar_background: Some(rgba(0x1b181bff).into()), - tab_bar_background: Some(rgba(0x252025ff).into()), - tab_inactive_background: Some(rgba(0x252025ff).into()), - tab_active_background: Some(rgba(0x1b181bff).into()), - scrollbar_thumb_background: Some(rgba(0xf7f3f74c).into()), - scrollbar_thumb_hover_background: Some(rgba(0x393239ff).into()), - scrollbar_thumb_border: Some(rgba(0x393239ff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0x231e23ff).into()), - editor_foreground: Some(rgba(0xd8cad8ff).into()), - editor_background: Some(rgba(0x1b181bff).into()), - editor_gutter_background: Some(rgba(0x1b181bff).into()), - editor_subheader_background: Some(rgba(0x252025ff).into()), - editor_active_line_background: Some(rgba(0x252025bf).into()), - editor_highlighted_line_background: Some(rgba(0x252025ff).into()), - editor_line_number: Some(rgba(0xf7f3f759).into()), - editor_active_line_number: Some(rgba(0xf7f3f7ff).into()), - editor_invisible: Some(rgba(0x8b7c8bff).into()), - editor_wrap_guide: Some(rgba(0xf7f3f70d).into()), - editor_active_wrap_guide: Some(rgba(0xf7f3f71a).into()), - editor_document_highlight_read_background: Some(rgba(0x526aeb1a).into()), - editor_document_highlight_write_background: Some(rgba(0x8b7c8b66).into()), - terminal_background: Some(rgba(0x1b181bff).into()), - terminal_foreground: Some(rgba(0xf7f3f7ff).into()), - terminal_bright_foreground: Some(rgba(0xf7f3f7ff).into()), - terminal_dim_foreground: Some(rgba(0x1b181bff).into()), - terminal_ansi_black: Some(rgba(0x1b181bff).into()), - terminal_ansi_bright_black: Some(rgba(0x756775ff).into()), - terminal_ansi_dim_black: Some(rgba(0xf7f3f7ff).into()), - terminal_ansi_red: Some(rgba(0xca402cff).into()), - terminal_ansi_bright_red: Some(rgba(0x6d221aff).into()), - terminal_ansi_dim_red: Some(rgba(0xf0a28fff).into()), - terminal_ansi_green: Some(rgba(0x918b3bff).into()), - terminal_ansi_bright_green: Some(rgba(0x474422ff).into()), - terminal_ansi_dim_green: Some(rgba(0xcac49aff).into()), - terminal_ansi_yellow: Some(rgba(0xbb8a36ff).into()), - terminal_ansi_bright_yellow: Some(rgba(0x5e441fff).into()), - terminal_ansi_dim_yellow: Some(rgba(0xe2c398ff).into()), - terminal_ansi_blue: Some(rgba(0x526aebff).into()), - terminal_ansi_bright_blue: Some(rgba(0x26367eff).into()), - terminal_ansi_dim_blue: Some(rgba(0xb4b2f7ff).into()), - terminal_ansi_magenta: Some(rgba(0xcc34ccff).into()), - terminal_ansi_bright_magenta: Some(rgba(0x6c1e67ff).into()), - terminal_ansi_dim_magenta: Some(rgba(0xeba2e6ff).into()), - terminal_ansi_cyan: Some(rgba(0x189393ff).into()), - terminal_ansi_bright_cyan: Some(rgba(0x1a4848ff).into()), - terminal_ansi_dim_cyan: Some(rgba(0x9ac9c8ff).into()), - terminal_ansi_white: Some(rgba(0xf7f3f7ff).into()), - terminal_ansi_bright_white: Some(rgba(0xf7f3f7ff).into()), - terminal_ansi_dim_white: Some(rgba(0xa091a0ff).into()), - link_text_hover: Some(rgba(0x526aebff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0xbb8a36ff).into()), - conflict_background: Some(rgba(0x2d1e12ff).into()), - conflict_border: Some(rgba(0x463219ff).into()), - created: Some(rgba(0x918b3bff).into()), - created_background: Some(rgba(0x211f12ff).into()), - created_border: Some(rgba(0x34321bff).into()), - deleted: Some(rgba(0xca402cff).into()), - deleted_background: Some(rgba(0x3c110eff).into()), - deleted_border: Some(rgba(0x551a15ff).into()), - error: Some(rgba(0xca402cff).into()), - error_background: Some(rgba(0x3c110eff).into()), - error_border: Some(rgba(0x551a15ff).into()), - hidden: Some(rgba(0x908190ff).into()), - hidden_background: Some(rgba(0x433a43ff).into()), - hidden_border: Some(rgba(0x554a55ff).into()), - hint: Some(rgba(0x8d70a8ff).into()), - hint_background: Some(rgba(0x0e1a43ff).into()), - hint_border: Some(rgba(0x1a2961ff).into()), - ignored: Some(rgba(0xa99aa9ff).into()), - ignored_background: Some(rgba(0x433a43ff).into()), - ignored_border: Some(rgba(0x675b67ff).into()), - info: Some(rgba(0x526aebff).into()), - info_background: Some(rgba(0x0e1a43ff).into()), - info_border: Some(rgba(0x1a2961ff).into()), - modified: Some(rgba(0xbb8a36ff).into()), - modified_background: Some(rgba(0x2d1e12ff).into()), - modified_border: Some(rgba(0x463219ff).into()), - predictive: Some(rgba(0x765990ff).into()), - predictive_background: Some(rgba(0x211f12ff).into()), - predictive_border: Some(rgba(0x34321bff).into()), - renamed: Some(rgba(0x526aebff).into()), - renamed_background: Some(rgba(0x0e1a43ff).into()), - renamed_border: Some(rgba(0x1a2961ff).into()), - success: Some(rgba(0x918b3bff).into()), - success_background: Some(rgba(0x211f12ff).into()), - success_border: Some(rgba(0x34321bff).into()), - unreachable: Some(rgba(0xa99aa9ff).into()), - unreachable_background: Some(rgba(0x433a43ff).into()), - unreachable_border: Some(rgba(0x675b67ff).into()), - warning: Some(rgba(0xbb8a36ff).into()), - warning_background: Some(rgba(0x2d1e12ff).into()), - warning_border: Some(rgba(0x463219ff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x526aebff).into(), - background: rgba(0x526aebff).into(), - selection: rgba(0x526aeb3d).into(), - }, - PlayerColor { - cursor: rgba(0xcc34ccff).into(), - background: rgba(0xcc34ccff).into(), - selection: rgba(0xcc34cc3d).into(), - }, - PlayerColor { - cursor: rgba(0xa65927ff).into(), - background: rgba(0xa65927ff).into(), - selection: rgba(0xa659273d).into(), - }, - PlayerColor { - cursor: rgba(0x7b59c0ff).into(), - background: rgba(0x7b59c0ff).into(), - selection: rgba(0x7b59c03d).into(), - }, - PlayerColor { - cursor: rgba(0x189393ff).into(), - background: rgba(0x189393ff).into(), - selection: rgba(0x1893933d).into(), - }, - PlayerColor { - cursor: rgba(0xca402cff).into(), - background: rgba(0xca402cff).into(), - selection: rgba(0xca402c3d).into(), - }, - PlayerColor { - cursor: rgba(0xbb8a36ff).into(), - background: rgba(0xbb8a36ff).into(), - selection: rgba(0xbb8a363d).into(), - }, - PlayerColor { - cursor: rgba(0x918b3bff).into(), - background: rgba(0x918b3bff).into(), - selection: rgba(0x918b3b3d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x526aebff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0x918b3bff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0x776977ff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0xab9babff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0x918b3bff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x526aebff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0xf7f3f7ff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x526aebff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x526aebff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0xa65927ff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0x516aecff).into()), - ..Default::default() - }, - ), - ( - "function.method".into(), - UserHighlightStyle { - color: Some(rgba(0x516aecff).into()), - ..Default::default() - }, - ), - ( - "function.special.definition".into(), - UserHighlightStyle { - color: Some(rgba(0xbb8a35ff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x8d70a8ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0x7b59c0ff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x526aebff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0xa65927ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0x918b3bff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0xa65926ff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0xab9babff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0x765990ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0xf7f3f7ff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0xd8cad8ff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0xca402bff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0xd8cad8ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0xab9babff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0xab9babff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0xd8cad8ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0xcc33ccff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0x918b3bff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0xab9babff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0x159393ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0xcc33ccff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0x918b3bff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x526aebff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0xa65927ff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0xf7f3f7ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0xbb8a35ff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0xd8cad8ff).into()), - ..Default::default() - }, - ), - ( - "variable.special".into(), - UserHighlightStyle { - color: Some(rgba(0x7b59c0ff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0xbb8a35ff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Atelier Heath Light".into(), - appearance: Appearance::Light, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0xad9dadff).into()), - border_variant: Some(rgba(0xcdbecdff).into()), - border_focused: Some(rgba(0xcac7faff).into()), - border_selected: Some(rgba(0xcac7faff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0xbaaabaff).into()), - elevated_surface_background: Some(rgba(0xe1d6e1ff).into()), - surface_background: Some(rgba(0xe1d6e1ff).into()), - background: Some(rgba(0xc6b8c6ff).into()), - panel_background: Some(rgba(0xe1d6e1ff).into()), - element_background: Some(rgba(0xe1d6e1ff).into()), - element_hover: Some(rgba(0xcdbecdff).into()), - element_active: Some(rgba(0xae9eaeff).into()), - element_selected: Some(rgba(0xae9eaeff).into()), - element_disabled: Some(rgba(0xe1d6e1ff).into()), - drop_target_background: Some(rgba(0x6b5e6b80).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0xcdbecdff).into()), - ghost_element_active: Some(rgba(0xae9eaeff).into()), - ghost_element_selected: Some(rgba(0xae9eaeff).into()), - ghost_element_disabled: Some(rgba(0xe1d6e1ff).into()), - text: Some(rgba(0x1b181bff).into()), - text_muted: Some(rgba(0x6b5e6bff).into()), - text_placeholder: Some(rgba(0x857785ff).into()), - text_disabled: Some(rgba(0x857785ff).into()), - text_accent: Some(rgba(0x526aebff).into()), - icon: Some(rgba(0x1b181bff).into()), - icon_muted: Some(rgba(0x6b5e6bff).into()), - icon_disabled: Some(rgba(0x857785ff).into()), - icon_placeholder: Some(rgba(0x6b5e6bff).into()), - icon_accent: Some(rgba(0x526aebff).into()), - status_bar_background: Some(rgba(0xc6b8c6ff).into()), - title_bar_background: Some(rgba(0xc6b8c6ff).into()), - toolbar_background: Some(rgba(0xf7f3f7ff).into()), - tab_bar_background: Some(rgba(0xe1d6e1ff).into()), - tab_inactive_background: Some(rgba(0xe1d6e1ff).into()), - tab_active_background: Some(rgba(0xf7f3f7ff).into()), - scrollbar_thumb_background: Some(rgba(0x1b181b4c).into()), - scrollbar_thumb_hover_background: Some(rgba(0xcdbecdff).into()), - scrollbar_thumb_border: Some(rgba(0xcdbecdff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0xe5dce5ff).into()), - editor_foreground: Some(rgba(0x292329ff).into()), - editor_background: Some(rgba(0xf7f3f7ff).into()), - editor_gutter_background: Some(rgba(0xf7f3f7ff).into()), - editor_subheader_background: Some(rgba(0xe1d6e1ff).into()), - editor_active_line_background: Some(rgba(0xe1d6e1bf).into()), - editor_highlighted_line_background: Some(rgba(0xe1d6e1ff).into()), - editor_line_number: Some(rgba(0x1b181b59).into()), - editor_active_line_number: Some(rgba(0x1b181bff).into()), - editor_invisible: Some(rgba(0x8b7c8bff).into()), - editor_wrap_guide: Some(rgba(0x1b181b0d).into()), - editor_active_wrap_guide: Some(rgba(0x1b181b1a).into()), - editor_document_highlight_read_background: Some(rgba(0x526aeb1a).into()), - editor_document_highlight_write_background: Some(rgba(0x8b7c8b66).into()), - terminal_background: Some(rgba(0xf7f3f7ff).into()), - terminal_foreground: Some(rgba(0x1b181bff).into()), - terminal_bright_foreground: Some(rgba(0x1b181bff).into()), - terminal_dim_foreground: Some(rgba(0xf7f3f7ff).into()), - terminal_ansi_black: Some(rgba(0xf7f3f7ff).into()), - terminal_ansi_bright_black: Some(rgba(0xa091a0ff).into()), - terminal_ansi_dim_black: Some(rgba(0x1b181bff).into()), - terminal_ansi_red: Some(rgba(0xca412cff).into()), - terminal_ansi_bright_red: Some(rgba(0xf0a28fff).into()), - terminal_ansi_dim_red: Some(rgba(0x6d221aff).into()), - terminal_ansi_green: Some(rgba(0x918b3cff).into()), - terminal_ansi_bright_green: Some(rgba(0xcac49aff).into()), - terminal_ansi_dim_green: Some(rgba(0x474422ff).into()), - terminal_ansi_yellow: Some(rgba(0xbb8a36ff).into()), - terminal_ansi_bright_yellow: Some(rgba(0xe2c398ff).into()), - terminal_ansi_dim_yellow: Some(rgba(0x5e441fff).into()), - terminal_ansi_blue: Some(rgba(0x526aebff).into()), - terminal_ansi_bright_blue: Some(rgba(0xb4b2f7ff).into()), - terminal_ansi_dim_blue: Some(rgba(0x26367eff).into()), - terminal_ansi_magenta: Some(rgba(0xcc35ccff).into()), - terminal_ansi_bright_magenta: Some(rgba(0xeba2e6ff).into()), - terminal_ansi_dim_magenta: Some(rgba(0x6c1e67ff).into()), - terminal_ansi_cyan: Some(rgba(0x199393ff).into()), - terminal_ansi_bright_cyan: Some(rgba(0x9ac9c8ff).into()), - terminal_ansi_dim_cyan: Some(rgba(0x1a4848ff).into()), - terminal_ansi_white: Some(rgba(0x1b181bff).into()), - terminal_ansi_bright_white: Some(rgba(0x1b181bff).into()), - terminal_ansi_dim_white: Some(rgba(0x756775ff).into()), - link_text_hover: Some(rgba(0x526aebff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0xbb8a36ff).into()), - conflict_background: Some(rgba(0xf5e6d5ff).into()), - conflict_border: Some(rgba(0xebd3b5ff).into()), - created: Some(rgba(0x918b3cff).into()), - created_background: Some(rgba(0xeae6d6ff).into()), - created_border: Some(rgba(0xd9d4b6ff).into()), - deleted: Some(rgba(0xca412cff).into()), - deleted_background: Some(rgba(0xfcd9d1ff).into()), - deleted_border: Some(rgba(0xf7bcaeff).into()), - error: Some(rgba(0xca412cff).into()), - error_background: Some(rgba(0xfcd9d1ff).into()), - error_border: Some(rgba(0xf7bcaeff).into()), - hidden: Some(rgba(0x857785ff).into()), - hidden_background: Some(rgba(0xc6b8c6ff).into()), - hidden_border: Some(rgba(0xbaaabaff).into()), - hint: Some(rgba(0x8c70a6ff).into()), - hint_background: Some(rgba(0xe2dffcff).into()), - hint_border: Some(rgba(0xcac7faff).into()), - ignored: Some(rgba(0x6b5e6bff).into()), - ignored_background: Some(rgba(0xc6b8c6ff).into()), - ignored_border: Some(rgba(0xad9dadff).into()), - info: Some(rgba(0x526aebff).into()), - info_background: Some(rgba(0xe2dffcff).into()), - info_border: Some(rgba(0xcac7faff).into()), - modified: Some(rgba(0xbb8a36ff).into()), - modified_background: Some(rgba(0xf5e6d5ff).into()), - modified_border: Some(rgba(0xebd3b5ff).into()), - predictive: Some(rgba(0xa587bfff).into()), - predictive_background: Some(rgba(0xeae6d6ff).into()), - predictive_border: Some(rgba(0xd9d4b6ff).into()), - renamed: Some(rgba(0x526aebff).into()), - renamed_background: Some(rgba(0xe2dffcff).into()), - renamed_border: Some(rgba(0xcac7faff).into()), - success: Some(rgba(0x918b3cff).into()), - success_background: Some(rgba(0xeae6d6ff).into()), - success_border: Some(rgba(0xd9d4b6ff).into()), - unreachable: Some(rgba(0x6b5e6bff).into()), - unreachable_background: Some(rgba(0xc6b8c6ff).into()), - unreachable_border: Some(rgba(0xad9dadff).into()), - warning: Some(rgba(0xbb8a36ff).into()), - warning_background: Some(rgba(0xf5e6d5ff).into()), - warning_border: Some(rgba(0xebd3b5ff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x526aebff).into(), - background: rgba(0x526aebff).into(), - selection: rgba(0x526aeb3d).into(), - }, - PlayerColor { - cursor: rgba(0xcc35ccff).into(), - background: rgba(0xcc35ccff).into(), - selection: rgba(0xcc35cc3d).into(), - }, - PlayerColor { - cursor: rgba(0xa65a27ff).into(), - background: rgba(0xa65a27ff).into(), - selection: rgba(0xa65a273d).into(), - }, - PlayerColor { - cursor: rgba(0x7b5ac0ff).into(), - background: rgba(0x7b5ac0ff).into(), - selection: rgba(0x7b5ac03d).into(), - }, - PlayerColor { - cursor: rgba(0x199393ff).into(), - background: rgba(0x199393ff).into(), - selection: rgba(0x1993933d).into(), - }, - PlayerColor { - cursor: rgba(0xca412cff).into(), - background: rgba(0xca412cff).into(), - selection: rgba(0xca412c3d).into(), - }, - PlayerColor { - cursor: rgba(0xbb8a36ff).into(), - background: rgba(0xbb8a36ff).into(), - selection: rgba(0xbb8a363d).into(), - }, - PlayerColor { - cursor: rgba(0x918b3cff).into(), - background: rgba(0x918b3cff).into(), - selection: rgba(0x918b3c3d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x526aebff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0x918b3cff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0x9e8f9eff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0x695d69ff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0x918b3cff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x526aebff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0x1b181bff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x526aebff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x526aebff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0xa65a27ff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0x516aecff).into()), - ..Default::default() - }, - ), - ( - "function.method".into(), - UserHighlightStyle { - color: Some(rgba(0x516aecff).into()), - ..Default::default() - }, - ), - ( - "function.special.definition".into(), - UserHighlightStyle { - color: Some(rgba(0xbb8a35ff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x8c70a6ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0x7b59c0ff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x526aebff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0xa65a27ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0x918b3cff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0xa65926ff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0x695d69ff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0xa587bfff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0x1b181bff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0x292329ff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0xca402bff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0x292329ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0x695d69ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0x695d69ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0x292329ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0xcc33ccff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0x918b3bff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0x695d69ff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0x159393ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0xcc33ccff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0x918b3bff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x526aebff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0xa65a27ff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0x1b181bff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0xbb8a35ff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0x292329ff).into()), - ..Default::default() - }, - ), - ( - "variable.special".into(), - UserHighlightStyle { - color: Some(rgba(0x7b59c0ff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0xbb8a35ff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Atelier Lakeside Dark".into(), - appearance: Appearance::Dark, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0x4f6b78ff).into()), - border_variant: Some(rgba(0x2c3b42ff).into()), - border_focused: Some(rgba(0x1a2f3cff).into()), - border_selected: Some(rgba(0x1a2f3cff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0x415763ff).into()), - elevated_surface_background: Some(rgba(0x1c2529ff).into()), - surface_background: Some(rgba(0x1c2529ff).into()), - background: Some(rgba(0x33444dff).into()), - panel_background: Some(rgba(0x1c2529ff).into()), - element_background: Some(rgba(0x1c2529ff).into()), - element_hover: Some(rgba(0x2c3b42ff).into()), - element_active: Some(rgba(0x4d6976ff).into()), - element_selected: Some(rgba(0x4d6976ff).into()), - element_disabled: Some(rgba(0x1c2529ff).into()), - drop_target_background: Some(rgba(0x7ca0b380).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0x2c3b42ff).into()), - ghost_element_active: Some(rgba(0x4d6976ff).into()), - ghost_element_selected: Some(rgba(0x4d6976ff).into()), - ghost_element_disabled: Some(rgba(0x1c2529ff).into()), - text: Some(rgba(0xebf8ffff).into()), - text_muted: Some(rgba(0x7ca0b3ff).into()), - text_placeholder: Some(rgba(0x698c9eff).into()), - text_disabled: Some(rgba(0x698c9eff).into()), - text_accent: Some(rgba(0x277fadff).into()), - icon: Some(rgba(0xebf8ffff).into()), - icon_muted: Some(rgba(0x7ca0b3ff).into()), - icon_disabled: Some(rgba(0x698c9eff).into()), - icon_placeholder: Some(rgba(0x7ca0b3ff).into()), - icon_accent: Some(rgba(0x277fadff).into()), - status_bar_background: Some(rgba(0x33444dff).into()), - title_bar_background: Some(rgba(0x33444dff).into()), - toolbar_background: Some(rgba(0x161b1dff).into()), - tab_bar_background: Some(rgba(0x1c2529ff).into()), - tab_inactive_background: Some(rgba(0x1c2529ff).into()), - tab_active_background: Some(rgba(0x161b1dff).into()), - scrollbar_thumb_background: Some(rgba(0xebf8ff4c).into()), - scrollbar_thumb_hover_background: Some(rgba(0x2c3b42ff).into()), - scrollbar_thumb_border: Some(rgba(0x2c3b42ff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0x1b2327ff).into()), - editor_foreground: Some(rgba(0xc1e4f6ff).into()), - editor_background: Some(rgba(0x161b1dff).into()), - editor_gutter_background: Some(rgba(0x161b1dff).into()), - editor_subheader_background: Some(rgba(0x1c2529ff).into()), - editor_active_line_background: Some(rgba(0x1c2529bf).into()), - editor_highlighted_line_background: Some(rgba(0x1c2529ff).into()), - editor_line_number: Some(rgba(0xebf8ff59).into()), - editor_active_line_number: Some(rgba(0xebf8ffff).into()), - editor_invisible: Some(rgba(0x66889aff).into()), - editor_wrap_guide: Some(rgba(0xebf8ff0d).into()), - editor_active_wrap_guide: Some(rgba(0xebf8ff1a).into()), - editor_document_highlight_read_background: Some(rgba(0x277fad1a).into()), - editor_document_highlight_write_background: Some(rgba(0x66889a66).into()), - terminal_background: Some(rgba(0x161b1dff).into()), - terminal_foreground: Some(rgba(0xebf8ffff).into()), - terminal_bright_foreground: Some(rgba(0xebf8ffff).into()), - terminal_dim_foreground: Some(rgba(0x161b1dff).into()), - terminal_ansi_black: Some(rgba(0x161b1dff).into()), - terminal_ansi_bright_black: Some(rgba(0x587989ff).into()), - terminal_ansi_dim_black: Some(rgba(0xebf8ffff).into()), - terminal_ansi_red: Some(rgba(0xd22e72ff).into()), - terminal_ansi_bright_red: Some(rgba(0x6f1c3aff).into()), - terminal_ansi_dim_red: Some(rgba(0xf09fb6ff).into()), - terminal_ansi_green: Some(rgba(0x568c3bff).into()), - terminal_ansi_bright_green: Some(rgba(0x2e4522ff).into()), - terminal_ansi_dim_green: Some(rgba(0xabc59aff).into()), - terminal_ansi_yellow: Some(rgba(0x8a8a11ff).into()), - terminal_ansi_bright_yellow: Some(rgba(0x454413ff).into()), - terminal_ansi_dim_yellow: Some(rgba(0xc8c38bff).into()), - terminal_ansi_blue: Some(rgba(0x277fadff).into()), - terminal_ansi_bright_blue: Some(rgba(0x1e3f53ff).into()), - terminal_ansi_dim_blue: Some(rgba(0x9ebdd6ff).into()), - terminal_ansi_magenta: Some(rgba(0xb72ed2ff).into()), - terminal_ansi_bright_magenta: Some(rgba(0x5c1e6bff).into()), - terminal_ansi_dim_magenta: Some(rgba(0xe09fe9ff).into()), - terminal_ansi_cyan: Some(rgba(0x2e8f6fff).into()), - terminal_ansi_bright_cyan: Some(rgba(0x1f4638ff).into()), - terminal_ansi_dim_cyan: Some(rgba(0x9bc7b5ff).into()), - terminal_ansi_white: Some(rgba(0xebf8ffff).into()), - terminal_ansi_bright_white: Some(rgba(0xebf8ffff).into()), - terminal_ansi_dim_white: Some(rgba(0x7397aaff).into()), - link_text_hover: Some(rgba(0x277fadff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0x8a8a11ff).into()), - conflict_background: Some(rgba(0x201f0cff).into()), - conflict_border: Some(rgba(0x333211ff).into()), - created: Some(rgba(0x568c3bff).into()), - created_background: Some(rgba(0x171f12ff).into()), - created_border: Some(rgba(0x23321bff).into()), - deleted: Some(rgba(0xd22e72ff).into()), - deleted_background: Some(rgba(0x3a101bff).into()), - deleted_border: Some(rgba(0x55162bff).into()), - error: Some(rgba(0xd22e72ff).into()), - error_background: Some(rgba(0x3a101bff).into()), - error_border: Some(rgba(0x55162bff).into()), - hidden: Some(rgba(0x698c9eff).into()), - hidden_background: Some(rgba(0x33444dff).into()), - hidden_border: Some(rgba(0x415763ff).into()), - hint: Some(rgba(0x52809aff).into()), - hint_background: Some(rgba(0x131d24ff).into()), - hint_border: Some(rgba(0x1a2f3cff).into()), - ignored: Some(rgba(0x7ca0b3ff).into()), - ignored_background: Some(rgba(0x33444dff).into()), - ignored_border: Some(rgba(0x4f6b78ff).into()), - info: Some(rgba(0x277fadff).into()), - info_background: Some(rgba(0x131d24ff).into()), - info_border: Some(rgba(0x1a2f3cff).into()), - modified: Some(rgba(0x8a8a11ff).into()), - modified_background: Some(rgba(0x201f0cff).into()), - modified_border: Some(rgba(0x333211ff).into()), - predictive: Some(rgba(0x427088ff).into()), - predictive_background: Some(rgba(0x171f12ff).into()), - predictive_border: Some(rgba(0x23321bff).into()), - renamed: Some(rgba(0x277fadff).into()), - renamed_background: Some(rgba(0x131d24ff).into()), - renamed_border: Some(rgba(0x1a2f3cff).into()), - success: Some(rgba(0x568c3bff).into()), - success_background: Some(rgba(0x171f12ff).into()), - success_border: Some(rgba(0x23321bff).into()), - unreachable: Some(rgba(0x7ca0b3ff).into()), - unreachable_background: Some(rgba(0x33444dff).into()), - unreachable_border: Some(rgba(0x4f6b78ff).into()), - warning: Some(rgba(0x8a8a11ff).into()), - warning_background: Some(rgba(0x201f0cff).into()), - warning_border: Some(rgba(0x333211ff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x277fadff).into(), - background: rgba(0x277fadff).into(), - selection: rgba(0x277fad3d).into(), - }, - PlayerColor { - cursor: rgba(0xb72ed2ff).into(), - background: rgba(0xb72ed2ff).into(), - selection: rgba(0xb72ed23d).into(), - }, - PlayerColor { - cursor: rgba(0x935c26ff).into(), - background: rgba(0x935c26ff).into(), - selection: rgba(0x935c263d).into(), - }, - PlayerColor { - cursor: rgba(0x6b6bb8ff).into(), - background: rgba(0x6b6bb8ff).into(), - selection: rgba(0x6b6bb83d).into(), - }, - PlayerColor { - cursor: rgba(0x2e8f6fff).into(), - background: rgba(0x2e8f6fff).into(), - selection: rgba(0x2e8f6f3d).into(), - }, - PlayerColor { - cursor: rgba(0xd22e72ff).into(), - background: rgba(0xd22e72ff).into(), - selection: rgba(0xd22e723d).into(), - }, - PlayerColor { - cursor: rgba(0x8a8a11ff).into(), - background: rgba(0x8a8a11ff).into(), - selection: rgba(0x8a8a113d).into(), - }, - PlayerColor { - cursor: rgba(0x568c3bff).into(), - background: rgba(0x568c3bff).into(), - selection: rgba(0x568c3b3d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x277fadff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0x568c3bff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0x5a7b8cff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0x7ea2b4ff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0x568c3bff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x277fadff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0xebf8ffff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x277fadff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x277fadff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0x935c26ff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0x257fadff).into()), - ..Default::default() - }, - ), - ( - "function.method".into(), - UserHighlightStyle { - color: Some(rgba(0x257fadff).into()), - ..Default::default() - }, - ), - ( - "function.special.definition".into(), - UserHighlightStyle { - color: Some(rgba(0x8a8a0fff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x52809aff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0x6b6bb8ff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x277fadff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0x935c26ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0x568c3bff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0x935c25ff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0x7ea2b4ff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0x427088ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0xebf8ffff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0xc1e4f6ff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0xd22d72ff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0xc1e4f6ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0x7ea2b4ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0x7ea2b4ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0xc1e4f6ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0xb72dd2ff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0x568c3bff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0x7ea2b4ff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0x2d8f6fff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0xb72dd2ff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0x568c3bff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x277fadff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0x935c26ff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0xebf8ffff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0x8a8a0fff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0xc1e4f6ff).into()), - ..Default::default() - }, - ), - ( - "variable.special".into(), - UserHighlightStyle { - color: Some(rgba(0x6b6bb8ff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0x8a8a0fff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Atelier Lakeside Light".into(), - appearance: Appearance::Light, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0x80a4b6ff).into()), - border_variant: Some(rgba(0xb0d3e5ff).into()), - border_focused: Some(rgba(0xbacfe1ff).into()), - border_selected: Some(rgba(0xbacfe1ff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0x93b7c9ff).into()), - elevated_surface_background: Some(rgba(0xcdeaf9ff).into()), - surface_background: Some(rgba(0xcdeaf9ff).into()), - background: Some(rgba(0xa6cadcff).into()), - panel_background: Some(rgba(0xcdeaf9ff).into()), - element_background: Some(rgba(0xcdeaf9ff).into()), - element_hover: Some(rgba(0xb0d3e5ff).into()), - element_active: Some(rgba(0x82a6b8ff).into()), - element_selected: Some(rgba(0x82a6b8ff).into()), - element_disabled: Some(rgba(0xcdeaf9ff).into()), - drop_target_background: Some(rgba(0x526f7d80).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0xb0d3e5ff).into()), - ghost_element_active: Some(rgba(0x82a6b8ff).into()), - ghost_element_selected: Some(rgba(0x82a6b8ff).into()), - ghost_element_disabled: Some(rgba(0xcdeaf9ff).into()), - text: Some(rgba(0x161b1dff).into()), - text_muted: Some(rgba(0x526f7dff).into()), - text_placeholder: Some(rgba(0x628496ff).into()), - text_disabled: Some(rgba(0x628496ff).into()), - text_accent: Some(rgba(0x277fadff).into()), - icon: Some(rgba(0x161b1dff).into()), - icon_muted: Some(rgba(0x526f7dff).into()), - icon_disabled: Some(rgba(0x628496ff).into()), - icon_placeholder: Some(rgba(0x526f7dff).into()), - icon_accent: Some(rgba(0x277fadff).into()), - status_bar_background: Some(rgba(0xa6cadcff).into()), - title_bar_background: Some(rgba(0xa6cadcff).into()), - toolbar_background: Some(rgba(0xebf8ffff).into()), - tab_bar_background: Some(rgba(0xcdeaf9ff).into()), - tab_inactive_background: Some(rgba(0xcdeaf9ff).into()), - tab_active_background: Some(rgba(0xebf8ffff).into()), - scrollbar_thumb_background: Some(rgba(0x161b1d4c).into()), - scrollbar_thumb_hover_background: Some(rgba(0xb0d3e5ff).into()), - scrollbar_thumb_border: Some(rgba(0xb0d3e5ff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0xd3edfaff).into()), - editor_foreground: Some(rgba(0x1f292eff).into()), - editor_background: Some(rgba(0xebf8ffff).into()), - editor_gutter_background: Some(rgba(0xebf8ffff).into()), - editor_subheader_background: Some(rgba(0xcdeaf9ff).into()), - editor_active_line_background: Some(rgba(0xcdeaf9bf).into()), - editor_highlighted_line_background: Some(rgba(0xcdeaf9ff).into()), - editor_line_number: Some(rgba(0x161b1d59).into()), - editor_active_line_number: Some(rgba(0x161b1dff).into()), - editor_invisible: Some(rgba(0x66889aff).into()), - editor_wrap_guide: Some(rgba(0x161b1d0d).into()), - editor_active_wrap_guide: Some(rgba(0x161b1d1a).into()), - editor_document_highlight_read_background: Some(rgba(0x277fad1a).into()), - editor_document_highlight_write_background: Some(rgba(0x66889a66).into()), - terminal_background: Some(rgba(0xebf8ffff).into()), - terminal_foreground: Some(rgba(0x161b1dff).into()), - terminal_bright_foreground: Some(rgba(0x161b1dff).into()), - terminal_dim_foreground: Some(rgba(0xebf8ffff).into()), - terminal_ansi_black: Some(rgba(0xebf8ffff).into()), - terminal_ansi_bright_black: Some(rgba(0x7397aaff).into()), - terminal_ansi_dim_black: Some(rgba(0x161b1dff).into()), - terminal_ansi_red: Some(rgba(0xd22f72ff).into()), - terminal_ansi_bright_red: Some(rgba(0xf09fb6ff).into()), - terminal_ansi_dim_red: Some(rgba(0x6f1c3aff).into()), - terminal_ansi_green: Some(rgba(0x578c3cff).into()), - terminal_ansi_bright_green: Some(rgba(0xabc59aff).into()), - terminal_ansi_dim_green: Some(rgba(0x2e4522ff).into()), - terminal_ansi_yellow: Some(rgba(0x8a8a11ff).into()), - terminal_ansi_bright_yellow: Some(rgba(0xc8c38bff).into()), - terminal_ansi_dim_yellow: Some(rgba(0x454413ff).into()), - terminal_ansi_blue: Some(rgba(0x277fadff).into()), - terminal_ansi_bright_blue: Some(rgba(0x9ebdd6ff).into()), - terminal_ansi_dim_blue: Some(rgba(0x1e3f53ff).into()), - terminal_ansi_magenta: Some(rgba(0xb72fd2ff).into()), - terminal_ansi_bright_magenta: Some(rgba(0xe09fe9ff).into()), - terminal_ansi_dim_magenta: Some(rgba(0x5c1e6bff).into()), - terminal_ansi_cyan: Some(rgba(0x2f8f6fff).into()), - terminal_ansi_bright_cyan: Some(rgba(0x9bc7b5ff).into()), - terminal_ansi_dim_cyan: Some(rgba(0x1f4638ff).into()), - terminal_ansi_white: Some(rgba(0x161b1dff).into()), - terminal_ansi_bright_white: Some(rgba(0x161b1dff).into()), - terminal_ansi_dim_white: Some(rgba(0x587989ff).into()), - link_text_hover: Some(rgba(0x277fadff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0x8a8a11ff).into()), - conflict_background: Some(rgba(0xeae6d0ff).into()), - conflict_border: Some(rgba(0xd8d3abff).into()), - created: Some(rgba(0x578c3cff).into()), - created_background: Some(rgba(0xdde7d5ff).into()), - created_border: Some(rgba(0xc2d5b6ff).into()), - deleted: Some(rgba(0xd22f72ff).into()), - deleted_background: Some(rgba(0xfbd8e1ff).into()), - deleted_border: Some(rgba(0xf6bacaff).into()), - error: Some(rgba(0xd22f72ff).into()), - error_background: Some(rgba(0xfbd8e1ff).into()), - error_border: Some(rgba(0xf6bacaff).into()), - hidden: Some(rgba(0x628496ff).into()), - hidden_background: Some(rgba(0xa6cadcff).into()), - hidden_border: Some(rgba(0x93b7c9ff).into()), - hint: Some(rgba(0x5a87a0ff).into()), - hint_background: Some(rgba(0xd8e4eeff).into()), - hint_border: Some(rgba(0xbacfe1ff).into()), - ignored: Some(rgba(0x526f7dff).into()), - ignored_background: Some(rgba(0xa6cadcff).into()), - ignored_border: Some(rgba(0x80a4b6ff).into()), - info: Some(rgba(0x277fadff).into()), - info_background: Some(rgba(0xd8e4eeff).into()), - info_border: Some(rgba(0xbacfe1ff).into()), - modified: Some(rgba(0x8a8a11ff).into()), - modified_background: Some(rgba(0xeae6d0ff).into()), - modified_border: Some(rgba(0xd8d3abff).into()), - predictive: Some(rgba(0x6a97b2ff).into()), - predictive_background: Some(rgba(0xdde7d5ff).into()), - predictive_border: Some(rgba(0xc2d5b6ff).into()), - renamed: Some(rgba(0x277fadff).into()), - renamed_background: Some(rgba(0xd8e4eeff).into()), - renamed_border: Some(rgba(0xbacfe1ff).into()), - success: Some(rgba(0x578c3cff).into()), - success_background: Some(rgba(0xdde7d5ff).into()), - success_border: Some(rgba(0xc2d5b6ff).into()), - unreachable: Some(rgba(0x526f7dff).into()), - unreachable_background: Some(rgba(0xa6cadcff).into()), - unreachable_border: Some(rgba(0x80a4b6ff).into()), - warning: Some(rgba(0x8a8a11ff).into()), - warning_background: Some(rgba(0xeae6d0ff).into()), - warning_border: Some(rgba(0xd8d3abff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x277fadff).into(), - background: rgba(0x277fadff).into(), - selection: rgba(0x277fad3d).into(), - }, - PlayerColor { - cursor: rgba(0xb72fd2ff).into(), - background: rgba(0xb72fd2ff).into(), - selection: rgba(0xb72fd23d).into(), - }, - PlayerColor { - cursor: rgba(0x935d26ff).into(), - background: rgba(0x935d26ff).into(), - selection: rgba(0x935d263d).into(), - }, - PlayerColor { - cursor: rgba(0x6c6bb8ff).into(), - background: rgba(0x6c6bb8ff).into(), - selection: rgba(0x6c6bb83d).into(), - }, - PlayerColor { - cursor: rgba(0x2f8f6fff).into(), - background: rgba(0x2f8f6fff).into(), - selection: rgba(0x2f8f6f3d).into(), - }, - PlayerColor { - cursor: rgba(0xd22f72ff).into(), - background: rgba(0xd22f72ff).into(), - selection: rgba(0xd22f723d).into(), - }, - PlayerColor { - cursor: rgba(0x8a8a11ff).into(), - background: rgba(0x8a8a11ff).into(), - selection: rgba(0x8a8a113d).into(), - }, - PlayerColor { - cursor: rgba(0x578c3cff).into(), - background: rgba(0x578c3cff).into(), - selection: rgba(0x578c3c3d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x277fadff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0x578c3cff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0x7195a8ff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0x516d7bff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0x578c3cff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x277fadff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0x161b1dff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x277fadff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x277fadff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0x935d26ff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0x257fadff).into()), - ..Default::default() - }, - ), - ( - "function.method".into(), - UserHighlightStyle { - color: Some(rgba(0x257fadff).into()), - ..Default::default() - }, - ), - ( - "function.special.definition".into(), - UserHighlightStyle { - color: Some(rgba(0x8a8a0fff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x5a87a0ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0x6b6bb8ff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x277fadff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0x935d26ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0x578c3cff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0x935c25ff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0x516d7bff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0x6a97b2ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0x161b1dff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0x1f292eff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0xd22d72ff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0x1f292eff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0x516d7bff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0x516d7bff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0x1f292eff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0xb72dd2ff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0x568c3bff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0x516d7bff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0x2d8f6fff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0xb72dd2ff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0x568c3bff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x277fadff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0x935d26ff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0x161b1dff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0x8a8a0fff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0x1f292eff).into()), - ..Default::default() - }, - ), - ( - "variable.special".into(), - UserHighlightStyle { - color: Some(rgba(0x6b6bb8ff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0x8a8a0fff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Atelier Plateau Dark".into(), - appearance: Appearance::Dark, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0x564e4eff).into()), - border_variant: Some(rgba(0x352f2fff).into()), - border_focused: Some(rgba(0x2c2b45ff).into()), - border_selected: Some(rgba(0x2c2b45ff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0x494242ff).into()), - elevated_surface_background: Some(rgba(0x252020ff).into()), - surface_background: Some(rgba(0x252020ff).into()), - background: Some(rgba(0x3b3535ff).into()), - panel_background: Some(rgba(0x252020ff).into()), - element_background: Some(rgba(0x252020ff).into()), - element_hover: Some(rgba(0x352f2fff).into()), - element_active: Some(rgba(0x554d4dff).into()), - element_selected: Some(rgba(0x554d4dff).into()), - element_disabled: Some(rgba(0x252020ff).into()), - drop_target_background: Some(rgba(0x89838380).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0x352f2fff).into()), - ghost_element_active: Some(rgba(0x554d4dff).into()), - ghost_element_selected: Some(rgba(0x554d4dff).into()), - ghost_element_disabled: Some(rgba(0x252020ff).into()), - text: Some(rgba(0xf4ececff).into()), - text_muted: Some(rgba(0x898383ff).into()), - text_placeholder: Some(rgba(0x756e6eff).into()), - text_disabled: Some(rgba(0x756e6eff).into()), - text_accent: Some(rgba(0x7272caff).into()), - icon: Some(rgba(0xf4ececff).into()), - icon_muted: Some(rgba(0x898383ff).into()), - icon_disabled: Some(rgba(0x756e6eff).into()), - icon_placeholder: Some(rgba(0x898383ff).into()), - icon_accent: Some(rgba(0x7272caff).into()), - status_bar_background: Some(rgba(0x3b3535ff).into()), - title_bar_background: Some(rgba(0x3b3535ff).into()), - toolbar_background: Some(rgba(0x1b1818ff).into()), - tab_bar_background: Some(rgba(0x252020ff).into()), - tab_inactive_background: Some(rgba(0x252020ff).into()), - tab_active_background: Some(rgba(0x1b1818ff).into()), - scrollbar_thumb_background: Some(rgba(0xf4ecec4c).into()), - scrollbar_thumb_hover_background: Some(rgba(0x352f2fff).into()), - scrollbar_thumb_border: Some(rgba(0x352f2fff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0x231f1fff).into()), - editor_foreground: Some(rgba(0xe7dfdfff).into()), - editor_background: Some(rgba(0x1b1818ff).into()), - editor_gutter_background: Some(rgba(0x1b1818ff).into()), - editor_subheader_background: Some(rgba(0x252020ff).into()), - editor_active_line_background: Some(rgba(0x252020bf).into()), - editor_highlighted_line_background: Some(rgba(0x252020ff).into()), - editor_line_number: Some(rgba(0xf4ecec59).into()), - editor_active_line_number: Some(rgba(0xf4ececff).into()), - editor_invisible: Some(rgba(0x726a6aff).into()), - editor_wrap_guide: Some(rgba(0xf4ecec0d).into()), - editor_active_wrap_guide: Some(rgba(0xf4ecec1a).into()), - editor_document_highlight_read_background: Some(rgba(0x7272ca1a).into()), - editor_document_highlight_write_background: Some(rgba(0x726a6a66).into()), - terminal_background: Some(rgba(0x1b1818ff).into()), - terminal_foreground: Some(rgba(0xf4ececff).into()), - terminal_bright_foreground: Some(rgba(0xf4ececff).into()), - terminal_dim_foreground: Some(rgba(0x1b1818ff).into()), - terminal_ansi_black: Some(rgba(0x1b1818ff).into()), - terminal_ansi_bright_black: Some(rgba(0x635b5bff).into()), - terminal_ansi_dim_black: Some(rgba(0xf4ececff).into()), - terminal_ansi_red: Some(rgba(0xca4949ff).into()), - terminal_ansi_bright_red: Some(rgba(0x692727ff).into()), - terminal_ansi_dim_red: Some(rgba(0xeda69fff).into()), - terminal_ansi_green: Some(rgba(0x4b8b8bff).into()), - terminal_ansi_bright_green: Some(rgba(0x2a4444ff).into()), - terminal_ansi_dim_green: Some(rgba(0xa6c4c4ff).into()), - terminal_ansi_yellow: Some(rgba(0xa06e3bff).into()), - terminal_ansi_bright_yellow: Some(rgba(0x4e3821ff).into()), - terminal_ansi_dim_yellow: Some(rgba(0xd4b499ff).into()), - terminal_ansi_blue: Some(rgba(0x7272caff).into()), - terminal_ansi_bright_blue: Some(rgba(0x3b3960ff).into()), - terminal_ansi_dim_blue: Some(rgba(0xbbb6e5ff).into()), - terminal_ansi_magenta: Some(rgba(0xbd5187ff).into()), - terminal_ansi_bright_magenta: Some(rgba(0x5b2c42ff).into()), - terminal_ansi_dim_magenta: Some(rgba(0xe2a9c2ff).into()), - terminal_ansi_cyan: Some(rgba(0x5485b6ff).into()), - terminal_ansi_bright_cyan: Some(rgba(0x2e4257ff).into()), - terminal_ansi_dim_cyan: Some(rgba(0xacc0daff).into()), - terminal_ansi_white: Some(rgba(0xf4ececff).into()), - terminal_ansi_bright_white: Some(rgba(0xf4ececff).into()), - terminal_ansi_dim_white: Some(rgba(0x807979ff).into()), - link_text_hover: Some(rgba(0x7272caff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0xa06e3bff).into()), - conflict_background: Some(rgba(0x231a12ff).into()), - conflict_border: Some(rgba(0x392a1aff).into()), - created: Some(rgba(0x4b8b8bff).into()), - created_background: Some(rgba(0x161f1fff).into()), - created_border: Some(rgba(0x203232ff).into()), - deleted: Some(rgba(0xca4949ff).into()), - deleted_background: Some(rgba(0x361414ff).into()), - deleted_border: Some(rgba(0x501e1eff).into()), - error: Some(rgba(0xca4949ff).into()), - error_background: Some(rgba(0x361414ff).into()), - error_border: Some(rgba(0x501e1eff).into()), - hidden: Some(rgba(0x756e6eff).into()), - hidden_background: Some(rgba(0x3b3535ff).into()), - hidden_border: Some(rgba(0x494242ff).into()), - hint: Some(rgba(0x8a647aff).into()), - hint_background: Some(rgba(0x1c1b29ff).into()), - hint_border: Some(rgba(0x2c2b45ff).into()), - ignored: Some(rgba(0x898383ff).into()), - ignored_background: Some(rgba(0x3b3535ff).into()), - ignored_border: Some(rgba(0x564e4eff).into()), - info: Some(rgba(0x7272caff).into()), - info_background: Some(rgba(0x1c1b29ff).into()), - info_border: Some(rgba(0x2c2b45ff).into()), - modified: Some(rgba(0xa06e3bff).into()), - modified_background: Some(rgba(0x231a12ff).into()), - modified_border: Some(rgba(0x392a1aff).into()), - predictive: Some(rgba(0x795369ff).into()), - predictive_background: Some(rgba(0x161f1fff).into()), - predictive_border: Some(rgba(0x203232ff).into()), - renamed: Some(rgba(0x7272caff).into()), - renamed_background: Some(rgba(0x1c1b29ff).into()), - renamed_border: Some(rgba(0x2c2b45ff).into()), - success: Some(rgba(0x4b8b8bff).into()), - success_background: Some(rgba(0x161f1fff).into()), - success_border: Some(rgba(0x203232ff).into()), - unreachable: Some(rgba(0x898383ff).into()), - unreachable_background: Some(rgba(0x3b3535ff).into()), - unreachable_border: Some(rgba(0x564e4eff).into()), - warning: Some(rgba(0xa06e3bff).into()), - warning_background: Some(rgba(0x231a12ff).into()), - warning_border: Some(rgba(0x392a1aff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x7272caff).into(), - background: rgba(0x7272caff).into(), - selection: rgba(0x7272ca3d).into(), - }, - PlayerColor { - cursor: rgba(0xbd5187ff).into(), - background: rgba(0xbd5187ff).into(), - selection: rgba(0xbd51873d).into(), - }, - PlayerColor { - cursor: rgba(0xb45a3cff).into(), - background: rgba(0xb45a3cff).into(), - selection: rgba(0xb45a3c3d).into(), - }, - PlayerColor { - cursor: rgba(0x8464c4ff).into(), - background: rgba(0x8464c4ff).into(), - selection: rgba(0x8464c43d).into(), - }, - PlayerColor { - cursor: rgba(0x5485b6ff).into(), - background: rgba(0x5485b6ff).into(), - selection: rgba(0x5485b63d).into(), - }, - PlayerColor { - cursor: rgba(0xca4949ff).into(), - background: rgba(0xca4949ff).into(), - selection: rgba(0xca49493d).into(), - }, - PlayerColor { - cursor: rgba(0xa06e3bff).into(), - background: rgba(0xa06e3bff).into(), - selection: rgba(0xa06e3b3d).into(), - }, - PlayerColor { - cursor: rgba(0x4b8b8bff).into(), - background: rgba(0x4b8b8bff).into(), - selection: rgba(0x4b8b8b3d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x7272caff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0x4b8b8bff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0x655d5dff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0x8a8585ff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0x4b8b8bff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x7272caff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0xf4ececff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x7272caff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x7272caff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0xb45a3cff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0x7272caff).into()), - ..Default::default() - }, - ), - ( - "function.method".into(), - UserHighlightStyle { - color: Some(rgba(0x7272caff).into()), - ..Default::default() - }, - ), - ( - "function.special.definition".into(), - UserHighlightStyle { - color: Some(rgba(0xa06e3bff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x8a647aff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0x8464c4ff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x7272caff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0xb45a3cff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0x4b8b8bff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0xb45a3cff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0x8a8585ff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0x795369ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0xf4ececff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0xe7dfdfff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0xca4949ff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0xe7dfdfff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0x8a8585ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0x8a8585ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0xe7dfdfff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0xbd5187ff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0x4b8b8bff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0x8a8585ff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0x5485b6ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0xbd5187ff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0x4b8b8bff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x7272caff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0xb45a3cff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0xf4ececff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0xa06e3bff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0xe7dfdfff).into()), - ..Default::default() - }, - ), - ( - "variable.special".into(), - UserHighlightStyle { - color: Some(rgba(0x8464c4ff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0xa06e3bff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Atelier Plateau Light".into(), - appearance: Appearance::Light, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0x8e8989ff).into()), - border_variant: Some(rgba(0xcfc7c7ff).into()), - border_focused: Some(rgba(0xcecaecff).into()), - border_selected: Some(rgba(0xcecaecff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0xa8a2a2ff).into()), - elevated_surface_background: Some(rgba(0xebe3e3ff).into()), - surface_background: Some(rgba(0xebe3e3ff).into()), - background: Some(rgba(0xc1bbbbff).into()), - panel_background: Some(rgba(0xebe3e3ff).into()), - element_background: Some(rgba(0xebe3e3ff).into()), - element_hover: Some(rgba(0xcfc7c7ff).into()), - element_active: Some(rgba(0x908b8bff).into()), - element_selected: Some(rgba(0x908b8bff).into()), - element_disabled: Some(rgba(0xebe3e3ff).into()), - drop_target_background: Some(rgba(0x5a525280).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0xcfc7c7ff).into()), - ghost_element_active: Some(rgba(0x908b8bff).into()), - ghost_element_selected: Some(rgba(0x908b8bff).into()), - ghost_element_disabled: Some(rgba(0xebe3e3ff).into()), - text: Some(rgba(0x1b1818ff).into()), - text_muted: Some(rgba(0x5a5252ff).into()), - text_placeholder: Some(rgba(0x6e6666ff).into()), - text_disabled: Some(rgba(0x6e6666ff).into()), - text_accent: Some(rgba(0x7372caff).into()), - icon: Some(rgba(0x1b1818ff).into()), - icon_muted: Some(rgba(0x5a5252ff).into()), - icon_disabled: Some(rgba(0x6e6666ff).into()), - icon_placeholder: Some(rgba(0x5a5252ff).into()), - icon_accent: Some(rgba(0x7372caff).into()), - status_bar_background: Some(rgba(0xc1bbbbff).into()), - title_bar_background: Some(rgba(0xc1bbbbff).into()), - toolbar_background: Some(rgba(0xf4ececff).into()), - tab_bar_background: Some(rgba(0xebe3e3ff).into()), - tab_inactive_background: Some(rgba(0xebe3e3ff).into()), - tab_active_background: Some(rgba(0xf4ececff).into()), - scrollbar_thumb_background: Some(rgba(0x1b18184c).into()), - scrollbar_thumb_hover_background: Some(rgba(0xcfc7c7ff).into()), - scrollbar_thumb_border: Some(rgba(0xcfc7c7ff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0xede5e5ff).into()), - editor_foreground: Some(rgba(0x292424ff).into()), - editor_background: Some(rgba(0xf4ececff).into()), - editor_gutter_background: Some(rgba(0xf4ececff).into()), - editor_subheader_background: Some(rgba(0xebe3e3ff).into()), - editor_active_line_background: Some(rgba(0xebe3e3bf).into()), - editor_highlighted_line_background: Some(rgba(0xebe3e3ff).into()), - editor_line_number: Some(rgba(0x1b181859).into()), - editor_active_line_number: Some(rgba(0x1b1818ff).into()), - editor_invisible: Some(rgba(0x726a6aff).into()), - editor_wrap_guide: Some(rgba(0x1b18180d).into()), - editor_active_wrap_guide: Some(rgba(0x1b18181a).into()), - editor_document_highlight_read_background: Some(rgba(0x7372ca1a).into()), - editor_document_highlight_write_background: Some(rgba(0x726a6a66).into()), - terminal_background: Some(rgba(0xf4ececff).into()), - terminal_foreground: Some(rgba(0x1b1818ff).into()), - terminal_bright_foreground: Some(rgba(0x1b1818ff).into()), - terminal_dim_foreground: Some(rgba(0xf4ececff).into()), - terminal_ansi_black: Some(rgba(0xf4ececff).into()), - terminal_ansi_bright_black: Some(rgba(0x807979ff).into()), - terminal_ansi_dim_black: Some(rgba(0x1b1818ff).into()), - terminal_ansi_red: Some(rgba(0xca4a4aff).into()), - terminal_ansi_bright_red: Some(rgba(0xeda69fff).into()), - terminal_ansi_dim_red: Some(rgba(0x692727ff).into()), - terminal_ansi_green: Some(rgba(0x4c8b8bff).into()), - terminal_ansi_bright_green: Some(rgba(0xa6c4c4ff).into()), - terminal_ansi_dim_green: Some(rgba(0x2a4444ff).into()), - terminal_ansi_yellow: Some(rgba(0xa06e3cff).into()), - terminal_ansi_bright_yellow: Some(rgba(0xd4b499ff).into()), - terminal_ansi_dim_yellow: Some(rgba(0x4e3821ff).into()), - terminal_ansi_blue: Some(rgba(0x7372caff).into()), - terminal_ansi_bright_blue: Some(rgba(0xbbb6e5ff).into()), - terminal_ansi_dim_blue: Some(rgba(0x3b3960ff).into()), - terminal_ansi_magenta: Some(rgba(0xbd5287ff).into()), - terminal_ansi_bright_magenta: Some(rgba(0xe2a9c2ff).into()), - terminal_ansi_dim_magenta: Some(rgba(0x5b2c42ff).into()), - terminal_ansi_cyan: Some(rgba(0x5585b6ff).into()), - terminal_ansi_bright_cyan: Some(rgba(0xacc0daff).into()), - terminal_ansi_dim_cyan: Some(rgba(0x2e4257ff).into()), - terminal_ansi_white: Some(rgba(0x1b1818ff).into()), - terminal_ansi_bright_white: Some(rgba(0x1b1818ff).into()), - terminal_ansi_dim_white: Some(rgba(0x635b5bff).into()), - link_text_hover: Some(rgba(0x7372caff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0xa06e3cff).into()), - conflict_background: Some(rgba(0xeee0d5ff).into()), - conflict_border: Some(rgba(0xe0c9b5ff).into()), - created: Some(rgba(0x4c8b8bff).into()), - created_background: Some(rgba(0xdae7e7ff).into()), - created_border: Some(rgba(0xbfd4d4ff).into()), - deleted: Some(rgba(0xca4a4aff).into()), - deleted_background: Some(rgba(0xfadbd7ff).into()), - deleted_border: Some(rgba(0xf4bfbaff).into()), - error: Some(rgba(0xca4a4aff).into()), - error_background: Some(rgba(0xfadbd7ff).into()), - error_border: Some(rgba(0xf4bfbaff).into()), - hidden: Some(rgba(0x6e6666ff).into()), - hidden_background: Some(rgba(0xc1bbbbff).into()), - hidden_border: Some(rgba(0xa8a2a2ff).into()), - hint: Some(rgba(0x916a80ff).into()), - hint_background: Some(rgba(0xe4e1f5ff).into()), - hint_border: Some(rgba(0xcecaecff).into()), - ignored: Some(rgba(0x5a5252ff).into()), - ignored_background: Some(rgba(0xc1bbbbff).into()), - ignored_border: Some(rgba(0x8e8989ff).into()), - info: Some(rgba(0x7372caff).into()), - info_background: Some(rgba(0xe4e1f5ff).into()), - info_border: Some(rgba(0xcecaecff).into()), - modified: Some(rgba(0xa06e3cff).into()), - modified_background: Some(rgba(0xeee0d5ff).into()), - modified_border: Some(rgba(0xe0c9b5ff).into()), - predictive: Some(rgba(0xa27a91ff).into()), - predictive_background: Some(rgba(0xdae7e7ff).into()), - predictive_border: Some(rgba(0xbfd4d4ff).into()), - renamed: Some(rgba(0x7372caff).into()), - renamed_background: Some(rgba(0xe4e1f5ff).into()), - renamed_border: Some(rgba(0xcecaecff).into()), - success: Some(rgba(0x4c8b8bff).into()), - success_background: Some(rgba(0xdae7e7ff).into()), - success_border: Some(rgba(0xbfd4d4ff).into()), - unreachable: Some(rgba(0x5a5252ff).into()), - unreachable_background: Some(rgba(0xc1bbbbff).into()), - unreachable_border: Some(rgba(0x8e8989ff).into()), - warning: Some(rgba(0xa06e3cff).into()), - warning_background: Some(rgba(0xeee0d5ff).into()), - warning_border: Some(rgba(0xe0c9b5ff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x7372caff).into(), - background: rgba(0x7372caff).into(), - selection: rgba(0x7372ca3d).into(), - }, - PlayerColor { - cursor: rgba(0xbd5287ff).into(), - background: rgba(0xbd5287ff).into(), - selection: rgba(0xbd52873d).into(), - }, - PlayerColor { - cursor: rgba(0xb45b3dff).into(), - background: rgba(0xb45b3dff).into(), - selection: rgba(0xb45b3d3d).into(), - }, - PlayerColor { - cursor: rgba(0x8464c4ff).into(), - background: rgba(0x8464c4ff).into(), - selection: rgba(0x8464c43d).into(), - }, - PlayerColor { - cursor: rgba(0x5585b6ff).into(), - background: rgba(0x5585b6ff).into(), - selection: rgba(0x5585b63d).into(), - }, - PlayerColor { - cursor: rgba(0xca4a4aff).into(), - background: rgba(0xca4a4aff).into(), - selection: rgba(0xca4a4a3d).into(), - }, - PlayerColor { - cursor: rgba(0xa06e3cff).into(), - background: rgba(0xa06e3cff).into(), - selection: rgba(0xa06e3c3d).into(), - }, - PlayerColor { - cursor: rgba(0x4c8b8bff).into(), - background: rgba(0x4c8b8bff).into(), - selection: rgba(0x4c8b8b3d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x7372caff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0x4c8b8bff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0x7e7777ff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0x585050ff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0x4c8b8bff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x7372caff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0x1b1818ff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x7372caff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x7372caff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0xb45b3dff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0x7272caff).into()), - ..Default::default() - }, - ), - ( - "function.method".into(), - UserHighlightStyle { - color: Some(rgba(0x7272caff).into()), - ..Default::default() - }, - ), - ( - "function.special.definition".into(), - UserHighlightStyle { - color: Some(rgba(0xa06e3bff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x916a80ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0x8464c4ff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x7372caff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0xb45b3dff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0x4c8b8bff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0xb45a3cff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0x585050ff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0xa27a91ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0x1b1818ff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0x292424ff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0xca4949ff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0x292424ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0x585050ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0x585050ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0x292424ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0xbd5187ff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0x4b8b8bff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0x585050ff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0x5485b6ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0xbd5187ff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0x4b8b8bff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x7372caff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0xb45b3dff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0x1b1818ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0xa06e3bff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0x292424ff).into()), - ..Default::default() - }, - ), - ( - "variable.special".into(), - UserHighlightStyle { - color: Some(rgba(0x8464c4ff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0xa06e3bff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Atelier Savanna Dark".into(), - appearance: Appearance::Dark, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0x505e55ff).into()), - border_variant: Some(rgba(0x2f3832ff).into()), - border_focused: Some(rgba(0x1f3233ff).into()), - border_selected: Some(rgba(0x1f3233ff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0x434f47ff).into()), - elevated_surface_background: Some(rgba(0x1f2621ff).into()), - surface_background: Some(rgba(0x1f2621ff).into()), - background: Some(rgba(0x353f39ff).into()), - panel_background: Some(rgba(0x1f2621ff).into()), - element_background: Some(rgba(0x1f2621ff).into()), - element_hover: Some(rgba(0x2f3832ff).into()), - element_active: Some(rgba(0x4f5c53ff).into()), - element_selected: Some(rgba(0x4f5c53ff).into()), - element_disabled: Some(rgba(0x1f2621ff).into()), - drop_target_background: Some(rgba(0x85918880).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0x2f3832ff).into()), - ghost_element_active: Some(rgba(0x4f5c53ff).into()), - ghost_element_selected: Some(rgba(0x4f5c53ff).into()), - ghost_element_disabled: Some(rgba(0x1f2621ff).into()), - text: Some(rgba(0xecf4eeff).into()), - text_muted: Some(rgba(0x859188ff).into()), - text_placeholder: Some(rgba(0x6f7e74ff).into()), - text_disabled: Some(rgba(0x6f7e74ff).into()), - text_accent: Some(rgba(0x478c90ff).into()), - icon: Some(rgba(0xecf4eeff).into()), - icon_muted: Some(rgba(0x859188ff).into()), - icon_disabled: Some(rgba(0x6f7e74ff).into()), - icon_placeholder: Some(rgba(0x859188ff).into()), - icon_accent: Some(rgba(0x478c90ff).into()), - status_bar_background: Some(rgba(0x353f39ff).into()), - title_bar_background: Some(rgba(0x353f39ff).into()), - toolbar_background: Some(rgba(0x171c19ff).into()), - tab_bar_background: Some(rgba(0x1f2621ff).into()), - tab_inactive_background: Some(rgba(0x1f2621ff).into()), - tab_active_background: Some(rgba(0x171c19ff).into()), - scrollbar_thumb_background: Some(rgba(0xecf4ee4c).into()), - scrollbar_thumb_hover_background: Some(rgba(0x2f3832ff).into()), - scrollbar_thumb_border: Some(rgba(0x2f3832ff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0x1e2420ff).into()), - editor_foreground: Some(rgba(0xdfe7e2ff).into()), - editor_background: Some(rgba(0x171c19ff).into()), - editor_gutter_background: Some(rgba(0x171c19ff).into()), - editor_subheader_background: Some(rgba(0x1f2621ff).into()), - editor_active_line_background: Some(rgba(0x1f2621bf).into()), - editor_highlighted_line_background: Some(rgba(0x1f2621ff).into()), - editor_line_number: Some(rgba(0xecf4ee59).into()), - editor_active_line_number: Some(rgba(0xecf4eeff).into()), - editor_invisible: Some(rgba(0x6c7a71ff).into()), - editor_wrap_guide: Some(rgba(0xecf4ee0d).into()), - editor_active_wrap_guide: Some(rgba(0xecf4ee1a).into()), - editor_document_highlight_read_background: Some(rgba(0x478c901a).into()), - editor_document_highlight_write_background: Some(rgba(0x6c7a7166).into()), - terminal_background: Some(rgba(0x171c19ff).into()), - terminal_foreground: Some(rgba(0xecf4eeff).into()), - terminal_bright_foreground: Some(rgba(0xecf4eeff).into()), - terminal_dim_foreground: Some(rgba(0x171c19ff).into()), - terminal_ansi_black: Some(rgba(0x171c19ff).into()), - terminal_ansi_bright_black: Some(rgba(0x5d6b62ff).into()), - terminal_ansi_dim_black: Some(rgba(0xecf4eeff).into()), - terminal_ansi_red: Some(rgba(0xb16139ff).into()), - terminal_ansi_bright_red: Some(rgba(0x563220ff).into()), - terminal_ansi_dim_red: Some(rgba(0xdeae97ff).into()), - terminal_ansi_green: Some(rgba(0x489963ff).into()), - terminal_ansi_bright_green: Some(rgba(0x294a33ff).into()), - terminal_ansi_dim_green: Some(rgba(0xa5ccafff).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(0x478c90ff).into()), - terminal_ansi_bright_blue: Some(rgba(0x284546ff).into()), - terminal_ansi_dim_blue: Some(rgba(0xa5c5c6ff).into()), - terminal_ansi_magenta: Some(rgba(0x867469ff).into()), - terminal_ansi_bright_magenta: Some(rgba(0x423a36ff).into()), - terminal_ansi_dim_magenta: Some(rgba(0xc2b7b1ff).into()), - terminal_ansi_cyan: Some(rgba(0x1e9aa0ff).into()), - terminal_ansi_bright_cyan: Some(rgba(0x1d4b4dff).into()), - terminal_ansi_dim_cyan: Some(rgba(0x9dcdcfff).into()), - terminal_ansi_white: Some(rgba(0xecf4eeff).into()), - terminal_ansi_bright_white: Some(rgba(0xecf4eeff).into()), - terminal_ansi_dim_white: Some(rgba(0x7b897fff).into()), - link_text_hover: Some(rgba(0x478c90ff).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(0x489963ff).into()), - created_background: Some(rgba(0x162119ff).into()), - created_border: Some(rgba(0x203626ff).into()), - deleted: Some(rgba(0xb16139ff).into()), - deleted_background: Some(rgba(0x261811ff).into()), - deleted_border: Some(rgba(0x3f2619ff).into()), - error: Some(rgba(0xb16139ff).into()), - error_background: Some(rgba(0x261811ff).into()), - error_border: Some(rgba(0x3f2619ff).into()), - hidden: Some(rgba(0x6f7e74ff).into()), - hidden_background: Some(rgba(0x353f39ff).into()), - hidden_border: Some(rgba(0x434f47ff).into()), - hint: Some(rgba(0x607e76ff).into()), - hint_background: Some(rgba(0x151f20ff).into()), - hint_border: Some(rgba(0x1f3233ff).into()), - ignored: Some(rgba(0x859188ff).into()), - ignored_background: Some(rgba(0x353f39ff).into()), - ignored_border: Some(rgba(0x505e55ff).into()), - info: Some(rgba(0x478c90ff).into()), - info_background: Some(rgba(0x151f20ff).into()), - info_border: Some(rgba(0x1f3233ff).into()), - modified: Some(rgba(0xa07e3bff).into()), - modified_background: Some(rgba(0x231d12ff).into()), - modified_border: Some(rgba(0x392e1aff).into()), - predictive: Some(rgba(0x506d66ff).into()), - predictive_background: Some(rgba(0x162119ff).into()), - predictive_border: Some(rgba(0x203626ff).into()), - renamed: Some(rgba(0x478c90ff).into()), - renamed_background: Some(rgba(0x151f20ff).into()), - renamed_border: Some(rgba(0x1f3233ff).into()), - success: Some(rgba(0x489963ff).into()), - success_background: Some(rgba(0x162119ff).into()), - success_border: Some(rgba(0x203626ff).into()), - unreachable: Some(rgba(0x859188ff).into()), - unreachable_background: Some(rgba(0x353f39ff).into()), - unreachable_border: Some(rgba(0x505e55ff).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(0x478c90ff).into(), - background: rgba(0x478c90ff).into(), - selection: rgba(0x478c903d).into(), - }, - PlayerColor { - cursor: rgba(0x867469ff).into(), - background: rgba(0x867469ff).into(), - selection: rgba(0x8674693d).into(), - }, - PlayerColor { - cursor: rgba(0x9f713cff).into(), - background: rgba(0x9f713cff).into(), - selection: rgba(0x9f713c3d).into(), - }, - PlayerColor { - cursor: rgba(0x55859bff).into(), - background: rgba(0x55859bff).into(), - selection: rgba(0x55859b3d).into(), - }, - PlayerColor { - cursor: rgba(0x1e9aa0ff).into(), - background: rgba(0x1e9aa0ff).into(), - selection: rgba(0x1e9aa03d).into(), - }, - PlayerColor { - cursor: rgba(0xb16139ff).into(), - background: rgba(0xb16139ff).into(), - selection: rgba(0xb161393d).into(), - }, - PlayerColor { - cursor: rgba(0xa07e3bff).into(), - background: rgba(0xa07e3bff).into(), - selection: rgba(0xa07e3b3d).into(), - }, - PlayerColor { - cursor: rgba(0x489963ff).into(), - background: rgba(0x489963ff).into(), - selection: rgba(0x4899633d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x478c90ff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0x489963ff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0x5f6d64ff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0x87928aff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0x489963ff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x478c90ff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0xecf4eeff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x478c90ff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x478c90ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0x9f713cff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0x478c90ff).into()), - ..Default::default() - }, - ), - ( - "function.method".into(), - UserHighlightStyle { - color: Some(rgba(0x478c90ff).into()), - ..Default::default() - }, - ), - ( - "function.special.definition".into(), - UserHighlightStyle { - color: Some(rgba(0xa07e3bff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x607e76ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0x55859bff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x478c90ff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0x9f713cff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0x489963ff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0x9f713cff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0x87928aff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0x506d66ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0xecf4eeff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0xdfe7e2ff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0xb16139ff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0xdfe7e2ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0x87928aff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0x87928aff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0xdfe7e2ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0x867469ff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0x489963ff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0x87928aff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0x1c9aa0ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0x867469ff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0x489963ff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x478c90ff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0x9f713cff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0xecf4eeff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0xa07e3bff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0xdfe7e2ff).into()), - ..Default::default() - }, - ), - ( - "variable.special".into(), - UserHighlightStyle { - color: Some(rgba(0x55859bff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0xa07e3bff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Atelier Savanna Light".into(), - appearance: Appearance::Light, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0x8b968eff).into()), - border_variant: Some(rgba(0xc8d1cbff).into()), - border_focused: Some(rgba(0xbed4d6ff).into()), - border_selected: Some(rgba(0xbed4d6ff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0xa3ada6ff).into()), - elevated_surface_background: Some(rgba(0xe3ebe6ff).into()), - surface_background: Some(rgba(0xe3ebe6ff).into()), - background: Some(rgba(0xbcc5bfff).into()), - panel_background: Some(rgba(0xe3ebe6ff).into()), - element_background: Some(rgba(0xe3ebe6ff).into()), - element_hover: Some(rgba(0xc8d1cbff).into()), - element_active: Some(rgba(0x8d9890ff).into()), - element_selected: Some(rgba(0x8d9890ff).into()), - element_disabled: Some(rgba(0xe3ebe6ff).into()), - drop_target_background: Some(rgba(0x54625980).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0xc8d1cbff).into()), - ghost_element_active: Some(rgba(0x8d9890ff).into()), - ghost_element_selected: Some(rgba(0x8d9890ff).into()), - ghost_element_disabled: Some(rgba(0xe3ebe6ff).into()), - text: Some(rgba(0x171c19ff).into()), - text_muted: Some(rgba(0x546259ff).into()), - text_placeholder: Some(rgba(0x68766dff).into()), - text_disabled: Some(rgba(0x68766dff).into()), - text_accent: Some(rgba(0x488c90ff).into()), - icon: Some(rgba(0x171c19ff).into()), - icon_muted: Some(rgba(0x546259ff).into()), - icon_disabled: Some(rgba(0x68766dff).into()), - icon_placeholder: Some(rgba(0x546259ff).into()), - icon_accent: Some(rgba(0x488c90ff).into()), - status_bar_background: Some(rgba(0xbcc5bfff).into()), - title_bar_background: Some(rgba(0xbcc5bfff).into()), - toolbar_background: Some(rgba(0xecf4eeff).into()), - tab_bar_background: Some(rgba(0xe3ebe6ff).into()), - tab_inactive_background: Some(rgba(0xe3ebe6ff).into()), - tab_active_background: Some(rgba(0xecf4eeff).into()), - scrollbar_thumb_background: Some(rgba(0x171c194c).into()), - scrollbar_thumb_hover_background: Some(rgba(0xc8d1cbff).into()), - scrollbar_thumb_border: Some(rgba(0xc8d1cbff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0xe5ede7ff).into()), - editor_foreground: Some(rgba(0x232a25ff).into()), - editor_background: Some(rgba(0xecf4eeff).into()), - editor_gutter_background: Some(rgba(0xecf4eeff).into()), - editor_subheader_background: Some(rgba(0xe3ebe6ff).into()), - editor_active_line_background: Some(rgba(0xe3ebe6bf).into()), - editor_highlighted_line_background: Some(rgba(0xe3ebe6ff).into()), - editor_line_number: Some(rgba(0x171c1959).into()), - editor_active_line_number: Some(rgba(0x171c19ff).into()), - editor_invisible: Some(rgba(0x6c7a71ff).into()), - editor_wrap_guide: Some(rgba(0x171c190d).into()), - editor_active_wrap_guide: Some(rgba(0x171c191a).into()), - editor_document_highlight_read_background: Some(rgba(0x488c901a).into()), - editor_document_highlight_write_background: Some(rgba(0x6c7a7166).into()), - terminal_background: Some(rgba(0xecf4eeff).into()), - terminal_foreground: Some(rgba(0x171c19ff).into()), - terminal_bright_foreground: Some(rgba(0x171c19ff).into()), - terminal_dim_foreground: Some(rgba(0xecf4eeff).into()), - terminal_ansi_black: Some(rgba(0xecf4eeff).into()), - terminal_ansi_bright_black: Some(rgba(0x7b897fff).into()), - terminal_ansi_dim_black: Some(rgba(0x171c19ff).into()), - terminal_ansi_red: Some(rgba(0xb1623aff).into()), - terminal_ansi_bright_red: Some(rgba(0xdeae97ff).into()), - terminal_ansi_dim_red: Some(rgba(0x563220ff).into()), - terminal_ansi_green: Some(rgba(0x499963ff).into()), - terminal_ansi_bright_green: Some(rgba(0xa5ccafff).into()), - terminal_ansi_dim_green: Some(rgba(0x294a33ff).into()), - terminal_ansi_yellow: Some(rgba(0xa07e3cff).into()), - terminal_ansi_bright_yellow: Some(rgba(0xd3bd9aff).into()), - terminal_ansi_dim_yellow: Some(rgba(0x4e3f22ff).into()), - terminal_ansi_blue: Some(rgba(0x488c90ff).into()), - terminal_ansi_bright_blue: Some(rgba(0xa5c5c6ff).into()), - terminal_ansi_dim_blue: Some(rgba(0x284546ff).into()), - terminal_ansi_magenta: Some(rgba(0x867469ff).into()), - terminal_ansi_bright_magenta: Some(rgba(0xc2b7b1ff).into()), - terminal_ansi_dim_magenta: Some(rgba(0x423a36ff).into()), - terminal_ansi_cyan: Some(rgba(0x1f9aa0ff).into()), - terminal_ansi_bright_cyan: Some(rgba(0x9dcdcfff).into()), - terminal_ansi_dim_cyan: Some(rgba(0x1d4b4dff).into()), - terminal_ansi_white: Some(rgba(0x171c19ff).into()), - terminal_ansi_bright_white: Some(rgba(0x171c19ff).into()), - terminal_ansi_dim_white: Some(rgba(0x5d6b62ff).into()), - link_text_hover: Some(rgba(0x488c90ff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0xa07e3cff).into()), - conflict_background: Some(rgba(0xeee4d5ff).into()), - conflict_border: Some(rgba(0xdfcfb6ff).into()), - created: Some(rgba(0x499963ff).into()), - created_background: Some(rgba(0xdaeadeff).into()), - created_border: Some(rgba(0xbedac5ff).into()), - deleted: Some(rgba(0xb1623aff).into()), - deleted_background: Some(rgba(0xf3ded4ff).into()), - deleted_border: Some(rgba(0xe8c5b4ff).into()), - error: Some(rgba(0xb1623aff).into()), - error_background: Some(rgba(0xf3ded4ff).into()), - error_border: Some(rgba(0xe8c5b4ff).into()), - hidden: Some(rgba(0x68766dff).into()), - hidden_background: Some(rgba(0xbcc5bfff).into()), - hidden_border: Some(rgba(0xa3ada6ff).into()), - hint: Some(rgba(0x66847cff).into()), - hint_background: Some(rgba(0xdae7e8ff).into()), - hint_border: Some(rgba(0xbed4d6ff).into()), - ignored: Some(rgba(0x546259ff).into()), - ignored_background: Some(rgba(0xbcc5bfff).into()), - ignored_border: Some(rgba(0x8b968eff).into()), - info: Some(rgba(0x488c90ff).into()), - info_background: Some(rgba(0xdae7e8ff).into()), - info_border: Some(rgba(0xbed4d6ff).into()), - modified: Some(rgba(0xa07e3cff).into()), - modified_background: Some(rgba(0xeee4d5ff).into()), - modified_border: Some(rgba(0xdfcfb6ff).into()), - predictive: Some(rgba(0x76958cff).into()), - predictive_background: Some(rgba(0xdaeadeff).into()), - predictive_border: Some(rgba(0xbedac5ff).into()), - renamed: Some(rgba(0x488c90ff).into()), - renamed_background: Some(rgba(0xdae7e8ff).into()), - renamed_border: Some(rgba(0xbed4d6ff).into()), - success: Some(rgba(0x499963ff).into()), - success_background: Some(rgba(0xdaeadeff).into()), - success_border: Some(rgba(0xbedac5ff).into()), - unreachable: Some(rgba(0x546259ff).into()), - unreachable_background: Some(rgba(0xbcc5bfff).into()), - unreachable_border: Some(rgba(0x8b968eff).into()), - warning: Some(rgba(0xa07e3cff).into()), - warning_background: Some(rgba(0xeee4d5ff).into()), - warning_border: Some(rgba(0xdfcfb6ff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x488c90ff).into(), - background: rgba(0x488c90ff).into(), - selection: rgba(0x488c903d).into(), - }, - PlayerColor { - cursor: rgba(0x867469ff).into(), - background: rgba(0x867469ff).into(), - selection: rgba(0x8674693d).into(), - }, - PlayerColor { - cursor: rgba(0x9f713dff).into(), - background: rgba(0x9f713dff).into(), - selection: rgba(0x9f713d3d).into(), - }, - PlayerColor { - cursor: rgba(0x56859bff).into(), - background: rgba(0x56859bff).into(), - selection: rgba(0x56859b3d).into(), - }, - PlayerColor { - cursor: rgba(0x1f9aa0ff).into(), - background: rgba(0x1f9aa0ff).into(), - selection: rgba(0x1f9aa03d).into(), - }, - PlayerColor { - cursor: rgba(0xb1623aff).into(), - background: rgba(0xb1623aff).into(), - selection: rgba(0xb1623a3d).into(), - }, - PlayerColor { - cursor: rgba(0xa07e3cff).into(), - background: rgba(0xa07e3cff).into(), - selection: rgba(0xa07e3c3d).into(), - }, - PlayerColor { - cursor: rgba(0x499963ff).into(), - background: rgba(0x499963ff).into(), - selection: rgba(0x4999633d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x488c90ff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0x499963ff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0x78877dff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0x526057ff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0x499963ff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x488c90ff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0x171c19ff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x488c90ff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x488c90ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0x9f713dff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0x478c90ff).into()), - ..Default::default() - }, - ), - ( - "function.method".into(), - UserHighlightStyle { - color: Some(rgba(0x478c90ff).into()), - ..Default::default() - }, - ), - ( - "function.special.definition".into(), - UserHighlightStyle { - color: Some(rgba(0xa07e3bff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x66847cff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0x55859bff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x488c90ff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0x9f713dff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0x499963ff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0x9f713cff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0x526057ff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0x76958cff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0x171c19ff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0x232a25ff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0xb16139ff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0x232a25ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0x526057ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0x526057ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0x232a25ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0x867469ff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0x489963ff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0x526057ff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0x1c9aa0ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0x867469ff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0x489963ff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x488c90ff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0x9f713dff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0x171c19ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0xa07e3bff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0x232a25ff).into()), - ..Default::default() - }, - ), - ( - "variable.special".into(), - UserHighlightStyle { - color: Some(rgba(0x55859bff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0xa07e3bff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Atelier Seaside Dark".into(), - appearance: Appearance::Dark, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0x5c6c5cff).into()), - border_variant: Some(rgba(0x333b33ff).into()), - border_focused: Some(rgba(0x102668ff).into()), - border_selected: Some(rgba(0x102668ff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0x4b584bff).into()), - elevated_surface_background: Some(rgba(0x1f231fff).into()), - surface_background: Some(rgba(0x1f231fff).into()), - background: Some(rgba(0x3b453bff).into()), - panel_background: Some(rgba(0x1f231fff).into()), - element_background: Some(rgba(0x1f231fff).into()), - element_hover: Some(rgba(0x333b33ff).into()), - element_active: Some(rgba(0x5a6a5aff).into()), - element_selected: Some(rgba(0x5a6a5aff).into()), - element_disabled: Some(rgba(0x1f231fff).into()), - drop_target_background: Some(rgba(0x8ba48b80).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0x333b33ff).into()), - ghost_element_active: Some(rgba(0x5a6a5aff).into()), - ghost_element_selected: Some(rgba(0x5a6a5aff).into()), - ghost_element_disabled: Some(rgba(0x1f231fff).into()), - text: Some(rgba(0xf4fbf4ff).into()), - text_muted: Some(rgba(0x8ba48bff).into()), - text_placeholder: Some(rgba(0x778f77ff).into()), - text_disabled: Some(rgba(0x778f77ff).into()), - text_accent: Some(rgba(0x3e62f4ff).into()), - icon: Some(rgba(0xf4fbf4ff).into()), - icon_muted: Some(rgba(0x8ba48bff).into()), - icon_disabled: Some(rgba(0x778f77ff).into()), - icon_placeholder: Some(rgba(0x8ba48bff).into()), - icon_accent: Some(rgba(0x3e62f4ff).into()), - status_bar_background: Some(rgba(0x3b453bff).into()), - title_bar_background: Some(rgba(0x3b453bff).into()), - toolbar_background: Some(rgba(0x131513ff).into()), - tab_bar_background: Some(rgba(0x1f231fff).into()), - tab_inactive_background: Some(rgba(0x1f231fff).into()), - tab_active_background: Some(rgba(0x131513ff).into()), - scrollbar_thumb_background: Some(rgba(0xf4fbf44c).into()), - scrollbar_thumb_hover_background: Some(rgba(0x333b33ff).into()), - scrollbar_thumb_border: Some(rgba(0x333b33ff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0x1d201dff).into()), - editor_foreground: Some(rgba(0xcfe8cfff).into()), - editor_background: Some(rgba(0x131513ff).into()), - editor_gutter_background: Some(rgba(0x131513ff).into()), - editor_subheader_background: Some(rgba(0x1f231fff).into()), - editor_active_line_background: Some(rgba(0x1f231fbf).into()), - editor_highlighted_line_background: Some(rgba(0x1f231fff).into()), - editor_line_number: Some(rgba(0xf4fbf459).into()), - editor_active_line_number: Some(rgba(0xf4fbf4ff).into()), - editor_invisible: Some(rgba(0x748b74ff).into()), - editor_wrap_guide: Some(rgba(0xf4fbf40d).into()), - editor_active_wrap_guide: Some(rgba(0xf4fbf41a).into()), - editor_document_highlight_read_background: Some(rgba(0x3e62f41a).into()), - editor_document_highlight_write_background: Some(rgba(0x748b7466).into()), - terminal_background: Some(rgba(0x131513ff).into()), - terminal_foreground: Some(rgba(0xf4fbf4ff).into()), - terminal_bright_foreground: Some(rgba(0xf4fbf4ff).into()), - terminal_dim_foreground: Some(rgba(0x131513ff).into()), - terminal_ansi_black: Some(rgba(0x131513ff).into()), - terminal_ansi_bright_black: Some(rgba(0x667a66ff).into()), - terminal_ansi_dim_black: Some(rgba(0xf4fbf4ff).into()), - terminal_ansi_red: Some(rgba(0xe61c3cff).into()), - terminal_ansi_bright_red: Some(rgba(0x840b21ff).into()), - terminal_ansi_dim_red: Some(rgba(0xff9d98ff).into()), - terminal_ansi_green: Some(rgba(0x2ba32aff).into()), - terminal_ansi_bright_green: Some(rgba(0x204f1bff).into()), - terminal_ansi_dim_green: Some(rgba(0xa0d294ff).into()), - terminal_ansi_yellow: Some(rgba(0x98981cff).into()), - terminal_ansi_bright_yellow: Some(rgba(0x4b4a17ff).into()), - terminal_ansi_dim_yellow: Some(rgba(0xd0ca90ff).into()), - terminal_ansi_blue: Some(rgba(0x3e62f4ff).into()), - terminal_ansi_bright_blue: Some(rgba(0x193385ff).into()), - terminal_ansi_dim_blue: Some(rgba(0xb1adfcff).into()), - terminal_ansi_magenta: Some(rgba(0xe61cc3ff).into()), - terminal_ansi_bright_magenta: Some(rgba(0x810e60ff).into()), - terminal_ansi_dim_magenta: Some(rgba(0xf9a1e1ff).into()), - terminal_ansi_cyan: Some(rgba(0x1c99b3ff).into()), - terminal_ansi_bright_cyan: Some(rgba(0x1d4a56ff).into()), - terminal_ansi_dim_cyan: Some(rgba(0x9fccd9ff).into()), - terminal_ansi_white: Some(rgba(0xf4fbf4ff).into()), - terminal_ansi_bright_white: Some(rgba(0xf4fbf4ff).into()), - terminal_ansi_dim_white: Some(rgba(0x829b82ff).into()), - link_text_hover: Some(rgba(0x3e62f4ff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0x98981cff).into()), - conflict_background: Some(rgba(0x22210fff).into()), - conflict_border: Some(rgba(0x373614ff).into()), - created: Some(rgba(0x2ba32aff).into()), - created_background: Some(rgba(0x142310ff).into()), - created_border: Some(rgba(0x1b3917ff).into()), - deleted: Some(rgba(0xe61c3cff).into()), - deleted_background: Some(rgba(0x500412ff).into()), - deleted_border: Some(rgba(0x6b071aff).into()), - error: Some(rgba(0xe61c3cff).into()), - error_background: Some(rgba(0x500412ff).into()), - error_border: Some(rgba(0x6b071aff).into()), - hidden: Some(rgba(0x778f77ff).into()), - hidden_background: Some(rgba(0x3b453bff).into()), - hidden_border: Some(rgba(0x4b584bff).into()), - hint: Some(rgba(0x008b9fff).into()), - hint_background: Some(rgba(0x061949ff).into()), - hint_border: Some(rgba(0x102668ff).into()), - ignored: Some(rgba(0x8ba48bff).into()), - ignored_background: Some(rgba(0x3b453bff).into()), - ignored_border: Some(rgba(0x5c6c5cff).into()), - info: Some(rgba(0x3e62f4ff).into()), - info_background: Some(rgba(0x061949ff).into()), - info_border: Some(rgba(0x102668ff).into()), - modified: Some(rgba(0x98981cff).into()), - modified_background: Some(rgba(0x22210fff).into()), - modified_border: Some(rgba(0x373614ff).into()), - predictive: Some(rgba(0x00788bff).into()), - predictive_background: Some(rgba(0x142310ff).into()), - predictive_border: Some(rgba(0x1b3917ff).into()), - renamed: Some(rgba(0x3e62f4ff).into()), - renamed_background: Some(rgba(0x061949ff).into()), - renamed_border: Some(rgba(0x102668ff).into()), - success: Some(rgba(0x2ba32aff).into()), - success_background: Some(rgba(0x142310ff).into()), - success_border: Some(rgba(0x1b3917ff).into()), - unreachable: Some(rgba(0x8ba48bff).into()), - unreachable_background: Some(rgba(0x3b453bff).into()), - unreachable_border: Some(rgba(0x5c6c5cff).into()), - warning: Some(rgba(0x98981cff).into()), - warning_background: Some(rgba(0x22210fff).into()), - warning_border: Some(rgba(0x373614ff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x3e62f4ff).into(), - background: rgba(0x3e62f4ff).into(), - selection: rgba(0x3e62f43d).into(), - }, - PlayerColor { - cursor: rgba(0xe61cc3ff).into(), - background: rgba(0xe61cc3ff).into(), - selection: rgba(0xe61cc33d).into(), - }, - PlayerColor { - cursor: rgba(0x87711eff).into(), - background: rgba(0x87711eff).into(), - selection: rgba(0x87711e3d).into(), - }, - PlayerColor { - cursor: rgba(0xad2dedff).into(), - background: rgba(0xad2dedff).into(), - selection: rgba(0xad2ded3d).into(), - }, - PlayerColor { - cursor: rgba(0x1c99b3ff).into(), - background: rgba(0x1c99b3ff).into(), - selection: rgba(0x1c99b33d).into(), - }, - PlayerColor { - cursor: rgba(0xe61c3cff).into(), - background: rgba(0xe61c3cff).into(), - selection: rgba(0xe61c3c3d).into(), - }, - PlayerColor { - cursor: rgba(0x98981cff).into(), - background: rgba(0x98981cff).into(), - selection: rgba(0x98981c3d).into(), - }, - PlayerColor { - cursor: rgba(0x2ba32aff).into(), - background: rgba(0x2ba32aff).into(), - selection: rgba(0x2ba32a3d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x3e62f4ff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0x2ba32aff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0x687d68ff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0x8ca68cff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0x2ba32aff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x3e62f4ff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0xf4fbf4ff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x3e62f4ff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x3e62f4ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0x87711eff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0x3d62f5ff).into()), - ..Default::default() - }, - ), - ( - "function.method".into(), - UserHighlightStyle { - color: Some(rgba(0x3d62f5ff).into()), - ..Default::default() - }, - ), - ( - "function.special.definition".into(), - UserHighlightStyle { - color: Some(rgba(0x98981bff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x008b9fff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0xad2beeff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x3e62f4ff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0x87711eff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0x2ba32aff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0x87711dff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0x8ca68cff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0x00788bff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0xf4fbf4ff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0xcfe8cfff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0xe6193cff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0xcfe8cfff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0x8ca68cff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0x8ca68cff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0xcfe8cfff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0xe619c3ff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0x29a329ff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0x8ca68cff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0x1999b3ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0xe619c3ff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0x29a329ff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x3e62f4ff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0x87711eff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0xf4fbf4ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0x98981bff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0xcfe8cfff).into()), - ..Default::default() - }, - ), - ( - "variable.special".into(), - UserHighlightStyle { - color: Some(rgba(0xad2beeff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0x98981bff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Atelier Seaside Light".into(), - appearance: Appearance::Light, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0x8ea88eff).into()), - border_variant: Some(rgba(0xbed7beff).into()), - border_focused: Some(rgba(0xc9c4fdff).into()), - border_selected: Some(rgba(0xc9c4fdff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0xa1bba1ff).into()), - elevated_surface_background: Some(rgba(0xdaeedaff).into()), - surface_background: Some(rgba(0xdaeedaff).into()), - background: Some(rgba(0xb4ceb4ff).into()), - panel_background: Some(rgba(0xdaeedaff).into()), - element_background: Some(rgba(0xdaeedaff).into()), - element_hover: Some(rgba(0xbed7beff).into()), - element_active: Some(rgba(0x90aa90ff).into()), - element_selected: Some(rgba(0x90aa90ff).into()), - element_disabled: Some(rgba(0xdaeedaff).into()), - drop_target_background: Some(rgba(0x5f705f80).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0xbed7beff).into()), - ghost_element_active: Some(rgba(0x90aa90ff).into()), - ghost_element_selected: Some(rgba(0x90aa90ff).into()), - ghost_element_disabled: Some(rgba(0xdaeedaff).into()), - text: Some(rgba(0x131513ff).into()), - text_muted: Some(rgba(0x5f705fff).into()), - text_placeholder: Some(rgba(0x718771ff).into()), - text_disabled: Some(rgba(0x718771ff).into()), - text_accent: Some(rgba(0x3f62f4ff).into()), - icon: Some(rgba(0x131513ff).into()), - icon_muted: Some(rgba(0x5f705fff).into()), - icon_disabled: Some(rgba(0x718771ff).into()), - icon_placeholder: Some(rgba(0x5f705fff).into()), - icon_accent: Some(rgba(0x3f62f4ff).into()), - status_bar_background: Some(rgba(0xb4ceb4ff).into()), - title_bar_background: Some(rgba(0xb4ceb4ff).into()), - toolbar_background: Some(rgba(0xf4fbf4ff).into()), - tab_bar_background: Some(rgba(0xdaeedaff).into()), - tab_inactive_background: Some(rgba(0xdaeedaff).into()), - tab_active_background: Some(rgba(0xf4fbf4ff).into()), - scrollbar_thumb_background: Some(rgba(0x1315134c).into()), - scrollbar_thumb_hover_background: Some(rgba(0xbed7beff).into()), - scrollbar_thumb_border: Some(rgba(0xbed7beff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0xdff0dfff).into()), - editor_foreground: Some(rgba(0x242924ff).into()), - editor_background: Some(rgba(0xf4fbf4ff).into()), - editor_gutter_background: Some(rgba(0xf4fbf4ff).into()), - editor_subheader_background: Some(rgba(0xdaeedaff).into()), - editor_active_line_background: Some(rgba(0xdaeedabf).into()), - editor_highlighted_line_background: Some(rgba(0xdaeedaff).into()), - editor_line_number: Some(rgba(0x13151359).into()), - editor_active_line_number: Some(rgba(0x131513ff).into()), - editor_invisible: Some(rgba(0x748b74ff).into()), - editor_wrap_guide: Some(rgba(0x1315130d).into()), - editor_active_wrap_guide: Some(rgba(0x1315131a).into()), - editor_document_highlight_read_background: Some(rgba(0x3f62f41a).into()), - editor_document_highlight_write_background: Some(rgba(0x748b7466).into()), - terminal_background: Some(rgba(0xf4fbf4ff).into()), - terminal_foreground: Some(rgba(0x131513ff).into()), - terminal_bright_foreground: Some(rgba(0x131513ff).into()), - terminal_dim_foreground: Some(rgba(0xf4fbf4ff).into()), - terminal_ansi_black: Some(rgba(0xf4fbf4ff).into()), - terminal_ansi_bright_black: Some(rgba(0x829b82ff).into()), - terminal_ansi_dim_black: Some(rgba(0x131513ff).into()), - terminal_ansi_red: Some(rgba(0xe61c3dff).into()), - terminal_ansi_bright_red: Some(rgba(0xff9d98ff).into()), - terminal_ansi_dim_red: Some(rgba(0x840b21ff).into()), - terminal_ansi_green: Some(rgba(0x2ba32bff).into()), - terminal_ansi_bright_green: Some(rgba(0xa0d294ff).into()), - terminal_ansi_dim_green: Some(rgba(0x204f1bff).into()), - terminal_ansi_yellow: Some(rgba(0x98981dff).into()), - terminal_ansi_bright_yellow: Some(rgba(0xd0ca90ff).into()), - terminal_ansi_dim_yellow: Some(rgba(0x4b4a17ff).into()), - terminal_ansi_blue: Some(rgba(0x3f62f4ff).into()), - terminal_ansi_bright_blue: Some(rgba(0xb1adfcff).into()), - terminal_ansi_dim_blue: Some(rgba(0x193385ff).into()), - terminal_ansi_magenta: Some(rgba(0xe61dc3ff).into()), - terminal_ansi_bright_magenta: Some(rgba(0xf9a1e1ff).into()), - terminal_ansi_dim_magenta: Some(rgba(0x810e60ff).into()), - terminal_ansi_cyan: Some(rgba(0x1d99b3ff).into()), - terminal_ansi_bright_cyan: Some(rgba(0x9fccd9ff).into()), - terminal_ansi_dim_cyan: Some(rgba(0x1d4a56ff).into()), - terminal_ansi_white: Some(rgba(0x131513ff).into()), - terminal_ansi_bright_white: Some(rgba(0x131513ff).into()), - terminal_ansi_dim_white: Some(rgba(0x667a66ff).into()), - link_text_hover: Some(rgba(0x3f62f4ff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0x98981dff).into()), - conflict_background: Some(rgba(0xede9d2ff).into()), - conflict_border: Some(rgba(0xddd8afff).into()), - created: Some(rgba(0x2ba32bff).into()), - created_background: Some(rgba(0xd9edd4ff).into()), - created_border: Some(rgba(0xbbdeb2ff).into()), - deleted: Some(rgba(0xe61c3dff).into()), - deleted_background: Some(rgba(0xffd8d4ff).into()), - deleted_border: Some(rgba(0xffb9b4ff).into()), - error: Some(rgba(0xe61c3dff).into()), - error_background: Some(rgba(0xffd8d4ff).into()), - error_border: Some(rgba(0xffb9b4ff).into()), - hidden: Some(rgba(0x718771ff).into()), - hidden_background: Some(rgba(0xb4ceb4ff).into()), - hidden_border: Some(rgba(0xa1bba1ff).into()), - hint: Some(rgba(0x008fa1ff).into()), - hint_background: Some(rgba(0xe1ddfeff).into()), - hint_border: Some(rgba(0xc9c4fdff).into()), - ignored: Some(rgba(0x5f705fff).into()), - ignored_background: Some(rgba(0xb4ceb4ff).into()), - ignored_border: Some(rgba(0x8ea88eff).into()), - info: Some(rgba(0x3f62f4ff).into()), - info_background: Some(rgba(0xe1ddfeff).into()), - info_border: Some(rgba(0xc9c4fdff).into()), - modified: Some(rgba(0x98981dff).into()), - modified_background: Some(rgba(0xede9d2ff).into()), - modified_border: Some(rgba(0xddd8afff).into()), - predictive: Some(rgba(0x00a2b5ff).into()), - predictive_background: Some(rgba(0xd9edd4ff).into()), - predictive_border: Some(rgba(0xbbdeb2ff).into()), - renamed: Some(rgba(0x3f62f4ff).into()), - renamed_background: Some(rgba(0xe1ddfeff).into()), - renamed_border: Some(rgba(0xc9c4fdff).into()), - success: Some(rgba(0x2ba32bff).into()), - success_background: Some(rgba(0xd9edd4ff).into()), - success_border: Some(rgba(0xbbdeb2ff).into()), - unreachable: Some(rgba(0x5f705fff).into()), - unreachable_background: Some(rgba(0xb4ceb4ff).into()), - unreachable_border: Some(rgba(0x8ea88eff).into()), - warning: Some(rgba(0x98981dff).into()), - warning_background: Some(rgba(0xede9d2ff).into()), - warning_border: Some(rgba(0xddd8afff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x3f62f4ff).into(), - background: rgba(0x3f62f4ff).into(), - selection: rgba(0x3f62f43d).into(), - }, - PlayerColor { - cursor: rgba(0xe61dc3ff).into(), - background: rgba(0xe61dc3ff).into(), - selection: rgba(0xe61dc33d).into(), - }, - PlayerColor { - cursor: rgba(0x87711fff).into(), - background: rgba(0x87711fff).into(), - selection: rgba(0x87711f3d).into(), - }, - PlayerColor { - cursor: rgba(0xad2dedff).into(), - background: rgba(0xad2dedff).into(), - selection: rgba(0xad2ded3d).into(), - }, - PlayerColor { - cursor: rgba(0x1d99b3ff).into(), - background: rgba(0x1d99b3ff).into(), - selection: rgba(0x1d99b33d).into(), - }, - PlayerColor { - cursor: rgba(0xe61c3dff).into(), - background: rgba(0xe61c3dff).into(), - selection: rgba(0xe61c3d3d).into(), - }, - PlayerColor { - cursor: rgba(0x98981dff).into(), - background: rgba(0x98981dff).into(), - selection: rgba(0x98981d3d).into(), - }, - PlayerColor { - cursor: rgba(0x2ba32bff).into(), - background: rgba(0x2ba32bff).into(), - selection: rgba(0x2ba32b3d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x3f62f4ff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0x2ba32bff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0x809980ff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0x5e6e5eff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0x2ba32bff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x3f62f4ff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0x131513ff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x3f62f4ff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x3f62f4ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0x87711fff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0x3d62f5ff).into()), - ..Default::default() - }, - ), - ( - "function.method".into(), - UserHighlightStyle { - color: Some(rgba(0x3d62f5ff).into()), - ..Default::default() - }, - ), - ( - "function.special.definition".into(), - UserHighlightStyle { - color: Some(rgba(0x98981bff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x008fa1ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0xad2beeff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x3f62f4ff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0x87711fff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0x2ba32bff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0x87711dff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0x5e6e5eff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0x00a2b5ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0x131513ff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0x242924ff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0xe6193cff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0x242924ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0x5e6e5eff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0x5e6e5eff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0x242924ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0xe619c3ff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0x29a329ff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0x5e6e5eff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0x1999b3ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0xe619c3ff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0x29a329ff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x3f62f4ff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0x87711fff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0x131513ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0x98981bff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0x242924ff).into()), - ..Default::default() - }, - ), - ( - "variable.special".into(), - UserHighlightStyle { - color: Some(rgba(0xad2beeff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0x98981bff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Atelier Sulphurpool Dark".into(), - appearance: Appearance::Dark, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0x5c6485ff).into()), - border_variant: Some(rgba(0x363f62ff).into()), - border_focused: Some(rgba(0x203348ff).into()), - border_selected: Some(rgba(0x203348ff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0x4d5577ff).into()), - elevated_surface_background: Some(rgba(0x262f51ff).into()), - surface_background: Some(rgba(0x262f51ff).into()), - background: Some(rgba(0x3e4769ff).into()), - panel_background: Some(rgba(0x262f51ff).into()), - element_background: Some(rgba(0x262f51ff).into()), - element_hover: Some(rgba(0x363f62ff).into()), - element_active: Some(rgba(0x5a6284ff).into()), - element_selected: Some(rgba(0x5a6284ff).into()), - element_disabled: Some(rgba(0x262f51ff).into()), - drop_target_background: Some(rgba(0x959bb280).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0x363f62ff).into()), - ghost_element_active: Some(rgba(0x5a6284ff).into()), - ghost_element_selected: Some(rgba(0x5a6284ff).into()), - ghost_element_disabled: Some(rgba(0x262f51ff).into()), - text: Some(rgba(0xf5f7ffff).into()), - text_muted: Some(rgba(0x959bb2ff).into()), - text_placeholder: Some(rgba(0x7e849eff).into()), - text_disabled: Some(rgba(0x7e849eff).into()), - text_accent: Some(rgba(0x3e8fd0ff).into()), - icon: Some(rgba(0xf5f7ffff).into()), - icon_muted: Some(rgba(0x959bb2ff).into()), - icon_disabled: Some(rgba(0x7e849eff).into()), - icon_placeholder: Some(rgba(0x959bb2ff).into()), - icon_accent: Some(rgba(0x3e8fd0ff).into()), - status_bar_background: Some(rgba(0x3e4769ff).into()), - title_bar_background: Some(rgba(0x3e4769ff).into()), - toolbar_background: Some(rgba(0x202746ff).into()), - tab_bar_background: Some(rgba(0x262f51ff).into()), - tab_inactive_background: Some(rgba(0x262f51ff).into()), - tab_active_background: Some(rgba(0x202746ff).into()), - scrollbar_thumb_background: Some(rgba(0xf5f7ff4c).into()), - scrollbar_thumb_hover_background: Some(rgba(0x363f62ff).into()), - scrollbar_thumb_border: Some(rgba(0x363f62ff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0x252d4fff).into()), - editor_foreground: Some(rgba(0xdfe2f1ff).into()), - editor_background: Some(rgba(0x202746ff).into()), - editor_gutter_background: Some(rgba(0x202746ff).into()), - editor_subheader_background: Some(rgba(0x262f51ff).into()), - editor_active_line_background: Some(rgba(0x262f51bf).into()), - editor_highlighted_line_background: Some(rgba(0x262f51ff).into()), - editor_line_number: Some(rgba(0xf5f7ff59).into()), - editor_active_line_number: Some(rgba(0xf5f7ffff).into()), - editor_invisible: Some(rgba(0x7a819cff).into()), - editor_wrap_guide: Some(rgba(0xf5f7ff0d).into()), - editor_active_wrap_guide: Some(rgba(0xf5f7ff1a).into()), - editor_document_highlight_read_background: Some(rgba(0x3e8fd01a).into()), - editor_document_highlight_write_background: Some(rgba(0x7a819c66).into()), - terminal_background: Some(rgba(0x202746ff).into()), - terminal_foreground: Some(rgba(0xf5f7ffff).into()), - terminal_bright_foreground: Some(rgba(0xf5f7ffff).into()), - terminal_dim_foreground: Some(rgba(0x202746ff).into()), - terminal_ansi_black: Some(rgba(0x202746ff).into()), - terminal_ansi_bright_black: Some(rgba(0x697192ff).into()), - terminal_ansi_dim_black: Some(rgba(0xf5f7ffff).into()), - terminal_ansi_red: Some(rgba(0xc94923ff).into()), - terminal_ansi_bright_red: Some(rgba(0x6d2616ff).into()), - terminal_ansi_dim_red: Some(rgba(0xefa58cff).into()), - terminal_ansi_green: Some(rgba(0xac973aff).into()), - terminal_ansi_bright_green: Some(rgba(0x534921ff).into()), - terminal_ansi_dim_green: Some(rgba(0xd9ca9bff).into()), - terminal_ansi_yellow: Some(rgba(0xc08b31ff).into()), - terminal_ansi_bright_yellow: Some(rgba(0x63441eff).into()), - terminal_ansi_dim_yellow: Some(rgba(0xe5c497ff).into()), - terminal_ansi_blue: Some(rgba(0x3e8fd0ff).into()), - terminal_ansi_bright_blue: Some(rgba(0x274664ff).into()), - terminal_ansi_dim_blue: Some(rgba(0xa9c6e8ff).into()), - terminal_ansi_magenta: Some(rgba(0x9c637aff).into()), - terminal_ansi_bright_magenta: Some(rgba(0x4c333dff).into()), - terminal_ansi_dim_magenta: Some(rgba(0xcfafbbff).into()), - terminal_ansi_cyan: Some(rgba(0x25a2c9ff).into()), - terminal_ansi_bright_cyan: Some(rgba(0x214e5fff).into()), - terminal_ansi_dim_cyan: Some(rgba(0xa4d0e4ff).into()), - terminal_ansi_white: Some(rgba(0xf5f7ffff).into()), - terminal_ansi_bright_white: Some(rgba(0xf5f7ffff).into()), - terminal_ansi_dim_white: Some(rgba(0x8b91a7ff).into()), - link_text_hover: Some(rgba(0x3e8fd0ff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0xc08b31ff).into()), - conflict_background: Some(rgba(0x311e11ff).into()), - conflict_border: Some(rgba(0x4b3218ff).into()), - created: Some(rgba(0xac973aff).into()), - created_background: Some(rgba(0x252113ff).into()), - created_border: Some(rgba(0x3d351bff).into()), - deleted: Some(rgba(0xc94923ff).into()), - deleted_background: Some(rgba(0x3c120dff).into()), - deleted_border: Some(rgba(0x551c13ff).into()), - error: Some(rgba(0xc94923ff).into()), - error_background: Some(rgba(0x3c120dff).into()), - error_border: Some(rgba(0x551c13ff).into()), - hidden: Some(rgba(0x7e849eff).into()), - hidden_background: Some(rgba(0x3e4769ff).into()), - hidden_border: Some(rgba(0x4d5577ff).into()), - hint: Some(rgba(0x6d82a6ff).into()), - hint_background: Some(rgba(0x161f2bff).into()), - hint_border: Some(rgba(0x203348ff).into()), - ignored: Some(rgba(0x959bb2ff).into()), - ignored_background: Some(rgba(0x3e4769ff).into()), - ignored_border: Some(rgba(0x5c6485ff).into()), - info: Some(rgba(0x3e8fd0ff).into()), - info_background: Some(rgba(0x161f2bff).into()), - info_border: Some(rgba(0x203348ff).into()), - modified: Some(rgba(0xc08b31ff).into()), - modified_background: Some(rgba(0x311e11ff).into()), - modified_border: Some(rgba(0x4b3218ff).into()), - predictive: Some(rgba(0x58709aff).into()), - predictive_background: Some(rgba(0x252113ff).into()), - predictive_border: Some(rgba(0x3d351bff).into()), - renamed: Some(rgba(0x3e8fd0ff).into()), - renamed_background: Some(rgba(0x161f2bff).into()), - renamed_border: Some(rgba(0x203348ff).into()), - success: Some(rgba(0xac973aff).into()), - success_background: Some(rgba(0x252113ff).into()), - success_border: Some(rgba(0x3d351bff).into()), - unreachable: Some(rgba(0x959bb2ff).into()), - unreachable_background: Some(rgba(0x3e4769ff).into()), - unreachable_border: Some(rgba(0x5c6485ff).into()), - warning: Some(rgba(0xc08b31ff).into()), - warning_background: Some(rgba(0x311e11ff).into()), - warning_border: Some(rgba(0x4b3218ff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x3e8fd0ff).into(), - background: rgba(0x3e8fd0ff).into(), - selection: rgba(0x3e8fd03d).into(), - }, - PlayerColor { - cursor: rgba(0x9c637aff).into(), - background: rgba(0x9c637aff).into(), - selection: rgba(0x9c637a3d).into(), - }, - PlayerColor { - cursor: rgba(0xc76b2aff).into(), - background: rgba(0xc76b2aff).into(), - selection: rgba(0xc76b2a3d).into(), - }, - PlayerColor { - cursor: rgba(0x6679ccff).into(), - background: rgba(0x6679ccff).into(), - selection: rgba(0x6679cc3d).into(), - }, - PlayerColor { - cursor: rgba(0x25a2c9ff).into(), - background: rgba(0x25a2c9ff).into(), - selection: rgba(0x25a2c93d).into(), - }, - PlayerColor { - cursor: rgba(0xc94923ff).into(), - background: rgba(0xc94923ff).into(), - selection: rgba(0xc949233d).into(), - }, - PlayerColor { - cursor: rgba(0xc08b31ff).into(), - background: rgba(0xc08b31ff).into(), - selection: rgba(0xc08b313d).into(), - }, - PlayerColor { - cursor: rgba(0xac973aff).into(), - background: rgba(0xac973aff).into(), - selection: rgba(0xac973a3d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x3e8fd0ff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0xac973aff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0x6b7394ff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0x979db4ff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0xac973aff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x3e8fd0ff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0xf5f7ffff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x3e8fd0ff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x3e8fd0ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0xc76b2aff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0x3d8fd1ff).into()), - ..Default::default() - }, - ), - ( - "function.method".into(), - UserHighlightStyle { - color: Some(rgba(0x3d8fd1ff).into()), - ..Default::default() - }, - ), - ( - "function.special.definition".into(), - UserHighlightStyle { - color: Some(rgba(0xc08b30ff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x6d82a6ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0x6679ccff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x3e8fd0ff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0xc76b2aff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0xac973aff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0xc76b29ff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0x979db4ff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0x58709aff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0xf5f7ffff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0xdfe2f1ff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0xc94922ff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0xdfe2f1ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0x979db4ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0x979db4ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0xdfe2f1ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0x9c637aff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0xac9739ff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0x979db4ff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0x22a2c9ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0x9c637aff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0xac9739ff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x3e8fd0ff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0xc76b2aff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0xf5f7ffff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0xc08b30ff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0xdfe2f1ff).into()), - ..Default::default() - }, - ), - ( - "variable.special".into(), - UserHighlightStyle { - color: Some(rgba(0x6679ccff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0xc08b30ff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Atelier Sulphurpool Light".into(), - appearance: Appearance::Light, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0x9a9fb6ff).into()), - border_variant: Some(rgba(0xccd0e1ff).into()), - border_focused: Some(rgba(0xc2d5efff).into()), - border_selected: Some(rgba(0xc2d5efff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0xaeb3c7ff).into()), - elevated_surface_background: Some(rgba(0xe5e8f5ff).into()), - surface_background: Some(rgba(0xe5e8f5ff).into()), - background: Some(rgba(0xc2c6d9ff).into()), - panel_background: Some(rgba(0xe5e8f5ff).into()), - element_background: Some(rgba(0xe5e8f5ff).into()), - element_hover: Some(rgba(0xccd0e1ff).into()), - element_active: Some(rgba(0x9ca1b8ff).into()), - element_selected: Some(rgba(0x9ca1b8ff).into()), - element_disabled: Some(rgba(0xe5e8f5ff).into()), - drop_target_background: Some(rgba(0x60688980).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0xccd0e1ff).into()), - ghost_element_active: Some(rgba(0x9ca1b8ff).into()), - ghost_element_selected: Some(rgba(0x9ca1b8ff).into()), - ghost_element_disabled: Some(rgba(0xe5e8f5ff).into()), - text: Some(rgba(0x202746ff).into()), - text_muted: Some(rgba(0x606889ff).into()), - text_placeholder: Some(rgba(0x767d9aff).into()), - text_disabled: Some(rgba(0x767d9aff).into()), - text_accent: Some(rgba(0x3f8fd0ff).into()), - icon: Some(rgba(0x202746ff).into()), - icon_muted: Some(rgba(0x606889ff).into()), - icon_disabled: Some(rgba(0x767d9aff).into()), - icon_placeholder: Some(rgba(0x606889ff).into()), - icon_accent: Some(rgba(0x3f8fd0ff).into()), - status_bar_background: Some(rgba(0xc2c6d9ff).into()), - title_bar_background: Some(rgba(0xc2c6d9ff).into()), - toolbar_background: Some(rgba(0xf5f7ffff).into()), - tab_bar_background: Some(rgba(0xe5e8f5ff).into()), - tab_inactive_background: Some(rgba(0xe5e8f5ff).into()), - tab_active_background: Some(rgba(0xf5f7ffff).into()), - scrollbar_thumb_background: Some(rgba(0x2027464c).into()), - scrollbar_thumb_hover_background: Some(rgba(0xccd0e1ff).into()), - scrollbar_thumb_border: Some(rgba(0xccd0e1ff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0xe9ebf7ff).into()), - editor_foreground: Some(rgba(0x293256ff).into()), - editor_background: Some(rgba(0xf5f7ffff).into()), - editor_gutter_background: Some(rgba(0xf5f7ffff).into()), - editor_subheader_background: Some(rgba(0xe5e8f5ff).into()), - editor_active_line_background: Some(rgba(0xe5e8f5bf).into()), - editor_highlighted_line_background: Some(rgba(0xe5e8f5ff).into()), - editor_line_number: Some(rgba(0x20274659).into()), - editor_active_line_number: Some(rgba(0x202746ff).into()), - editor_invisible: Some(rgba(0x7a819cff).into()), - editor_wrap_guide: Some(rgba(0x2027460d).into()), - editor_active_wrap_guide: Some(rgba(0x2027461a).into()), - editor_document_highlight_read_background: Some(rgba(0x3f8fd01a).into()), - editor_document_highlight_write_background: Some(rgba(0x7a819c66).into()), - terminal_background: Some(rgba(0xf5f7ffff).into()), - terminal_foreground: Some(rgba(0x202746ff).into()), - terminal_bright_foreground: Some(rgba(0x202746ff).into()), - terminal_dim_foreground: Some(rgba(0xf5f7ffff).into()), - terminal_ansi_black: Some(rgba(0xf5f7ffff).into()), - terminal_ansi_bright_black: Some(rgba(0x8b91a7ff).into()), - terminal_ansi_dim_black: Some(rgba(0x202746ff).into()), - terminal_ansi_red: Some(rgba(0xc94a23ff).into()), - terminal_ansi_bright_red: Some(rgba(0xefa58cff).into()), - terminal_ansi_dim_red: Some(rgba(0x6d2616ff).into()), - terminal_ansi_green: Some(rgba(0xac973aff).into()), - terminal_ansi_bright_green: Some(rgba(0xd9ca9bff).into()), - terminal_ansi_dim_green: Some(rgba(0x534921ff).into()), - terminal_ansi_yellow: Some(rgba(0xc08b31ff).into()), - terminal_ansi_bright_yellow: Some(rgba(0xe5c497ff).into()), - terminal_ansi_dim_yellow: Some(rgba(0x63441eff).into()), - terminal_ansi_blue: Some(rgba(0x3f8fd0ff).into()), - terminal_ansi_bright_blue: Some(rgba(0xa9c6e8ff).into()), - terminal_ansi_dim_blue: Some(rgba(0x274664ff).into()), - terminal_ansi_magenta: Some(rgba(0x9c637aff).into()), - terminal_ansi_bright_magenta: Some(rgba(0xcfafbbff).into()), - terminal_ansi_dim_magenta: Some(rgba(0x4c333dff).into()), - terminal_ansi_cyan: Some(rgba(0x25a2c9ff).into()), - terminal_ansi_bright_cyan: Some(rgba(0xa4d0e4ff).into()), - terminal_ansi_dim_cyan: Some(rgba(0x214e5fff).into()), - terminal_ansi_white: Some(rgba(0x202746ff).into()), - terminal_ansi_bright_white: Some(rgba(0x202746ff).into()), - terminal_ansi_dim_white: Some(rgba(0x697192ff).into()), - link_text_hover: Some(rgba(0x3f8fd0ff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0xc08b31ff).into()), - conflict_background: Some(rgba(0xf6e6d4ff).into()), - conflict_border: Some(rgba(0xeed4b3ff).into()), - created: Some(rgba(0xac973aff).into()), - created_background: Some(rgba(0xf1e9d6ff).into()), - created_border: Some(rgba(0xe4d8b7ff).into()), - deleted: Some(rgba(0xc94a23ff).into()), - deleted_background: Some(rgba(0xfcdad0ff).into()), - deleted_border: Some(rgba(0xf6beabff).into()), - error: Some(rgba(0xc94a23ff).into()), - error_background: Some(rgba(0xfcdad0ff).into()), - error_border: Some(rgba(0xf6beabff).into()), - hidden: Some(rgba(0x767d9aff).into()), - hidden_background: Some(rgba(0xc2c6d9ff).into()), - hidden_border: Some(rgba(0xaeb3c7ff).into()), - hint: Some(rgba(0x7087b2ff).into()), - hint_background: Some(rgba(0xdde7f6ff).into()), - hint_border: Some(rgba(0xc2d5efff).into()), - ignored: Some(rgba(0x606889ff).into()), - ignored_background: Some(rgba(0xc2c6d9ff).into()), - ignored_border: Some(rgba(0x9a9fb6ff).into()), - info: Some(rgba(0x3f8fd0ff).into()), - info_background: Some(rgba(0xdde7f6ff).into()), - info_border: Some(rgba(0xc2d5efff).into()), - modified: Some(rgba(0xc08b31ff).into()), - modified_background: Some(rgba(0xf6e6d4ff).into()), - modified_border: Some(rgba(0xeed4b3ff).into()), - predictive: Some(rgba(0x8599beff).into()), - predictive_background: Some(rgba(0xf1e9d6ff).into()), - predictive_border: Some(rgba(0xe4d8b7ff).into()), - renamed: Some(rgba(0x3f8fd0ff).into()), - renamed_background: Some(rgba(0xdde7f6ff).into()), - renamed_border: Some(rgba(0xc2d5efff).into()), - success: Some(rgba(0xac973aff).into()), - success_background: Some(rgba(0xf1e9d6ff).into()), - success_border: Some(rgba(0xe4d8b7ff).into()), - unreachable: Some(rgba(0x606889ff).into()), - unreachable_background: Some(rgba(0xc2c6d9ff).into()), - unreachable_border: Some(rgba(0x9a9fb6ff).into()), - warning: Some(rgba(0xc08b31ff).into()), - warning_background: Some(rgba(0xf6e6d4ff).into()), - warning_border: Some(rgba(0xeed4b3ff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x3f8fd0ff).into(), - background: rgba(0x3f8fd0ff).into(), - selection: rgba(0x3f8fd03d).into(), - }, - PlayerColor { - cursor: rgba(0x9c637aff).into(), - background: rgba(0x9c637aff).into(), - selection: rgba(0x9c637a3d).into(), - }, - PlayerColor { - cursor: rgba(0xc76b2aff).into(), - background: rgba(0xc76b2aff).into(), - selection: rgba(0xc76b2a3d).into(), - }, - PlayerColor { - cursor: rgba(0x6779ccff).into(), - background: rgba(0x6779ccff).into(), - selection: rgba(0x6779cc3d).into(), - }, - PlayerColor { - cursor: rgba(0x25a2c9ff).into(), - background: rgba(0x25a2c9ff).into(), - selection: rgba(0x25a2c93d).into(), - }, - PlayerColor { - cursor: rgba(0xc94a23ff).into(), - background: rgba(0xc94a23ff).into(), - selection: rgba(0xc94a233d).into(), - }, - PlayerColor { - cursor: rgba(0xc08b31ff).into(), - background: rgba(0xc08b31ff).into(), - selection: rgba(0xc08b313d).into(), - }, - PlayerColor { - cursor: rgba(0xac973aff).into(), - background: rgba(0xac973aff).into(), - selection: rgba(0xac973a3d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x3f8fd0ff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0xac973aff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0x898ea4ff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0x5e6687ff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0xac973aff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x3f8fd0ff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0x202746ff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x3f8fd0ff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x3f8fd0ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0xc76b2aff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0x3d8fd1ff).into()), - ..Default::default() - }, - ), - ( - "function.method".into(), - UserHighlightStyle { - color: Some(rgba(0x3d8fd1ff).into()), - ..Default::default() - }, - ), - ( - "function.special.definition".into(), - UserHighlightStyle { - color: Some(rgba(0xc08b30ff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x7087b2ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0x6679ccff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x3f8fd0ff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0xc76b2aff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0xac973aff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0xc76b29ff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0x5e6687ff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0x8599beff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0x202746ff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0x293256ff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0xc94922ff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0x293256ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0x5e6687ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0x5e6687ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0x293256ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0x9c637aff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0xac9739ff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0x5e6687ff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0x22a2c9ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0x9c637aff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0xac9739ff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x3f8fd0ff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0xc76b2aff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0x202746ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0xc08b30ff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0x293256ff).into()), - ..Default::default() - }, - ), - ( - "variable.special".into(), - UserHighlightStyle { - color: Some(rgba(0x6679ccff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0xc08b30ff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - ], - } -} diff --git a/crates/theme/src/themes/ayu.rs b/crates/theme/src/themes/ayu.rs deleted file mode 100644 index 6bde2410ae..0000000000 --- a/crates/theme/src/themes/ayu.rs +++ /dev/null @@ -1,1385 +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 ayu() -> UserThemeFamily { - UserThemeFamily { - name: "Ayu".into(), - author: "Zed Industries".into(), - themes: vec![ - UserTheme { - name: "Ayu Dark".into(), - appearance: Appearance::Dark, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0x3f4043ff).into()), - border_variant: Some(rgba(0x2d2f34ff).into()), - border_focused: Some(rgba(0x1b4a6eff).into()), - border_selected: Some(rgba(0x1b4a6eff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0x383a3eff).into()), - elevated_surface_background: Some(rgba(0x1f2127ff).into()), - surface_background: Some(rgba(0x1f2127ff).into()), - background: Some(rgba(0x313337ff).into()), - panel_background: Some(rgba(0x1f2127ff).into()), - element_background: Some(rgba(0x1f2127ff).into()), - element_hover: Some(rgba(0x2d2f34ff).into()), - element_active: Some(rgba(0x3e4043ff).into()), - element_selected: Some(rgba(0x3e4043ff).into()), - element_disabled: Some(rgba(0x1f2127ff).into()), - drop_target_background: Some(rgba(0x8a898680).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0x2d2f34ff).into()), - ghost_element_active: Some(rgba(0x3e4043ff).into()), - ghost_element_selected: Some(rgba(0x3e4043ff).into()), - ghost_element_disabled: Some(rgba(0x1f2127ff).into()), - text: Some(rgba(0xbfbdb6ff).into()), - text_muted: Some(rgba(0x8a8986ff).into()), - text_placeholder: Some(rgba(0x696a6aff).into()), - text_disabled: Some(rgba(0x696a6aff).into()), - text_accent: Some(rgba(0x5ac2feff).into()), - icon: Some(rgba(0xbfbdb6ff).into()), - icon_muted: Some(rgba(0x8a8986ff).into()), - icon_disabled: Some(rgba(0x696a6aff).into()), - icon_placeholder: Some(rgba(0x8a8986ff).into()), - icon_accent: Some(rgba(0x5ac2feff).into()), - status_bar_background: Some(rgba(0x313337ff).into()), - title_bar_background: Some(rgba(0x313337ff).into()), - toolbar_background: Some(rgba(0x0d1017ff).into()), - tab_bar_background: Some(rgba(0x1f2127ff).into()), - tab_inactive_background: Some(rgba(0x1f2127ff).into()), - tab_active_background: Some(rgba(0x0d1017ff).into()), - scrollbar_thumb_background: Some(rgba(0xbfbdb64c).into()), - scrollbar_thumb_hover_background: Some(rgba(0x2d2f34ff).into()), - scrollbar_thumb_border: Some(rgba(0x2d2f34ff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0x1b1e24ff).into()), - editor_foreground: Some(rgba(0xbfbdb6ff).into()), - editor_background: Some(rgba(0x0d1017ff).into()), - editor_gutter_background: Some(rgba(0x0d1017ff).into()), - editor_subheader_background: Some(rgba(0x1f2127ff).into()), - editor_active_line_background: Some(rgba(0x1f2127bf).into()), - editor_highlighted_line_background: Some(rgba(0x1f2127ff).into()), - editor_line_number: Some(rgba(0xbfbdb659).into()), - editor_active_line_number: Some(rgba(0xbfbdb6ff).into()), - editor_invisible: Some(rgba(0x666767ff).into()), - editor_wrap_guide: Some(rgba(0xbfbdb60d).into()), - editor_active_wrap_guide: Some(rgba(0xbfbdb61a).into()), - editor_document_highlight_read_background: Some(rgba(0x5ac2fe1a).into()), - editor_document_highlight_write_background: Some(rgba(0x66676766).into()), - terminal_background: Some(rgba(0x0d1017ff).into()), - terminal_foreground: Some(rgba(0xbfbdb6ff).into()), - terminal_bright_foreground: Some(rgba(0xbfbdb6ff).into()), - terminal_dim_foreground: Some(rgba(0x0d1017ff).into()), - terminal_ansi_black: Some(rgba(0x0d1017ff).into()), - terminal_ansi_bright_black: Some(rgba(0x545557ff).into()), - terminal_ansi_dim_black: Some(rgba(0xbfbdb6ff).into()), - terminal_ansi_red: Some(rgba(0xef7178ff).into()), - terminal_ansi_bright_red: Some(rgba(0x83363cff).into()), - terminal_ansi_dim_red: Some(rgba(0xfebab9ff).into()), - terminal_ansi_green: Some(rgba(0xaad84cff).into()), - terminal_ansi_bright_green: Some(rgba(0x567627ff).into()), - terminal_ansi_dim_green: Some(rgba(0xd8eca8ff).into()), - terminal_ansi_yellow: Some(rgba(0xfeb454ff).into()), - terminal_ansi_bright_yellow: Some(rgba(0x92592cff).into()), - terminal_ansi_dim_yellow: Some(rgba(0xffd9aaff).into()), - terminal_ansi_blue: Some(rgba(0x5ac2feff).into()), - terminal_ansi_bright_blue: Some(rgba(0x28628cff).into()), - terminal_ansi_dim_blue: Some(rgba(0xb8e0ffff).into()), - terminal_ansi_magenta: Some(rgba(0x3abae5ff).into()), - terminal_ansi_bright_magenta: Some(rgba(0x205b78ff).into()), - terminal_ansi_dim_magenta: Some(rgba(0xaddcf3ff).into()), - terminal_ansi_cyan: Some(rgba(0x95e5cbff).into()), - terminal_ansi_bright_cyan: Some(rgba(0x4c806fff).into()), - terminal_ansi_dim_cyan: Some(rgba(0xccf3e5ff).into()), - terminal_ansi_white: Some(rgba(0xbfbdb6ff).into()), - terminal_ansi_bright_white: Some(rgba(0xbfbdb6ff).into()), - terminal_ansi_dim_white: Some(rgba(0x787876ff).into()), - link_text_hover: Some(rgba(0x5ac2feff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0xfeb454ff).into()), - conflict_background: Some(rgba(0x572916ff).into()), - conflict_border: Some(rgba(0x754221ff).into()), - created: Some(rgba(0xaad84cff).into()), - created_background: Some(rgba(0x294113ff).into()), - created_border: Some(rgba(0x405c1dff).into()), - deleted: Some(rgba(0xef7178ff).into()), - deleted_background: Some(rgba(0x48171cff).into()), - deleted_border: Some(rgba(0x66272dff).into()), - error: Some(rgba(0xef7178ff).into()), - error_background: Some(rgba(0x48171cff).into()), - error_border: Some(rgba(0x66272dff).into()), - hidden: Some(rgba(0x696a6aff).into()), - hidden_background: Some(rgba(0x313337ff).into()), - hidden_border: Some(rgba(0x383a3eff).into()), - hint: Some(rgba(0x638c81ff).into()), - hint_background: Some(rgba(0x0d304fff).into()), - hint_border: Some(rgba(0x1b4a6eff).into()), - ignored: Some(rgba(0x8a8986ff).into()), - ignored_background: Some(rgba(0x313337ff).into()), - ignored_border: Some(rgba(0x3f4043ff).into()), - info: Some(rgba(0x5ac2feff).into()), - info_background: Some(rgba(0x0d304fff).into()), - info_border: Some(rgba(0x1b4a6eff).into()), - modified: Some(rgba(0xfeb454ff).into()), - modified_background: Some(rgba(0x572916ff).into()), - modified_border: Some(rgba(0x754221ff).into()), - predictive: Some(rgba(0x5b728cff).into()), - predictive_background: Some(rgba(0x294113ff).into()), - predictive_border: Some(rgba(0x405c1dff).into()), - renamed: Some(rgba(0x5ac2feff).into()), - renamed_background: Some(rgba(0x0d304fff).into()), - renamed_border: Some(rgba(0x1b4a6eff).into()), - success: Some(rgba(0xaad84cff).into()), - success_background: Some(rgba(0x294113ff).into()), - success_border: Some(rgba(0x405c1dff).into()), - unreachable: Some(rgba(0x8a8986ff).into()), - unreachable_background: Some(rgba(0x313337ff).into()), - unreachable_border: Some(rgba(0x3f4043ff).into()), - warning: Some(rgba(0xfeb454ff).into()), - warning_background: Some(rgba(0x572916ff).into()), - warning_border: Some(rgba(0x754221ff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x5ac2feff).into(), - background: rgba(0x5ac2feff).into(), - selection: rgba(0x5ac2fe3d).into(), - }, - PlayerColor { - cursor: rgba(0x3abae5ff).into(), - background: rgba(0x3abae5ff).into(), - selection: rgba(0x3abae53d).into(), - }, - PlayerColor { - cursor: rgba(0xfe8f40ff).into(), - background: rgba(0xfe8f40ff).into(), - selection: rgba(0xfe8f403d).into(), - }, - PlayerColor { - cursor: rgba(0xd2a6feff).into(), - background: rgba(0xd2a6feff).into(), - selection: rgba(0xd2a6fe3d).into(), - }, - PlayerColor { - cursor: rgba(0x95e5cbff).into(), - background: rgba(0x95e5cbff).into(), - selection: rgba(0x95e5cb3d).into(), - }, - PlayerColor { - cursor: rgba(0xef7178ff).into(), - background: rgba(0xef7178ff).into(), - selection: rgba(0xef71783d).into(), - }, - PlayerColor { - cursor: rgba(0xfeb454ff).into(), - background: rgba(0xfeb454ff).into(), - selection: rgba(0xfeb4543d).into(), - }, - PlayerColor { - cursor: rgba(0xaad84cff).into(), - background: rgba(0xaad84cff).into(), - selection: rgba(0xaad84c3d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x5ac2feff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0xd2a6ffff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0xacb6bf8c).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0x8c8b88ff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0xd2a6ffff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x5ac2feff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0xbfbdb6ff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x5ac2feff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x5ac2feff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0xfe8f40ff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0xffb454ff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x638c81ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0xff8f40ff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x5ac2feff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0xfe8f40ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0xaad84cff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0xd2a6ffff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0xf29668ff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0x5b728cff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0xbfbdb6ff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0xbfbdb6ff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0x5ac2feff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0xa6a5a0ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0xa6a5a0ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0xa6a5a0ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0xa6a5a0ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0xd2a6ffff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0xaad94cff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0x8c8b88ff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0x95e6cbff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0xe6b673ff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0xfe8f40ff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x5ac2feff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0xfe8f40ff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0xbfbdb6ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0x59c2ffff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0xbfbdb6ff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0x5ac2feff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Ayu Light".into(), - appearance: Appearance::Light, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0xcfd1d2ff).into()), - border_variant: Some(rgba(0xdfe0e1ff).into()), - border_focused: Some(rgba(0xc4daf6ff).into()), - border_selected: Some(rgba(0xc4daf6ff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0xd5d6d8ff).into()), - elevated_surface_background: Some(rgba(0xececedff).into()), - surface_background: Some(rgba(0xececedff).into()), - background: Some(rgba(0xdcdddeff).into()), - panel_background: Some(rgba(0xececedff).into()), - element_background: Some(rgba(0xececedff).into()), - element_hover: Some(rgba(0xdfe0e1ff).into()), - element_active: Some(rgba(0xd0d1d3ff).into()), - element_selected: Some(rgba(0xd0d1d3ff).into()), - element_disabled: Some(rgba(0xececedff).into()), - drop_target_background: Some(rgba(0x8c8f9380).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0xdfe0e1ff).into()), - ghost_element_active: Some(rgba(0xd0d1d3ff).into()), - ghost_element_selected: Some(rgba(0xd0d1d3ff).into()), - ghost_element_disabled: Some(rgba(0xececedff).into()), - text: Some(rgba(0x5c6166ff).into()), - text_muted: Some(rgba(0x8c8f93ff).into()), - text_placeholder: Some(rgba(0xa9acaeff).into()), - text_disabled: Some(rgba(0xa9acaeff).into()), - text_accent: Some(rgba(0x3b9ee5ff).into()), - icon: Some(rgba(0x5c6166ff).into()), - icon_muted: Some(rgba(0x8c8f93ff).into()), - icon_disabled: Some(rgba(0xa9acaeff).into()), - icon_placeholder: Some(rgba(0x8c8f93ff).into()), - icon_accent: Some(rgba(0x3b9ee5ff).into()), - status_bar_background: Some(rgba(0xdcdddeff).into()), - title_bar_background: Some(rgba(0xdcdddeff).into()), - toolbar_background: Some(rgba(0xfcfcfcff).into()), - tab_bar_background: Some(rgba(0xececedff).into()), - tab_inactive_background: Some(rgba(0xececedff).into()), - tab_active_background: Some(rgba(0xfcfcfcff).into()), - scrollbar_thumb_background: Some(rgba(0x5c61664c).into()), - scrollbar_thumb_hover_background: Some(rgba(0xdfe0e1ff).into()), - scrollbar_thumb_border: Some(rgba(0xdfe0e1ff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0xefeff0ff).into()), - editor_foreground: Some(rgba(0x5c6166ff).into()), - editor_background: Some(rgba(0xfcfcfcff).into()), - editor_gutter_background: Some(rgba(0xfcfcfcff).into()), - editor_subheader_background: Some(rgba(0xececedff).into()), - editor_active_line_background: Some(rgba(0xececedbf).into()), - editor_highlighted_line_background: Some(rgba(0xececedff).into()), - editor_line_number: Some(rgba(0x5c616659).into()), - editor_active_line_number: Some(rgba(0x5c6166ff).into()), - editor_invisible: Some(rgba(0xacafb1ff).into()), - editor_wrap_guide: Some(rgba(0x5c61660d).into()), - editor_active_wrap_guide: Some(rgba(0x5c61661a).into()), - editor_document_highlight_read_background: Some(rgba(0x3b9ee51a).into()), - editor_document_highlight_write_background: Some(rgba(0xacafb166).into()), - terminal_background: Some(rgba(0xfcfcfcff).into()), - terminal_foreground: Some(rgba(0x5c6166ff).into()), - terminal_bright_foreground: Some(rgba(0x5c6166ff).into()), - terminal_dim_foreground: Some(rgba(0xfcfcfcff).into()), - terminal_ansi_black: Some(rgba(0xfcfcfcff).into()), - terminal_ansi_bright_black: Some(rgba(0xbcbec0ff).into()), - terminal_ansi_dim_black: Some(rgba(0x5c6166ff).into()), - terminal_ansi_red: Some(rgba(0xef7271ff).into()), - terminal_ansi_bright_red: Some(rgba(0xfebab6ff).into()), - terminal_ansi_dim_red: Some(rgba(0x833639ff).into()), - terminal_ansi_green: Some(rgba(0x86b305ff).into()), - terminal_ansi_bright_green: Some(rgba(0xc7d98fff).into()), - terminal_ansi_dim_green: Some(rgba(0x445614ff).into()), - terminal_ansi_yellow: Some(rgba(0xf1ae4aff).into()), - terminal_ansi_bright_yellow: Some(rgba(0xffd6a4ff).into()), - terminal_ansi_dim_yellow: Some(rgba(0x8a5328ff).into()), - terminal_ansi_blue: Some(rgba(0x3b9ee5ff).into()), - terminal_ansi_bright_blue: Some(rgba(0xaccef3ff).into()), - terminal_ansi_dim_blue: Some(rgba(0x214d76ff).into()), - terminal_ansi_magenta: Some(rgba(0x56b4d3ff).into()), - terminal_ansi_bright_magenta: Some(rgba(0xb2d9e9ff).into()), - terminal_ansi_dim_magenta: Some(rgba(0x2f5669ff).into()), - terminal_ansi_cyan: Some(rgba(0x4dbf99ff).into()), - terminal_ansi_bright_cyan: Some(rgba(0xace0cbff).into()), - terminal_ansi_dim_cyan: Some(rgba(0x2a5f4aff).into()), - terminal_ansi_white: Some(rgba(0x5c6166ff).into()), - terminal_ansi_bright_white: Some(rgba(0x5c6166ff).into()), - terminal_ansi_dim_white: Some(rgba(0x9c9fa2ff).into()), - link_text_hover: Some(rgba(0x3b9ee5ff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0xf1ae4aff).into()), - conflict_background: Some(rgba(0xffeedaff).into()), - conflict_border: Some(rgba(0xffe1beff).into()), - created: Some(rgba(0x86b305ff).into()), - created_background: Some(rgba(0xe9efd2ff).into()), - created_border: Some(rgba(0xd7e3aeff).into()), - deleted: Some(rgba(0xef7271ff).into()), - deleted_background: Some(rgba(0xffe3e1ff).into()), - deleted_border: Some(rgba(0xffcdcaff).into()), - error: Some(rgba(0xef7271ff).into()), - error_background: Some(rgba(0xffe3e1ff).into()), - error_border: Some(rgba(0xffcdcaff).into()), - hidden: Some(rgba(0xa9acaeff).into()), - hidden_background: Some(rgba(0xdcdddeff).into()), - hidden_border: Some(rgba(0xd5d6d8ff).into()), - hint: Some(rgba(0x8ca7c2ff).into()), - hint_background: Some(rgba(0xdeebfaff).into()), - hint_border: Some(rgba(0xc4daf6ff).into()), - ignored: Some(rgba(0x8c8f93ff).into()), - ignored_background: Some(rgba(0xdcdddeff).into()), - ignored_border: Some(rgba(0xcfd1d2ff).into()), - info: Some(rgba(0x3b9ee5ff).into()), - info_background: Some(rgba(0xdeebfaff).into()), - info_border: Some(rgba(0xc4daf6ff).into()), - modified: Some(rgba(0xf1ae4aff).into()), - modified_background: Some(rgba(0xffeedaff).into()), - modified_border: Some(rgba(0xffe1beff).into()), - predictive: Some(rgba(0x9eb9d3ff).into()), - predictive_background: Some(rgba(0xe9efd2ff).into()), - predictive_border: Some(rgba(0xd7e3aeff).into()), - renamed: Some(rgba(0x3b9ee5ff).into()), - renamed_background: Some(rgba(0xdeebfaff).into()), - renamed_border: Some(rgba(0xc4daf6ff).into()), - success: Some(rgba(0x86b305ff).into()), - success_background: Some(rgba(0xe9efd2ff).into()), - success_border: Some(rgba(0xd7e3aeff).into()), - unreachable: Some(rgba(0x8c8f93ff).into()), - unreachable_background: Some(rgba(0xdcdddeff).into()), - unreachable_border: Some(rgba(0xcfd1d2ff).into()), - warning: Some(rgba(0xf1ae4aff).into()), - warning_background: Some(rgba(0xffeedaff).into()), - warning_border: Some(rgba(0xffe1beff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x3b9ee5ff).into(), - background: rgba(0x3b9ee5ff).into(), - selection: rgba(0x3b9ee53d).into(), - }, - PlayerColor { - cursor: rgba(0x56b4d3ff).into(), - background: rgba(0x56b4d3ff).into(), - selection: rgba(0x56b4d33d).into(), - }, - PlayerColor { - cursor: rgba(0xf98d3fff).into(), - background: rgba(0xf98d3fff).into(), - selection: rgba(0xf98d3f3d).into(), - }, - PlayerColor { - cursor: rgba(0xa37accff).into(), - background: rgba(0xa37accff).into(), - selection: rgba(0xa37acc3d).into(), - }, - PlayerColor { - cursor: rgba(0x4dbf99ff).into(), - background: rgba(0x4dbf99ff).into(), - selection: rgba(0x4dbf993d).into(), - }, - PlayerColor { - cursor: rgba(0xef7271ff).into(), - background: rgba(0xef7271ff).into(), - selection: rgba(0xef72713d).into(), - }, - PlayerColor { - cursor: rgba(0xf1ae4aff).into(), - background: rgba(0xf1ae4aff).into(), - selection: rgba(0xf1ae4a3d).into(), - }, - PlayerColor { - cursor: rgba(0x86b305ff).into(), - background: rgba(0x86b305ff).into(), - selection: rgba(0x86b3053d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x3b9ee5ff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0xa37accff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0x787b8099).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0x8a8e91ff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0xa37accff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x3b9ee5ff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0x5c6166ff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x3b9ee5ff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x3b9ee5ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0xf98d3fff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0xf2ae49ff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x8ca7c2ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0xfa8d3eff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x3b9ee5ff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0xf98d3fff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0x86b305ff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0xa37accff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0xed9366ff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0x9eb9d3ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0x5c6166ff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0x5c6166ff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0x3b9ee5ff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0x73777bff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0x73777bff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0x73777bff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0x73777bff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0xa37accff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0x86b300ff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0x8a8e91ff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0x4cbf99ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0xe6ba7eff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0xf98d3fff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x3b9ee5ff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0xf98d3fff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0x5c6166ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0x399ee6ff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0x5c6166ff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0x3b9ee5ff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Ayu Mirage".into(), - appearance: Appearance::Dark, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0x53565dff).into()), - border_variant: Some(rgba(0x43464fff).into()), - border_focused: Some(rgba(0x24556fff).into()), - border_selected: Some(rgba(0x24556fff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0x4d5058ff).into()), - elevated_surface_background: Some(rgba(0x353944ff).into()), - surface_background: Some(rgba(0x353944ff).into()), - background: Some(rgba(0x464a52ff).into()), - panel_background: Some(rgba(0x353944ff).into()), - element_background: Some(rgba(0x353944ff).into()), - element_hover: Some(rgba(0x43464fff).into()), - element_active: Some(rgba(0x53565dff).into()), - element_selected: Some(rgba(0x53565dff).into()), - element_disabled: Some(rgba(0x353944ff).into()), - drop_target_background: Some(rgba(0x9a9a9880).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0x43464fff).into()), - ghost_element_active: Some(rgba(0x53565dff).into()), - ghost_element_selected: Some(rgba(0x53565dff).into()), - ghost_element_disabled: Some(rgba(0x353944ff).into()), - text: Some(rgba(0xcccac2ff).into()), - text_muted: Some(rgba(0x9a9a98ff).into()), - text_placeholder: Some(rgba(0x7b7d7fff).into()), - text_disabled: Some(rgba(0x7b7d7fff).into()), - text_accent: Some(rgba(0x73cffeff).into()), - icon: Some(rgba(0xcccac2ff).into()), - icon_muted: Some(rgba(0x9a9a98ff).into()), - icon_disabled: Some(rgba(0x7b7d7fff).into()), - icon_placeholder: Some(rgba(0x9a9a98ff).into()), - icon_accent: Some(rgba(0x73cffeff).into()), - status_bar_background: Some(rgba(0x464a52ff).into()), - title_bar_background: Some(rgba(0x464a52ff).into()), - toolbar_background: Some(rgba(0x242936ff).into()), - tab_bar_background: Some(rgba(0x353944ff).into()), - tab_inactive_background: Some(rgba(0x353944ff).into()), - tab_active_background: Some(rgba(0x242936ff).into()), - scrollbar_thumb_background: Some(rgba(0xcccac24c).into()), - scrollbar_thumb_hover_background: Some(rgba(0x43464fff).into()), - scrollbar_thumb_border: Some(rgba(0x43464fff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0x323641ff).into()), - editor_foreground: Some(rgba(0xcccac2ff).into()), - editor_background: Some(rgba(0x242936ff).into()), - editor_gutter_background: Some(rgba(0x242936ff).into()), - editor_subheader_background: Some(rgba(0x353944ff).into()), - editor_active_line_background: Some(rgba(0x353944bf).into()), - editor_highlighted_line_background: Some(rgba(0x353944ff).into()), - editor_line_number: Some(rgba(0xcccac259).into()), - editor_active_line_number: Some(rgba(0xcccac2ff).into()), - editor_invisible: Some(rgba(0x787a7cff).into()), - editor_wrap_guide: Some(rgba(0xcccac20d).into()), - editor_active_wrap_guide: Some(rgba(0xcccac21a).into()), - editor_document_highlight_read_background: Some(rgba(0x73cffe1a).into()), - editor_document_highlight_write_background: Some(rgba(0x787a7c66).into()), - terminal_background: Some(rgba(0x242936ff).into()), - terminal_foreground: Some(rgba(0xcccac2ff).into()), - terminal_bright_foreground: Some(rgba(0xcccac2ff).into()), - terminal_dim_foreground: Some(rgba(0x242936ff).into()), - terminal_ansi_black: Some(rgba(0x242936ff).into()), - terminal_ansi_bright_black: Some(rgba(0x67696eff).into()), - terminal_ansi_dim_black: Some(rgba(0xcccac2ff).into()), - terminal_ansi_red: Some(rgba(0xf18779ff).into()), - terminal_ansi_bright_red: Some(rgba(0x83403dff).into()), - terminal_ansi_dim_red: Some(rgba(0xfec4baff).into()), - terminal_ansi_green: Some(rgba(0xd5fe80ff).into()), - terminal_ansi_bright_green: Some(rgba(0x76993dff).into()), - terminal_ansi_dim_green: Some(rgba(0xecffc1ff).into()), - terminal_ansi_yellow: Some(rgba(0xfed073ff).into()), - terminal_ansi_bright_yellow: Some(rgba(0x937238ff).into()), - terminal_ansi_dim_yellow: Some(rgba(0xffe7b9ff).into()), - terminal_ansi_blue: Some(rgba(0x73cffeff).into()), - terminal_ansi_bright_blue: Some(rgba(0x346e8dff).into()), - terminal_ansi_dim_blue: Some(rgba(0xc1e7ffff).into()), - terminal_ansi_magenta: Some(rgba(0x5ccee5ff).into()), - terminal_ansi_bright_magenta: Some(rgba(0x2b6c7bff).into()), - terminal_ansi_dim_magenta: Some(rgba(0xb7e7f2ff).into()), - terminal_ansi_cyan: Some(rgba(0x95e5cbff).into()), - terminal_ansi_bright_cyan: Some(rgba(0x4c806fff).into()), - terminal_ansi_dim_cyan: Some(rgba(0xccf3e5ff).into()), - terminal_ansi_white: Some(rgba(0xcccac2ff).into()), - terminal_ansi_bright_white: Some(rgba(0xcccac2ff).into()), - terminal_ansi_dim_white: Some(rgba(0x898a8aff).into()), - link_text_hover: Some(rgba(0x73cffeff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0xfed073ff).into()), - conflict_background: Some(rgba(0x584018ff).into()), - conflict_border: Some(rgba(0x765a29ff).into()), - created: Some(rgba(0xd5fe80ff).into()), - created_background: Some(rgba(0x426118ff).into()), - created_border: Some(rgba(0x5d7e2cff).into()), - deleted: Some(rgba(0xf18779ff).into()), - deleted_background: Some(rgba(0x481b1cff).into()), - deleted_border: Some(rgba(0x662e2dff).into()), - error: Some(rgba(0xf18779ff).into()), - error_background: Some(rgba(0x481b1cff).into()), - error_border: Some(rgba(0x662e2dff).into()), - hidden: Some(rgba(0x7b7d7fff).into()), - hidden_background: Some(rgba(0x464a52ff).into()), - hidden_border: Some(rgba(0x4d5058ff).into()), - hint: Some(rgba(0x7399a3ff).into()), - hint_background: Some(rgba(0x123a50ff).into()), - hint_border: Some(rgba(0x24556fff).into()), - ignored: Some(rgba(0x9a9a98ff).into()), - ignored_background: Some(rgba(0x464a52ff).into()), - ignored_border: Some(rgba(0x53565dff).into()), - info: Some(rgba(0x73cffeff).into()), - info_background: Some(rgba(0x123a50ff).into()), - info_border: Some(rgba(0x24556fff).into()), - modified: Some(rgba(0xfed073ff).into()), - modified_background: Some(rgba(0x584018ff).into()), - modified_border: Some(rgba(0x765a29ff).into()), - predictive: Some(rgba(0x6d839bff).into()), - predictive_background: Some(rgba(0x426118ff).into()), - predictive_border: Some(rgba(0x5d7e2cff).into()), - renamed: Some(rgba(0x73cffeff).into()), - renamed_background: Some(rgba(0x123a50ff).into()), - renamed_border: Some(rgba(0x24556fff).into()), - success: Some(rgba(0xd5fe80ff).into()), - success_background: Some(rgba(0x426118ff).into()), - success_border: Some(rgba(0x5d7e2cff).into()), - unreachable: Some(rgba(0x9a9a98ff).into()), - unreachable_background: Some(rgba(0x464a52ff).into()), - unreachable_border: Some(rgba(0x53565dff).into()), - warning: Some(rgba(0xfed073ff).into()), - warning_background: Some(rgba(0x584018ff).into()), - warning_border: Some(rgba(0x765a29ff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x73cffeff).into(), - background: rgba(0x73cffeff).into(), - selection: rgba(0x73cffe3d).into(), - }, - PlayerColor { - cursor: rgba(0x5ccee5ff).into(), - background: rgba(0x5ccee5ff).into(), - selection: rgba(0x5ccee53d).into(), - }, - PlayerColor { - cursor: rgba(0xfead66ff).into(), - background: rgba(0xfead66ff).into(), - selection: rgba(0xfead663d).into(), - }, - PlayerColor { - cursor: rgba(0xdebffeff).into(), - background: rgba(0xdebffeff).into(), - selection: rgba(0xdebffe3d).into(), - }, - PlayerColor { - cursor: rgba(0x95e5cbff).into(), - background: rgba(0x95e5cbff).into(), - selection: rgba(0x95e5cb3d).into(), - }, - PlayerColor { - cursor: rgba(0xf18779ff).into(), - background: rgba(0xf18779ff).into(), - selection: rgba(0xf187793d).into(), - }, - PlayerColor { - cursor: rgba(0xfed073ff).into(), - background: rgba(0xfed073ff).into(), - selection: rgba(0xfed0733d).into(), - }, - PlayerColor { - cursor: rgba(0xd5fe80ff).into(), - background: rgba(0xd5fe80ff).into(), - selection: rgba(0xd5fe803d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x73cffeff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0xdfbfffff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0xb8cfe680).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0x9b9b99ff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0xdfbfffff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x73cffeff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0xcccac2ff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x73cffeff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x73cffeff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0xfead66ff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0xffd173ff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x7399a3ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0xffad66ff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x73cffeff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0xfead66ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0xd5fe80ff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0xdfbfffff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0xf29e74ff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0x6d839bff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0xcccac2ff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0xcccac2ff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0x73cffeff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0xb4b3aeff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0xb4b3aeff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0xb4b3aeff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0xb4b3aeff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0xdfbfffff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0xd5ff80ff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0x9b9b99ff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0x95e6cbff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0xffdfb3ff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0xfead66ff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x73cffeff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0xfead66ff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0xcccac2ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0x73d0ffff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0xcccac2ff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0x73cffeff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - ], - } -} diff --git a/crates/theme/src/themes/gruvbox.rs b/crates/theme/src/themes/gruvbox.rs deleted file mode 100644 index 83cab3a89d..0000000000 --- a/crates/theme/src/themes/gruvbox.rs +++ /dev/null @@ -1,2792 +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 gruvbox() -> UserThemeFamily { - UserThemeFamily { - name: "Gruvbox".into(), - author: "Zed Industries".into(), - themes: vec![ - UserTheme { - name: "Gruvbox Dark".into(), - appearance: Appearance::Dark, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0x5b534dff).into()), - border_variant: Some(rgba(0x494340ff).into()), - border_focused: Some(rgba(0x303a36ff).into()), - border_selected: Some(rgba(0x303a36ff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0x544c48ff).into()), - elevated_surface_background: Some(rgba(0x3a3735ff).into()), - surface_background: Some(rgba(0x3a3735ff).into()), - background: Some(rgba(0x4c4642ff).into()), - panel_background: Some(rgba(0x3a3735ff).into()), - element_background: Some(rgba(0x3a3735ff).into()), - element_hover: Some(rgba(0x494340ff).into()), - element_active: Some(rgba(0x5b524cff).into()), - element_selected: Some(rgba(0x5b524cff).into()), - element_disabled: Some(rgba(0x3a3735ff).into()), - drop_target_background: Some(rgba(0xc5b59780).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0x494340ff).into()), - ghost_element_active: Some(rgba(0x5b524cff).into()), - ghost_element_selected: Some(rgba(0x5b524cff).into()), - ghost_element_disabled: Some(rgba(0x3a3735ff).into()), - text: Some(rgba(0xfbf1c7ff).into()), - text_muted: Some(rgba(0xc5b597ff).into()), - text_placeholder: Some(rgba(0x9a8c79ff).into()), - text_disabled: Some(rgba(0x9a8c79ff).into()), - text_accent: Some(rgba(0x83a598ff).into()), - icon: Some(rgba(0xfbf1c7ff).into()), - icon_muted: Some(rgba(0xc5b597ff).into()), - icon_disabled: Some(rgba(0x9a8c79ff).into()), - icon_placeholder: Some(rgba(0xc5b597ff).into()), - icon_accent: Some(rgba(0x83a598ff).into()), - status_bar_background: Some(rgba(0x4c4642ff).into()), - title_bar_background: Some(rgba(0x4c4642ff).into()), - toolbar_background: Some(rgba(0x282828ff).into()), - tab_bar_background: Some(rgba(0x3a3735ff).into()), - tab_inactive_background: Some(rgba(0x3a3735ff).into()), - tab_active_background: Some(rgba(0x282828ff).into()), - scrollbar_thumb_background: Some(rgba(0xfbf1c74c).into()), - scrollbar_thumb_hover_background: Some(rgba(0x494340ff).into()), - scrollbar_thumb_border: Some(rgba(0x494340ff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0x373432ff).into()), - editor_foreground: Some(rgba(0xebdbb2ff).into()), - editor_background: Some(rgba(0x282828ff).into()), - editor_gutter_background: Some(rgba(0x282828ff).into()), - editor_subheader_background: Some(rgba(0x3a3735ff).into()), - editor_active_line_background: Some(rgba(0x3a3735bf).into()), - editor_highlighted_line_background: Some(rgba(0x3a3735ff).into()), - editor_line_number: Some(rgba(0xfbf1c759).into()), - editor_active_line_number: Some(rgba(0xfbf1c7ff).into()), - editor_invisible: Some(rgba(0x928474ff).into()), - editor_wrap_guide: Some(rgba(0xfbf1c70d).into()), - editor_active_wrap_guide: Some(rgba(0xfbf1c71a).into()), - editor_document_highlight_read_background: Some(rgba(0x83a5981a).into()), - editor_document_highlight_write_background: Some(rgba(0x92847466).into()), - terminal_background: Some(rgba(0x282828ff).into()), - terminal_foreground: Some(rgba(0xfbf1c7ff).into()), - terminal_bright_foreground: Some(rgba(0xfbf1c7ff).into()), - terminal_dim_foreground: Some(rgba(0x282828ff).into()), - terminal_ansi_black: Some(rgba(0x282828ff).into()), - terminal_ansi_bright_black: Some(rgba(0x73675eff).into()), - terminal_ansi_dim_black: Some(rgba(0xfbf1c7ff).into()), - terminal_ansi_red: Some(rgba(0xfb4a35ff).into()), - terminal_ansi_bright_red: Some(rgba(0x93211eff).into()), - terminal_ansi_dim_red: Some(rgba(0xffaa95ff).into()), - terminal_ansi_green: Some(rgba(0xb8bb27ff).into()), - terminal_ansi_bright_green: Some(rgba(0x615d1bff).into()), - terminal_ansi_dim_green: Some(rgba(0xe0dc98ff).into()), - terminal_ansi_yellow: Some(rgba(0xf9bd30ff).into()), - terminal_ansi_bright_yellow: Some(rgba(0x91611cff).into()), - terminal_ansi_dim_yellow: Some(rgba(0xffdd9cff).into()), - terminal_ansi_blue: Some(rgba(0x83a598ff).into()), - terminal_ansi_bright_blue: Some(rgba(0x414f4aff).into()), - terminal_ansi_dim_blue: Some(rgba(0xc0d2cbff).into()), - terminal_ansi_magenta: Some(rgba(0xa89984ff).into()), - terminal_ansi_bright_magenta: Some(rgba(0x514a41ff).into()), - terminal_ansi_dim_magenta: Some(rgba(0xd3cbc0ff).into()), - terminal_ansi_cyan: Some(rgba(0x8ec07cff).into()), - terminal_ansi_bright_cyan: Some(rgba(0x45603eff).into()), - terminal_ansi_dim_cyan: Some(rgba(0xc7dfbdff).into()), - terminal_ansi_white: Some(rgba(0xfbf1c7ff).into()), - terminal_ansi_bright_white: Some(rgba(0xfbf1c7ff).into()), - terminal_ansi_dim_white: Some(rgba(0xb1a28aff).into()), - link_text_hover: Some(rgba(0x83a598ff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0xf9bd30ff).into()), - conflict_background: Some(rgba(0x582f10ff).into()), - conflict_border: Some(rgba(0x754916ff).into()), - created: Some(rgba(0xb8bb27ff).into()), - created_background: Some(rgba(0x332b11ff).into()), - created_border: Some(rgba(0x4a4516ff).into()), - deleted: Some(rgba(0xfb4a35ff).into()), - deleted_background: Some(rgba(0x5a0a10ff).into()), - deleted_border: Some(rgba(0x771618ff).into()), - error: Some(rgba(0xfb4a35ff).into()), - error_background: Some(rgba(0x5a0a10ff).into()), - error_border: Some(rgba(0x771618ff).into()), - hidden: Some(rgba(0x9a8c79ff).into()), - hidden_background: Some(rgba(0x4c4642ff).into()), - hidden_border: Some(rgba(0x544c48ff).into()), - hint: Some(rgba(0x8d957eff).into()), - hint_background: Some(rgba(0x1e2321ff).into()), - hint_border: Some(rgba(0x303a36ff).into()), - ignored: Some(rgba(0xc5b597ff).into()), - ignored_background: Some(rgba(0x4c4642ff).into()), - ignored_border: Some(rgba(0x5b534dff).into()), - info: Some(rgba(0x83a598ff).into()), - info_background: Some(rgba(0x1e2321ff).into()), - info_border: Some(rgba(0x303a36ff).into()), - modified: Some(rgba(0xf9bd30ff).into()), - modified_background: Some(rgba(0x582f10ff).into()), - modified_border: Some(rgba(0x754916ff).into()), - predictive: Some(rgba(0x717363ff).into()), - predictive_background: Some(rgba(0x332b11ff).into()), - predictive_border: Some(rgba(0x4a4516ff).into()), - renamed: Some(rgba(0x83a598ff).into()), - renamed_background: Some(rgba(0x1e2321ff).into()), - renamed_border: Some(rgba(0x303a36ff).into()), - success: Some(rgba(0xb8bb27ff).into()), - success_background: Some(rgba(0x332b11ff).into()), - success_border: Some(rgba(0x4a4516ff).into()), - unreachable: Some(rgba(0xc5b597ff).into()), - unreachable_background: Some(rgba(0x4c4642ff).into()), - unreachable_border: Some(rgba(0x5b534dff).into()), - warning: Some(rgba(0xf9bd30ff).into()), - warning_background: Some(rgba(0x582f10ff).into()), - warning_border: Some(rgba(0x754916ff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x83a598ff).into(), - background: rgba(0x83a598ff).into(), - selection: rgba(0x83a5983d).into(), - }, - PlayerColor { - cursor: rgba(0xa89984ff).into(), - background: rgba(0xa89984ff).into(), - selection: rgba(0xa899843d).into(), - }, - PlayerColor { - cursor: rgba(0xfd801bff).into(), - background: rgba(0xfd801bff).into(), - selection: rgba(0xfd801b3d).into(), - }, - PlayerColor { - cursor: rgba(0xd3869bff).into(), - background: rgba(0xd3869bff).into(), - selection: rgba(0xd3869b3d).into(), - }, - PlayerColor { - cursor: rgba(0x8ec07cff).into(), - background: rgba(0x8ec07cff).into(), - selection: rgba(0x8ec07c3d).into(), - }, - PlayerColor { - cursor: rgba(0xfb4a35ff).into(), - background: rgba(0xfb4a35ff).into(), - selection: rgba(0xfb4a353d).into(), - }, - PlayerColor { - cursor: rgba(0xf9bd30ff).into(), - background: rgba(0xf9bd30ff).into(), - selection: rgba(0xf9bd303d).into(), - }, - PlayerColor { - cursor: rgba(0xb8bb27ff).into(), - background: rgba(0xb8bb27ff).into(), - selection: rgba(0xb8bb273d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x83a598ff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0xd3869bff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0xa89984ff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0xc7b798ff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0xfabd2fff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x83a598ff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0x8ec07cff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x83a598ff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x83a598ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0xfe8019ff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0xb8bb26ff).into()), - ..Default::default() - }, - ), - ( - "function.builtin".into(), - UserHighlightStyle { - color: Some(rgba(0xfb4934ff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x8d957eff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0xfb4934ff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x83a598ff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0x8ec07cff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0xd3869bff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0xd3869bff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0x8ec07cff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0x717363ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0xfbf1c7ff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0xebdbb2ff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0xebdbb2ff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0xd5c4a1ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0xa89984ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0xe5d5adff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0xebdbb2ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0xe5d5adff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0xb8bb26ff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0xc7b798ff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0xfe8019ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0xd3869bff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0x8ec07cff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x8ec07cff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0x83a598ff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0xb8bb26ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0xfabd2fff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0x83a598ff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0x83a598ff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Gruvbox Dark Hard".into(), - appearance: Appearance::Dark, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0x5b534dff).into()), - border_variant: Some(rgba(0x494340ff).into()), - border_focused: Some(rgba(0x303a36ff).into()), - border_selected: Some(rgba(0x303a36ff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0x544c48ff).into()), - elevated_surface_background: Some(rgba(0x393634ff).into()), - surface_background: Some(rgba(0x393634ff).into()), - background: Some(rgba(0x4c4642ff).into()), - panel_background: Some(rgba(0x393634ff).into()), - element_background: Some(rgba(0x393634ff).into()), - element_hover: Some(rgba(0x494340ff).into()), - element_active: Some(rgba(0x5b524cff).into()), - element_selected: Some(rgba(0x5b524cff).into()), - element_disabled: Some(rgba(0x393634ff).into()), - drop_target_background: Some(rgba(0xc5b59780).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0x494340ff).into()), - ghost_element_active: Some(rgba(0x5b524cff).into()), - ghost_element_selected: Some(rgba(0x5b524cff).into()), - ghost_element_disabled: Some(rgba(0x393634ff).into()), - text: Some(rgba(0xfbf1c7ff).into()), - text_muted: Some(rgba(0xc5b597ff).into()), - text_placeholder: Some(rgba(0x9a8c79ff).into()), - text_disabled: Some(rgba(0x9a8c79ff).into()), - text_accent: Some(rgba(0x83a598ff).into()), - icon: Some(rgba(0xfbf1c7ff).into()), - icon_muted: Some(rgba(0xc5b597ff).into()), - icon_disabled: Some(rgba(0x9a8c79ff).into()), - icon_placeholder: Some(rgba(0xc5b597ff).into()), - icon_accent: Some(rgba(0x83a598ff).into()), - status_bar_background: Some(rgba(0x4c4642ff).into()), - title_bar_background: Some(rgba(0x4c4642ff).into()), - toolbar_background: Some(rgba(0x1d2021ff).into()), - tab_bar_background: Some(rgba(0x393634ff).into()), - tab_inactive_background: Some(rgba(0x393634ff).into()), - tab_active_background: Some(rgba(0x1d2021ff).into()), - scrollbar_thumb_background: Some(rgba(0xfbf1c74c).into()), - scrollbar_thumb_hover_background: Some(rgba(0x494340ff).into()), - scrollbar_thumb_border: Some(rgba(0x494340ff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0x343130ff).into()), - editor_foreground: Some(rgba(0xebdbb2ff).into()), - editor_background: Some(rgba(0x1d2021ff).into()), - editor_gutter_background: Some(rgba(0x1d2021ff).into()), - editor_subheader_background: Some(rgba(0x393634ff).into()), - editor_active_line_background: Some(rgba(0x393634bf).into()), - editor_highlighted_line_background: Some(rgba(0x393634ff).into()), - editor_line_number: Some(rgba(0xfbf1c759).into()), - editor_active_line_number: Some(rgba(0xfbf1c7ff).into()), - editor_invisible: Some(rgba(0x928474ff).into()), - editor_wrap_guide: Some(rgba(0xfbf1c70d).into()), - editor_active_wrap_guide: Some(rgba(0xfbf1c71a).into()), - editor_document_highlight_read_background: Some(rgba(0x83a5981a).into()), - editor_document_highlight_write_background: Some(rgba(0x92847466).into()), - terminal_background: Some(rgba(0x1d2021ff).into()), - terminal_foreground: Some(rgba(0xfbf1c7ff).into()), - terminal_bright_foreground: Some(rgba(0xfbf1c7ff).into()), - terminal_dim_foreground: Some(rgba(0x1d2021ff).into()), - terminal_ansi_black: Some(rgba(0x1d2021ff).into()), - terminal_ansi_bright_black: Some(rgba(0x73675eff).into()), - terminal_ansi_dim_black: Some(rgba(0xfbf1c7ff).into()), - terminal_ansi_red: Some(rgba(0xfb4a35ff).into()), - terminal_ansi_bright_red: Some(rgba(0x93211eff).into()), - terminal_ansi_dim_red: Some(rgba(0xffaa95ff).into()), - terminal_ansi_green: Some(rgba(0xb8bb27ff).into()), - terminal_ansi_bright_green: Some(rgba(0x615d1bff).into()), - terminal_ansi_dim_green: Some(rgba(0xe0dc98ff).into()), - terminal_ansi_yellow: Some(rgba(0xf9bd30ff).into()), - terminal_ansi_bright_yellow: Some(rgba(0x91611cff).into()), - terminal_ansi_dim_yellow: Some(rgba(0xffdd9cff).into()), - terminal_ansi_blue: Some(rgba(0x83a598ff).into()), - terminal_ansi_bright_blue: Some(rgba(0x414f4aff).into()), - terminal_ansi_dim_blue: Some(rgba(0xc0d2cbff).into()), - terminal_ansi_magenta: Some(rgba(0xa89984ff).into()), - terminal_ansi_bright_magenta: Some(rgba(0x514a41ff).into()), - terminal_ansi_dim_magenta: Some(rgba(0xd3cbc0ff).into()), - terminal_ansi_cyan: Some(rgba(0x8ec07cff).into()), - terminal_ansi_bright_cyan: Some(rgba(0x45603eff).into()), - terminal_ansi_dim_cyan: Some(rgba(0xc7dfbdff).into()), - terminal_ansi_white: Some(rgba(0xfbf1c7ff).into()), - terminal_ansi_bright_white: Some(rgba(0xfbf1c7ff).into()), - terminal_ansi_dim_white: Some(rgba(0xb1a28aff).into()), - link_text_hover: Some(rgba(0x83a598ff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0xf9bd30ff).into()), - conflict_background: Some(rgba(0x582f10ff).into()), - conflict_border: Some(rgba(0x754916ff).into()), - created: Some(rgba(0xb8bb27ff).into()), - created_background: Some(rgba(0x332b11ff).into()), - created_border: Some(rgba(0x4a4516ff).into()), - deleted: Some(rgba(0xfb4a35ff).into()), - deleted_background: Some(rgba(0x5a0a10ff).into()), - deleted_border: Some(rgba(0x771618ff).into()), - error: Some(rgba(0xfb4a35ff).into()), - error_background: Some(rgba(0x5a0a10ff).into()), - error_border: Some(rgba(0x771618ff).into()), - hidden: Some(rgba(0x9a8c79ff).into()), - hidden_background: Some(rgba(0x4c4642ff).into()), - hidden_border: Some(rgba(0x544c48ff).into()), - hint: Some(rgba(0x8d957eff).into()), - hint_background: Some(rgba(0x1e2321ff).into()), - hint_border: Some(rgba(0x303a36ff).into()), - ignored: Some(rgba(0xc5b597ff).into()), - ignored_background: Some(rgba(0x4c4642ff).into()), - ignored_border: Some(rgba(0x5b534dff).into()), - info: Some(rgba(0x83a598ff).into()), - info_background: Some(rgba(0x1e2321ff).into()), - info_border: Some(rgba(0x303a36ff).into()), - modified: Some(rgba(0xf9bd30ff).into()), - modified_background: Some(rgba(0x582f10ff).into()), - modified_border: Some(rgba(0x754916ff).into()), - predictive: Some(rgba(0x717363ff).into()), - predictive_background: Some(rgba(0x332b11ff).into()), - predictive_border: Some(rgba(0x4a4516ff).into()), - renamed: Some(rgba(0x83a598ff).into()), - renamed_background: Some(rgba(0x1e2321ff).into()), - renamed_border: Some(rgba(0x303a36ff).into()), - success: Some(rgba(0xb8bb27ff).into()), - success_background: Some(rgba(0x332b11ff).into()), - success_border: Some(rgba(0x4a4516ff).into()), - unreachable: Some(rgba(0xc5b597ff).into()), - unreachable_background: Some(rgba(0x4c4642ff).into()), - unreachable_border: Some(rgba(0x5b534dff).into()), - warning: Some(rgba(0xf9bd30ff).into()), - warning_background: Some(rgba(0x582f10ff).into()), - warning_border: Some(rgba(0x754916ff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x83a598ff).into(), - background: rgba(0x83a598ff).into(), - selection: rgba(0x83a5983d).into(), - }, - PlayerColor { - cursor: rgba(0xa89984ff).into(), - background: rgba(0xa89984ff).into(), - selection: rgba(0xa899843d).into(), - }, - PlayerColor { - cursor: rgba(0xfd801bff).into(), - background: rgba(0xfd801bff).into(), - selection: rgba(0xfd801b3d).into(), - }, - PlayerColor { - cursor: rgba(0xd3869bff).into(), - background: rgba(0xd3869bff).into(), - selection: rgba(0xd3869b3d).into(), - }, - PlayerColor { - cursor: rgba(0x8ec07cff).into(), - background: rgba(0x8ec07cff).into(), - selection: rgba(0x8ec07c3d).into(), - }, - PlayerColor { - cursor: rgba(0xfb4a35ff).into(), - background: rgba(0xfb4a35ff).into(), - selection: rgba(0xfb4a353d).into(), - }, - PlayerColor { - cursor: rgba(0xf9bd30ff).into(), - background: rgba(0xf9bd30ff).into(), - selection: rgba(0xf9bd303d).into(), - }, - PlayerColor { - cursor: rgba(0xb8bb27ff).into(), - background: rgba(0xb8bb27ff).into(), - selection: rgba(0xb8bb273d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x83a598ff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0xd3869bff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0xa89984ff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0xc7b798ff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0xfabd2fff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x83a598ff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0x8ec07cff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x83a598ff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x83a598ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0xfe8019ff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0xb8bb26ff).into()), - ..Default::default() - }, - ), - ( - "function.builtin".into(), - UserHighlightStyle { - color: Some(rgba(0xfb4934ff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x8d957eff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0xfb4934ff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x83a598ff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0x8ec07cff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0xd3869bff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0xd3869bff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0x8ec07cff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0x717363ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0xfbf1c7ff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0xebdbb2ff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0xebdbb2ff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0xd5c4a1ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0xa89984ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0xe5d5adff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0xebdbb2ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0xe5d5adff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0xb8bb26ff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0xc7b798ff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0xfe8019ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0xd3869bff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0x8ec07cff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x8ec07cff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0x83a598ff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0xb8bb26ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0xfabd2fff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0x83a598ff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0x83a598ff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Gruvbox Dark Soft".into(), - appearance: Appearance::Dark, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0x5b534dff).into()), - border_variant: Some(rgba(0x494340ff).into()), - border_focused: Some(rgba(0x303a36ff).into()), - border_selected: Some(rgba(0x303a36ff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0x544c48ff).into()), - elevated_surface_background: Some(rgba(0x3b3735ff).into()), - surface_background: Some(rgba(0x3b3735ff).into()), - background: Some(rgba(0x4c4642ff).into()), - panel_background: Some(rgba(0x3b3735ff).into()), - element_background: Some(rgba(0x3b3735ff).into()), - element_hover: Some(rgba(0x494340ff).into()), - element_active: Some(rgba(0x5b524cff).into()), - element_selected: Some(rgba(0x5b524cff).into()), - element_disabled: Some(rgba(0x3b3735ff).into()), - drop_target_background: Some(rgba(0xc5b59780).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0x494340ff).into()), - ghost_element_active: Some(rgba(0x5b524cff).into()), - ghost_element_selected: Some(rgba(0x5b524cff).into()), - ghost_element_disabled: Some(rgba(0x3b3735ff).into()), - text: Some(rgba(0xfbf1c7ff).into()), - text_muted: Some(rgba(0xc5b597ff).into()), - text_placeholder: Some(rgba(0x9a8c79ff).into()), - text_disabled: Some(rgba(0x9a8c79ff).into()), - text_accent: Some(rgba(0x83a598ff).into()), - icon: Some(rgba(0xfbf1c7ff).into()), - icon_muted: Some(rgba(0xc5b597ff).into()), - icon_disabled: Some(rgba(0x9a8c79ff).into()), - icon_placeholder: Some(rgba(0xc5b597ff).into()), - icon_accent: Some(rgba(0x83a598ff).into()), - status_bar_background: Some(rgba(0x4c4642ff).into()), - title_bar_background: Some(rgba(0x4c4642ff).into()), - toolbar_background: Some(rgba(0x32302fff).into()), - tab_bar_background: Some(rgba(0x3b3735ff).into()), - tab_inactive_background: Some(rgba(0x3b3735ff).into()), - tab_active_background: Some(rgba(0x32302fff).into()), - scrollbar_thumb_background: Some(rgba(0xfbf1c74c).into()), - scrollbar_thumb_hover_background: Some(rgba(0x494340ff).into()), - scrollbar_thumb_border: Some(rgba(0x494340ff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0x393634ff).into()), - editor_foreground: Some(rgba(0xebdbb2ff).into()), - editor_background: Some(rgba(0x32302fff).into()), - editor_gutter_background: Some(rgba(0x32302fff).into()), - editor_subheader_background: Some(rgba(0x3b3735ff).into()), - editor_active_line_background: Some(rgba(0x3b3735bf).into()), - editor_highlighted_line_background: Some(rgba(0x3b3735ff).into()), - editor_line_number: Some(rgba(0xfbf1c759).into()), - editor_active_line_number: Some(rgba(0xfbf1c7ff).into()), - editor_invisible: Some(rgba(0x928474ff).into()), - editor_wrap_guide: Some(rgba(0xfbf1c70d).into()), - editor_active_wrap_guide: Some(rgba(0xfbf1c71a).into()), - editor_document_highlight_read_background: Some(rgba(0x83a5981a).into()), - editor_document_highlight_write_background: Some(rgba(0x92847466).into()), - terminal_background: Some(rgba(0x32302fff).into()), - terminal_foreground: Some(rgba(0xfbf1c7ff).into()), - terminal_bright_foreground: Some(rgba(0xfbf1c7ff).into()), - terminal_dim_foreground: Some(rgba(0x32302fff).into()), - terminal_ansi_black: Some(rgba(0x32302fff).into()), - terminal_ansi_bright_black: Some(rgba(0x73675eff).into()), - terminal_ansi_dim_black: Some(rgba(0xfbf1c7ff).into()), - terminal_ansi_red: Some(rgba(0xfb4a35ff).into()), - terminal_ansi_bright_red: Some(rgba(0x93211eff).into()), - terminal_ansi_dim_red: Some(rgba(0xffaa95ff).into()), - terminal_ansi_green: Some(rgba(0xb8bb27ff).into()), - terminal_ansi_bright_green: Some(rgba(0x615d1bff).into()), - terminal_ansi_dim_green: Some(rgba(0xe0dc98ff).into()), - terminal_ansi_yellow: Some(rgba(0xf9bd30ff).into()), - terminal_ansi_bright_yellow: Some(rgba(0x91611cff).into()), - terminal_ansi_dim_yellow: Some(rgba(0xffdd9cff).into()), - terminal_ansi_blue: Some(rgba(0x83a598ff).into()), - terminal_ansi_bright_blue: Some(rgba(0x414f4aff).into()), - terminal_ansi_dim_blue: Some(rgba(0xc0d2cbff).into()), - terminal_ansi_magenta: Some(rgba(0xa89984ff).into()), - terminal_ansi_bright_magenta: Some(rgba(0x514a41ff).into()), - terminal_ansi_dim_magenta: Some(rgba(0xd3cbc0ff).into()), - terminal_ansi_cyan: Some(rgba(0x8ec07cff).into()), - terminal_ansi_bright_cyan: Some(rgba(0x45603eff).into()), - terminal_ansi_dim_cyan: Some(rgba(0xc7dfbdff).into()), - terminal_ansi_white: Some(rgba(0xfbf1c7ff).into()), - terminal_ansi_bright_white: Some(rgba(0xfbf1c7ff).into()), - terminal_ansi_dim_white: Some(rgba(0xb1a28aff).into()), - link_text_hover: Some(rgba(0x83a598ff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0xf9bd30ff).into()), - conflict_background: Some(rgba(0x582f10ff).into()), - conflict_border: Some(rgba(0x754916ff).into()), - created: Some(rgba(0xb8bb27ff).into()), - created_background: Some(rgba(0x332b11ff).into()), - created_border: Some(rgba(0x4a4516ff).into()), - deleted: Some(rgba(0xfb4a35ff).into()), - deleted_background: Some(rgba(0x5a0a10ff).into()), - deleted_border: Some(rgba(0x771618ff).into()), - error: Some(rgba(0xfb4a35ff).into()), - error_background: Some(rgba(0x5a0a10ff).into()), - error_border: Some(rgba(0x771618ff).into()), - hidden: Some(rgba(0x9a8c79ff).into()), - hidden_background: Some(rgba(0x4c4642ff).into()), - hidden_border: Some(rgba(0x544c48ff).into()), - hint: Some(rgba(0x8d957eff).into()), - hint_background: Some(rgba(0x1e2321ff).into()), - hint_border: Some(rgba(0x303a36ff).into()), - ignored: Some(rgba(0xc5b597ff).into()), - ignored_background: Some(rgba(0x4c4642ff).into()), - ignored_border: Some(rgba(0x5b534dff).into()), - info: Some(rgba(0x83a598ff).into()), - info_background: Some(rgba(0x1e2321ff).into()), - info_border: Some(rgba(0x303a36ff).into()), - modified: Some(rgba(0xf9bd30ff).into()), - modified_background: Some(rgba(0x582f10ff).into()), - modified_border: Some(rgba(0x754916ff).into()), - predictive: Some(rgba(0x717363ff).into()), - predictive_background: Some(rgba(0x332b11ff).into()), - predictive_border: Some(rgba(0x4a4516ff).into()), - renamed: Some(rgba(0x83a598ff).into()), - renamed_background: Some(rgba(0x1e2321ff).into()), - renamed_border: Some(rgba(0x303a36ff).into()), - success: Some(rgba(0xb8bb27ff).into()), - success_background: Some(rgba(0x332b11ff).into()), - success_border: Some(rgba(0x4a4516ff).into()), - unreachable: Some(rgba(0xc5b597ff).into()), - unreachable_background: Some(rgba(0x4c4642ff).into()), - unreachable_border: Some(rgba(0x5b534dff).into()), - warning: Some(rgba(0xf9bd30ff).into()), - warning_background: Some(rgba(0x582f10ff).into()), - warning_border: Some(rgba(0x754916ff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x83a598ff).into(), - background: rgba(0x83a598ff).into(), - selection: rgba(0x83a5983d).into(), - }, - PlayerColor { - cursor: rgba(0xa89984ff).into(), - background: rgba(0xa89984ff).into(), - selection: rgba(0xa899843d).into(), - }, - PlayerColor { - cursor: rgba(0xfd801bff).into(), - background: rgba(0xfd801bff).into(), - selection: rgba(0xfd801b3d).into(), - }, - PlayerColor { - cursor: rgba(0xd3869bff).into(), - background: rgba(0xd3869bff).into(), - selection: rgba(0xd3869b3d).into(), - }, - PlayerColor { - cursor: rgba(0x8ec07cff).into(), - background: rgba(0x8ec07cff).into(), - selection: rgba(0x8ec07c3d).into(), - }, - PlayerColor { - cursor: rgba(0xfb4a35ff).into(), - background: rgba(0xfb4a35ff).into(), - selection: rgba(0xfb4a353d).into(), - }, - PlayerColor { - cursor: rgba(0xf9bd30ff).into(), - background: rgba(0xf9bd30ff).into(), - selection: rgba(0xf9bd303d).into(), - }, - PlayerColor { - cursor: rgba(0xb8bb27ff).into(), - background: rgba(0xb8bb27ff).into(), - selection: rgba(0xb8bb273d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x83a598ff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0xd3869bff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0xa89984ff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0xc7b798ff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0xfabd2fff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x83a598ff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0x8ec07cff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x83a598ff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x83a598ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0xfe8019ff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0xb8bb26ff).into()), - ..Default::default() - }, - ), - ( - "function.builtin".into(), - UserHighlightStyle { - color: Some(rgba(0xfb4934ff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x8d957eff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0xfb4934ff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x83a598ff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0x8ec07cff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0xd3869bff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0xd3869bff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0x8ec07cff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0x717363ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0xfbf1c7ff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0xebdbb2ff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0xebdbb2ff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0xd5c4a1ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0xa89984ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0xe5d5adff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0xebdbb2ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0xe5d5adff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0xb8bb26ff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0xc7b798ff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0xfe8019ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0xd3869bff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0x8ec07cff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x8ec07cff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0x83a598ff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0xb8bb26ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0xfabd2fff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0x83a598ff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0x83a598ff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Gruvbox Light".into(), - appearance: Appearance::Light, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0xc9b99aff).into()), - border_variant: Some(rgba(0xddcca7ff).into()), - border_focused: Some(rgba(0xaec6cdff).into()), - border_selected: Some(rgba(0xaec6cdff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0xd1c09eff).into()), - elevated_surface_background: Some(rgba(0xecddb4ff).into()), - surface_background: Some(rgba(0xecddb4ff).into()), - background: Some(rgba(0xd9c8a4ff).into()), - panel_background: Some(rgba(0xecddb4ff).into()), - element_background: Some(rgba(0xecddb4ff).into()), - element_hover: Some(rgba(0xddcca7ff).into()), - element_active: Some(rgba(0xc9b99aff).into()), - element_selected: Some(rgba(0xc9b99aff).into()), - element_disabled: Some(rgba(0xecddb4ff).into()), - drop_target_background: Some(rgba(0x5f565080).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0xddcca7ff).into()), - ghost_element_active: Some(rgba(0xc9b99aff).into()), - ghost_element_selected: Some(rgba(0xc9b99aff).into()), - ghost_element_disabled: Some(rgba(0xecddb4ff).into()), - text: Some(rgba(0x282828ff).into()), - text_muted: Some(rgba(0x5f5650ff).into()), - text_placeholder: Some(rgba(0x8a7c6fff).into()), - text_disabled: Some(rgba(0x8a7c6fff).into()), - text_accent: Some(rgba(0x0b6678ff).into()), - icon: Some(rgba(0x282828ff).into()), - icon_muted: Some(rgba(0x5f5650ff).into()), - icon_disabled: Some(rgba(0x8a7c6fff).into()), - icon_placeholder: Some(rgba(0x5f5650ff).into()), - icon_accent: Some(rgba(0x0b6678ff).into()), - status_bar_background: Some(rgba(0xd9c8a4ff).into()), - title_bar_background: Some(rgba(0xd9c8a4ff).into()), - toolbar_background: Some(rgba(0xfbf1c7ff).into()), - tab_bar_background: Some(rgba(0xecddb4ff).into()), - tab_inactive_background: Some(rgba(0xecddb4ff).into()), - tab_active_background: Some(rgba(0xfbf1c7ff).into()), - scrollbar_thumb_background: Some(rgba(0x2828284c).into()), - scrollbar_thumb_hover_background: Some(rgba(0xddcca7ff).into()), - scrollbar_thumb_border: Some(rgba(0xddcca7ff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0xefe1b8ff).into()), - editor_foreground: Some(rgba(0x282828ff).into()), - editor_background: Some(rgba(0xfbf1c7ff).into()), - editor_gutter_background: Some(rgba(0xfbf1c7ff).into()), - editor_subheader_background: Some(rgba(0xecddb4ff).into()), - editor_active_line_background: Some(rgba(0xecddb4bf).into()), - editor_highlighted_line_background: Some(rgba(0xecddb4ff).into()), - editor_line_number: Some(rgba(0x28282859).into()), - editor_active_line_number: Some(rgba(0x282828ff).into()), - editor_invisible: Some(rgba(0x928474ff).into()), - editor_wrap_guide: Some(rgba(0x2828280d).into()), - editor_active_wrap_guide: Some(rgba(0x2828281a).into()), - editor_document_highlight_read_background: Some(rgba(0x0b66781a).into()), - editor_document_highlight_write_background: Some(rgba(0x92847466).into()), - terminal_background: Some(rgba(0xfbf1c7ff).into()), - terminal_foreground: Some(rgba(0x282828ff).into()), - terminal_bright_foreground: Some(rgba(0x282828ff).into()), - terminal_dim_foreground: Some(rgba(0xfbf1c7ff).into()), - terminal_ansi_black: Some(rgba(0xfbf1c7ff).into()), - terminal_ansi_bright_black: Some(rgba(0xb1a28aff).into()), - terminal_ansi_dim_black: Some(rgba(0x282828ff).into()), - terminal_ansi_red: Some(rgba(0x9d0408ff).into()), - terminal_ansi_bright_red: Some(rgba(0xdc8c7bff).into()), - terminal_ansi_dim_red: Some(rgba(0x4f1207ff).into()), - terminal_ansi_green: Some(rgba(0x797410ff).into()), - terminal_ansi_bright_green: Some(rgba(0xbfb787ff).into()), - terminal_ansi_dim_green: Some(rgba(0x3e3a11ff).into()), - terminal_ansi_yellow: Some(rgba(0xb57616ff).into()), - terminal_ansi_bright_yellow: Some(rgba(0xe2b88bff).into()), - terminal_ansi_dim_yellow: Some(rgba(0x5c3b13ff).into()), - terminal_ansi_blue: Some(rgba(0x0b6678ff).into()), - terminal_ansi_bright_blue: Some(rgba(0x8fb0baff).into()), - terminal_ansi_dim_blue: Some(rgba(0x14343cff).into()), - terminal_ansi_magenta: Some(rgba(0x7c6f64ff).into()), - terminal_ansi_bright_magenta: Some(rgba(0xbcb5afff).into()), - terminal_ansi_dim_magenta: Some(rgba(0x3e3833ff).into()), - terminal_ansi_cyan: Some(rgba(0x437b59ff).into()), - terminal_ansi_bright_cyan: Some(rgba(0x9fbca8ff).into()), - terminal_ansi_dim_cyan: Some(rgba(0x253e2eff).into()), - terminal_ansi_white: Some(rgba(0x282828ff).into()), - terminal_ansi_bright_white: Some(rgba(0x282828ff).into()), - terminal_ansi_dim_white: Some(rgba(0x73675eff).into()), - link_text_hover: Some(rgba(0x0b6678ff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0xb57616ff).into()), - conflict_background: Some(rgba(0xf5e2d0ff).into()), - conflict_border: Some(rgba(0xebccabff).into()), - created: Some(rgba(0x797410ff).into()), - created_background: Some(rgba(0xe5e1ceff).into()), - created_border: Some(rgba(0xd1cba8ff).into()), - deleted: Some(rgba(0x9d0408ff).into()), - deleted_background: Some(rgba(0xf4d1c9ff).into()), - deleted_border: Some(rgba(0xe8ac9eff).into()), - error: Some(rgba(0x9d0408ff).into()), - error_background: Some(rgba(0xf4d1c9ff).into()), - error_border: Some(rgba(0xe8ac9eff).into()), - hidden: Some(rgba(0x8a7c6fff).into()), - hidden_background: Some(rgba(0xd9c8a4ff).into()), - hidden_border: Some(rgba(0xd1c09eff).into()), - hint: Some(rgba(0x677562ff).into()), - hint_background: Some(rgba(0xd2dee2ff).into()), - hint_border: Some(rgba(0xaec6cdff).into()), - ignored: Some(rgba(0x5f5650ff).into()), - ignored_background: Some(rgba(0xd9c8a4ff).into()), - ignored_border: Some(rgba(0xc9b99aff).into()), - info: Some(rgba(0x0b6678ff).into()), - info_background: Some(rgba(0xd2dee2ff).into()), - info_border: Some(rgba(0xaec6cdff).into()), - modified: Some(rgba(0xb57616ff).into()), - modified_background: Some(rgba(0xf5e2d0ff).into()), - modified_border: Some(rgba(0xebccabff).into()), - predictive: Some(rgba(0x7d9881ff).into()), - predictive_background: Some(rgba(0xe5e1ceff).into()), - predictive_border: Some(rgba(0xd1cba8ff).into()), - renamed: Some(rgba(0x0b6678ff).into()), - renamed_background: Some(rgba(0xd2dee2ff).into()), - renamed_border: Some(rgba(0xaec6cdff).into()), - success: Some(rgba(0x797410ff).into()), - success_background: Some(rgba(0xe5e1ceff).into()), - success_border: Some(rgba(0xd1cba8ff).into()), - unreachable: Some(rgba(0x5f5650ff).into()), - unreachable_background: Some(rgba(0xd9c8a4ff).into()), - unreachable_border: Some(rgba(0xc9b99aff).into()), - warning: Some(rgba(0xb57616ff).into()), - warning_background: Some(rgba(0xf5e2d0ff).into()), - warning_border: Some(rgba(0xebccabff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x0b6678ff).into(), - background: rgba(0x0b6678ff).into(), - selection: rgba(0x0b66783d).into(), - }, - PlayerColor { - cursor: rgba(0x7c6f64ff).into(), - background: rgba(0x7c6f64ff).into(), - selection: rgba(0x7c6f643d).into(), - }, - PlayerColor { - cursor: rgba(0xaf3b05ff).into(), - background: rgba(0xaf3b05ff).into(), - selection: rgba(0xaf3b053d).into(), - }, - PlayerColor { - cursor: rgba(0x8f4071ff).into(), - background: rgba(0x8f4071ff).into(), - selection: rgba(0x8f40713d).into(), - }, - PlayerColor { - cursor: rgba(0x437b59ff).into(), - background: rgba(0x437b59ff).into(), - selection: rgba(0x437b593d).into(), - }, - PlayerColor { - cursor: rgba(0x9d0408ff).into(), - background: rgba(0x9d0408ff).into(), - selection: rgba(0x9d04083d).into(), - }, - PlayerColor { - cursor: rgba(0xb57616ff).into(), - background: rgba(0xb57616ff).into(), - selection: rgba(0xb576163d).into(), - }, - PlayerColor { - cursor: rgba(0x797410ff).into(), - background: rgba(0x797410ff).into(), - selection: rgba(0x7974103d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x0b6678ff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0x8f3f71ff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0x7c6f64ff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0x5d544eff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0xb57614ff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x0b6678ff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0x427b58ff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x0b6678ff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x0b6678ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0xaf3a03ff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0x79740eff).into()), - ..Default::default() - }, - ), - ( - "function.builtin".into(), - UserHighlightStyle { - color: Some(rgba(0x9d0006ff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x677562ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0x9d0006ff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x0b6678ff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0x427b58ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0x8f3f71ff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0x8f3f71ff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0x427b58ff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0x7d9881ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0x282828ff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0x282828ff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0x282828ff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0x3c3836ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0x665c54ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0x413d3aff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0x282828ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0x413d3aff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0x79740eff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0x5d544eff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0xaf3a03ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0x8f3f71ff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0x427b58ff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x427b58ff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0x076678ff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0x79740eff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0xb57614ff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0x076678ff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0x0b6678ff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Gruvbox Light Hard".into(), - appearance: Appearance::Light, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0xc9b99aff).into()), - border_variant: Some(rgba(0xddcca7ff).into()), - border_focused: Some(rgba(0xaec6cdff).into()), - border_selected: Some(rgba(0xaec6cdff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0xd1c09eff).into()), - elevated_surface_background: Some(rgba(0xecddb5ff).into()), - surface_background: Some(rgba(0xecddb5ff).into()), - background: Some(rgba(0xd9c8a4ff).into()), - panel_background: Some(rgba(0xecddb5ff).into()), - element_background: Some(rgba(0xecddb5ff).into()), - element_hover: Some(rgba(0xddcca7ff).into()), - element_active: Some(rgba(0xc9b99aff).into()), - element_selected: Some(rgba(0xc9b99aff).into()), - element_disabled: Some(rgba(0xecddb5ff).into()), - drop_target_background: Some(rgba(0x5f565080).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0xddcca7ff).into()), - ghost_element_active: Some(rgba(0xc9b99aff).into()), - ghost_element_selected: Some(rgba(0xc9b99aff).into()), - ghost_element_disabled: Some(rgba(0xecddb5ff).into()), - text: Some(rgba(0x282828ff).into()), - text_muted: Some(rgba(0x5f5650ff).into()), - text_placeholder: Some(rgba(0x8a7c6fff).into()), - text_disabled: Some(rgba(0x8a7c6fff).into()), - text_accent: Some(rgba(0x0b6678ff).into()), - icon: Some(rgba(0x282828ff).into()), - icon_muted: Some(rgba(0x5f5650ff).into()), - icon_disabled: Some(rgba(0x8a7c6fff).into()), - icon_placeholder: Some(rgba(0x5f5650ff).into()), - icon_accent: Some(rgba(0x0b6678ff).into()), - status_bar_background: Some(rgba(0xd9c8a4ff).into()), - title_bar_background: Some(rgba(0xd9c8a4ff).into()), - toolbar_background: Some(rgba(0xf9f5d7ff).into()), - tab_bar_background: Some(rgba(0xecddb5ff).into()), - tab_inactive_background: Some(rgba(0xecddb5ff).into()), - tab_active_background: Some(rgba(0xf9f5d7ff).into()), - scrollbar_thumb_background: Some(rgba(0x2828284c).into()), - scrollbar_thumb_hover_background: Some(rgba(0xddcca7ff).into()), - scrollbar_thumb_border: Some(rgba(0xddcca7ff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0xefe2bcff).into()), - editor_foreground: Some(rgba(0x282828ff).into()), - editor_background: Some(rgba(0xf9f5d7ff).into()), - editor_gutter_background: Some(rgba(0xf9f5d7ff).into()), - editor_subheader_background: Some(rgba(0xecddb5ff).into()), - editor_active_line_background: Some(rgba(0xecddb5bf).into()), - editor_highlighted_line_background: Some(rgba(0xecddb5ff).into()), - editor_line_number: Some(rgba(0x28282859).into()), - editor_active_line_number: Some(rgba(0x282828ff).into()), - editor_invisible: Some(rgba(0x928474ff).into()), - editor_wrap_guide: Some(rgba(0x2828280d).into()), - editor_active_wrap_guide: Some(rgba(0x2828281a).into()), - editor_document_highlight_read_background: Some(rgba(0x0b66781a).into()), - editor_document_highlight_write_background: Some(rgba(0x92847466).into()), - terminal_background: Some(rgba(0xf9f5d7ff).into()), - terminal_foreground: Some(rgba(0x282828ff).into()), - terminal_bright_foreground: Some(rgba(0x282828ff).into()), - terminal_dim_foreground: Some(rgba(0xf9f5d7ff).into()), - terminal_ansi_black: Some(rgba(0xf9f5d7ff).into()), - terminal_ansi_bright_black: Some(rgba(0xb1a28aff).into()), - terminal_ansi_dim_black: Some(rgba(0x282828ff).into()), - terminal_ansi_red: Some(rgba(0x9d0408ff).into()), - terminal_ansi_bright_red: Some(rgba(0xdc8c7bff).into()), - terminal_ansi_dim_red: Some(rgba(0x4f1207ff).into()), - terminal_ansi_green: Some(rgba(0x797410ff).into()), - terminal_ansi_bright_green: Some(rgba(0xbfb787ff).into()), - terminal_ansi_dim_green: Some(rgba(0x3e3a11ff).into()), - terminal_ansi_yellow: Some(rgba(0xb57616ff).into()), - terminal_ansi_bright_yellow: Some(rgba(0xe2b88bff).into()), - terminal_ansi_dim_yellow: Some(rgba(0x5c3b13ff).into()), - terminal_ansi_blue: Some(rgba(0x0b6678ff).into()), - terminal_ansi_bright_blue: Some(rgba(0x8fb0baff).into()), - terminal_ansi_dim_blue: Some(rgba(0x14343cff).into()), - terminal_ansi_magenta: Some(rgba(0x7c6f64ff).into()), - terminal_ansi_bright_magenta: Some(rgba(0xbcb5afff).into()), - terminal_ansi_dim_magenta: Some(rgba(0x3e3833ff).into()), - terminal_ansi_cyan: Some(rgba(0x437b59ff).into()), - terminal_ansi_bright_cyan: Some(rgba(0x9fbca8ff).into()), - terminal_ansi_dim_cyan: Some(rgba(0x253e2eff).into()), - terminal_ansi_white: Some(rgba(0x282828ff).into()), - terminal_ansi_bright_white: Some(rgba(0x282828ff).into()), - terminal_ansi_dim_white: Some(rgba(0x73675eff).into()), - link_text_hover: Some(rgba(0x0b6678ff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0xb57616ff).into()), - conflict_background: Some(rgba(0xf5e2d0ff).into()), - conflict_border: Some(rgba(0xebccabff).into()), - created: Some(rgba(0x797410ff).into()), - created_background: Some(rgba(0xe5e1ceff).into()), - created_border: Some(rgba(0xd1cba8ff).into()), - deleted: Some(rgba(0x9d0408ff).into()), - deleted_background: Some(rgba(0xf4d1c9ff).into()), - deleted_border: Some(rgba(0xe8ac9eff).into()), - error: Some(rgba(0x9d0408ff).into()), - error_background: Some(rgba(0xf4d1c9ff).into()), - error_border: Some(rgba(0xe8ac9eff).into()), - hidden: Some(rgba(0x8a7c6fff).into()), - hidden_background: Some(rgba(0xd9c8a4ff).into()), - hidden_border: Some(rgba(0xd1c09eff).into()), - hint: Some(rgba(0x677562ff).into()), - hint_background: Some(rgba(0xd2dee2ff).into()), - hint_border: Some(rgba(0xaec6cdff).into()), - ignored: Some(rgba(0x5f5650ff).into()), - ignored_background: Some(rgba(0xd9c8a4ff).into()), - ignored_border: Some(rgba(0xc9b99aff).into()), - info: Some(rgba(0x0b6678ff).into()), - info_background: Some(rgba(0xd2dee2ff).into()), - info_border: Some(rgba(0xaec6cdff).into()), - modified: Some(rgba(0xb57616ff).into()), - modified_background: Some(rgba(0xf5e2d0ff).into()), - modified_border: Some(rgba(0xebccabff).into()), - predictive: Some(rgba(0x7d9881ff).into()), - predictive_background: Some(rgba(0xe5e1ceff).into()), - predictive_border: Some(rgba(0xd1cba8ff).into()), - renamed: Some(rgba(0x0b6678ff).into()), - renamed_background: Some(rgba(0xd2dee2ff).into()), - renamed_border: Some(rgba(0xaec6cdff).into()), - success: Some(rgba(0x797410ff).into()), - success_background: Some(rgba(0xe5e1ceff).into()), - success_border: Some(rgba(0xd1cba8ff).into()), - unreachable: Some(rgba(0x5f5650ff).into()), - unreachable_background: Some(rgba(0xd9c8a4ff).into()), - unreachable_border: Some(rgba(0xc9b99aff).into()), - warning: Some(rgba(0xb57616ff).into()), - warning_background: Some(rgba(0xf5e2d0ff).into()), - warning_border: Some(rgba(0xebccabff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x0b6678ff).into(), - background: rgba(0x0b6678ff).into(), - selection: rgba(0x0b66783d).into(), - }, - PlayerColor { - cursor: rgba(0x7c6f64ff).into(), - background: rgba(0x7c6f64ff).into(), - selection: rgba(0x7c6f643d).into(), - }, - PlayerColor { - cursor: rgba(0xaf3b05ff).into(), - background: rgba(0xaf3b05ff).into(), - selection: rgba(0xaf3b053d).into(), - }, - PlayerColor { - cursor: rgba(0x8f4071ff).into(), - background: rgba(0x8f4071ff).into(), - selection: rgba(0x8f40713d).into(), - }, - PlayerColor { - cursor: rgba(0x437b59ff).into(), - background: rgba(0x437b59ff).into(), - selection: rgba(0x437b593d).into(), - }, - PlayerColor { - cursor: rgba(0x9d0408ff).into(), - background: rgba(0x9d0408ff).into(), - selection: rgba(0x9d04083d).into(), - }, - PlayerColor { - cursor: rgba(0xb57616ff).into(), - background: rgba(0xb57616ff).into(), - selection: rgba(0xb576163d).into(), - }, - PlayerColor { - cursor: rgba(0x797410ff).into(), - background: rgba(0x797410ff).into(), - selection: rgba(0x7974103d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x0b6678ff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0x8f3f71ff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0x7c6f64ff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0x5d544eff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0xb57614ff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x0b6678ff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0x427b58ff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x0b6678ff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x0b6678ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0xaf3a03ff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0x79740eff).into()), - ..Default::default() - }, - ), - ( - "function.builtin".into(), - UserHighlightStyle { - color: Some(rgba(0x9d0006ff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x677562ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0x9d0006ff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x0b6678ff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0x427b58ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0x8f3f71ff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0x8f3f71ff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0x427b58ff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0x7d9881ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0x282828ff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0x282828ff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0x282828ff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0x3c3836ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0x665c54ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0x413d3aff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0x282828ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0x413d3aff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0x79740eff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0x5d544eff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0xaf3a03ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0x8f3f71ff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0x427b58ff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x427b58ff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0x076678ff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0x79740eff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0xb57614ff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0x076678ff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0x0b6678ff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Gruvbox Light Soft".into(), - appearance: Appearance::Light, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0xc9b99aff).into()), - border_variant: Some(rgba(0xddcca7ff).into()), - border_focused: Some(rgba(0xaec6cdff).into()), - border_selected: Some(rgba(0xaec6cdff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0xd1c09eff).into()), - elevated_surface_background: Some(rgba(0xecdcb3ff).into()), - surface_background: Some(rgba(0xecdcb3ff).into()), - background: Some(rgba(0xd9c8a4ff).into()), - panel_background: Some(rgba(0xecdcb3ff).into()), - element_background: Some(rgba(0xecdcb3ff).into()), - element_hover: Some(rgba(0xddcca7ff).into()), - element_active: Some(rgba(0xc9b99aff).into()), - element_selected: Some(rgba(0xc9b99aff).into()), - element_disabled: Some(rgba(0xecdcb3ff).into()), - drop_target_background: Some(rgba(0x5f565080).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0xddcca7ff).into()), - ghost_element_active: Some(rgba(0xc9b99aff).into()), - ghost_element_selected: Some(rgba(0xc9b99aff).into()), - ghost_element_disabled: Some(rgba(0xecdcb3ff).into()), - text: Some(rgba(0x282828ff).into()), - text_muted: Some(rgba(0x5f5650ff).into()), - text_placeholder: Some(rgba(0x8a7c6fff).into()), - text_disabled: Some(rgba(0x8a7c6fff).into()), - text_accent: Some(rgba(0x0b6678ff).into()), - icon: Some(rgba(0x282828ff).into()), - icon_muted: Some(rgba(0x5f5650ff).into()), - icon_disabled: Some(rgba(0x8a7c6fff).into()), - icon_placeholder: Some(rgba(0x5f5650ff).into()), - icon_accent: Some(rgba(0x0b6678ff).into()), - status_bar_background: Some(rgba(0xd9c8a4ff).into()), - title_bar_background: Some(rgba(0xd9c8a4ff).into()), - toolbar_background: Some(rgba(0xf2e5bcff).into()), - tab_bar_background: Some(rgba(0xecdcb3ff).into()), - tab_inactive_background: Some(rgba(0xecdcb3ff).into()), - tab_active_background: Some(rgba(0xf2e5bcff).into()), - scrollbar_thumb_background: Some(rgba(0x2828284c).into()), - scrollbar_thumb_hover_background: Some(rgba(0xddcca7ff).into()), - scrollbar_thumb_border: Some(rgba(0xddcca7ff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0xeddeb5ff).into()), - editor_foreground: Some(rgba(0x282828ff).into()), - editor_background: Some(rgba(0xf2e5bcff).into()), - editor_gutter_background: Some(rgba(0xf2e5bcff).into()), - editor_subheader_background: Some(rgba(0xecdcb3ff).into()), - editor_active_line_background: Some(rgba(0xecdcb3bf).into()), - editor_highlighted_line_background: Some(rgba(0xecdcb3ff).into()), - editor_line_number: Some(rgba(0x28282859).into()), - editor_active_line_number: Some(rgba(0x282828ff).into()), - editor_invisible: Some(rgba(0x928474ff).into()), - editor_wrap_guide: Some(rgba(0x2828280d).into()), - editor_active_wrap_guide: Some(rgba(0x2828281a).into()), - editor_document_highlight_read_background: Some(rgba(0x0b66781a).into()), - editor_document_highlight_write_background: Some(rgba(0x92847466).into()), - terminal_background: Some(rgba(0xf2e5bcff).into()), - terminal_foreground: Some(rgba(0x282828ff).into()), - terminal_bright_foreground: Some(rgba(0x282828ff).into()), - terminal_dim_foreground: Some(rgba(0xf2e5bcff).into()), - terminal_ansi_black: Some(rgba(0xf2e5bcff).into()), - terminal_ansi_bright_black: Some(rgba(0xb1a28aff).into()), - terminal_ansi_dim_black: Some(rgba(0x282828ff).into()), - terminal_ansi_red: Some(rgba(0x9d0408ff).into()), - terminal_ansi_bright_red: Some(rgba(0xdc8c7bff).into()), - terminal_ansi_dim_red: Some(rgba(0x4f1207ff).into()), - terminal_ansi_green: Some(rgba(0x797410ff).into()), - terminal_ansi_bright_green: Some(rgba(0xbfb787ff).into()), - terminal_ansi_dim_green: Some(rgba(0x3e3a11ff).into()), - terminal_ansi_yellow: Some(rgba(0xb57616ff).into()), - terminal_ansi_bright_yellow: Some(rgba(0xe2b88bff).into()), - terminal_ansi_dim_yellow: Some(rgba(0x5c3b13ff).into()), - terminal_ansi_blue: Some(rgba(0x0b6678ff).into()), - terminal_ansi_bright_blue: Some(rgba(0x8fb0baff).into()), - terminal_ansi_dim_blue: Some(rgba(0x14343cff).into()), - terminal_ansi_magenta: Some(rgba(0x7c6f64ff).into()), - terminal_ansi_bright_magenta: Some(rgba(0xbcb5afff).into()), - terminal_ansi_dim_magenta: Some(rgba(0x3e3833ff).into()), - terminal_ansi_cyan: Some(rgba(0x437b59ff).into()), - terminal_ansi_bright_cyan: Some(rgba(0x9fbca8ff).into()), - terminal_ansi_dim_cyan: Some(rgba(0x253e2eff).into()), - terminal_ansi_white: Some(rgba(0x282828ff).into()), - terminal_ansi_bright_white: Some(rgba(0x282828ff).into()), - terminal_ansi_dim_white: Some(rgba(0x73675eff).into()), - link_text_hover: Some(rgba(0x0b6678ff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0xb57616ff).into()), - conflict_background: Some(rgba(0xf5e2d0ff).into()), - conflict_border: Some(rgba(0xebccabff).into()), - created: Some(rgba(0x797410ff).into()), - created_background: Some(rgba(0xe5e1ceff).into()), - created_border: Some(rgba(0xd1cba8ff).into()), - deleted: Some(rgba(0x9d0408ff).into()), - deleted_background: Some(rgba(0xf4d1c9ff).into()), - deleted_border: Some(rgba(0xe8ac9eff).into()), - error: Some(rgba(0x9d0408ff).into()), - error_background: Some(rgba(0xf4d1c9ff).into()), - error_border: Some(rgba(0xe8ac9eff).into()), - hidden: Some(rgba(0x8a7c6fff).into()), - hidden_background: Some(rgba(0xd9c8a4ff).into()), - hidden_border: Some(rgba(0xd1c09eff).into()), - hint: Some(rgba(0x677562ff).into()), - hint_background: Some(rgba(0xd2dee2ff).into()), - hint_border: Some(rgba(0xaec6cdff).into()), - ignored: Some(rgba(0x5f5650ff).into()), - ignored_background: Some(rgba(0xd9c8a4ff).into()), - ignored_border: Some(rgba(0xc9b99aff).into()), - info: Some(rgba(0x0b6678ff).into()), - info_background: Some(rgba(0xd2dee2ff).into()), - info_border: Some(rgba(0xaec6cdff).into()), - modified: Some(rgba(0xb57616ff).into()), - modified_background: Some(rgba(0xf5e2d0ff).into()), - modified_border: Some(rgba(0xebccabff).into()), - predictive: Some(rgba(0x7d9881ff).into()), - predictive_background: Some(rgba(0xe5e1ceff).into()), - predictive_border: Some(rgba(0xd1cba8ff).into()), - renamed: Some(rgba(0x0b6678ff).into()), - renamed_background: Some(rgba(0xd2dee2ff).into()), - renamed_border: Some(rgba(0xaec6cdff).into()), - success: Some(rgba(0x797410ff).into()), - success_background: Some(rgba(0xe5e1ceff).into()), - success_border: Some(rgba(0xd1cba8ff).into()), - unreachable: Some(rgba(0x5f5650ff).into()), - unreachable_background: Some(rgba(0xd9c8a4ff).into()), - unreachable_border: Some(rgba(0xc9b99aff).into()), - warning: Some(rgba(0xb57616ff).into()), - warning_background: Some(rgba(0xf5e2d0ff).into()), - warning_border: Some(rgba(0xebccabff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x0b6678ff).into(), - background: rgba(0x0b6678ff).into(), - selection: rgba(0x0b66783d).into(), - }, - PlayerColor { - cursor: rgba(0x7c6f64ff).into(), - background: rgba(0x7c6f64ff).into(), - selection: rgba(0x7c6f643d).into(), - }, - PlayerColor { - cursor: rgba(0xaf3b05ff).into(), - background: rgba(0xaf3b05ff).into(), - selection: rgba(0xaf3b053d).into(), - }, - PlayerColor { - cursor: rgba(0x8f4071ff).into(), - background: rgba(0x8f4071ff).into(), - selection: rgba(0x8f40713d).into(), - }, - PlayerColor { - cursor: rgba(0x437b59ff).into(), - background: rgba(0x437b59ff).into(), - selection: rgba(0x437b593d).into(), - }, - PlayerColor { - cursor: rgba(0x9d0408ff).into(), - background: rgba(0x9d0408ff).into(), - selection: rgba(0x9d04083d).into(), - }, - PlayerColor { - cursor: rgba(0xb57616ff).into(), - background: rgba(0xb57616ff).into(), - selection: rgba(0xb576163d).into(), - }, - PlayerColor { - cursor: rgba(0x797410ff).into(), - background: rgba(0x797410ff).into(), - selection: rgba(0x7974103d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x0b6678ff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0x8f3f71ff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0x7c6f64ff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0x5d544eff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0xb57614ff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x0b6678ff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0x427b58ff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x0b6678ff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x0b6678ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0xaf3a03ff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0x79740eff).into()), - ..Default::default() - }, - ), - ( - "function.builtin".into(), - UserHighlightStyle { - color: Some(rgba(0x9d0006ff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x677562ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0x9d0006ff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x0b6678ff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0x427b58ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0x8f3f71ff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0x8f3f71ff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0x427b58ff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0x7d9881ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0x282828ff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0x282828ff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0x282828ff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0x3c3836ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0x665c54ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0x413d3aff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0x282828ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0x413d3aff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0x79740eff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0x5d544eff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0xaf3a03ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0x8f3f71ff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0x427b58ff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x427b58ff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0x076678ff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0x79740eff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0xb57614ff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0x076678ff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0x0b6678ff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - ], - } -} diff --git a/crates/theme/src/themes/mod.rs b/crates/theme/src/themes/mod.rs deleted file mode 100644 index ff7ae4ea01..0000000000 --- a/crates/theme/src/themes/mod.rs +++ /dev/null @@ -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 { - vec![ - andromeda(), - atelier(), - ayu(), - gruvbox(), - one(), - rose_pine(), - sandcastle(), - solarized(), - summercamp(), - ] -} diff --git a/crates/theme/src/themes/one.rs b/crates/theme/src/themes/one.rs deleted file mode 100644 index b2227b18a3..0000000000 --- a/crates/theme/src/themes/one.rs +++ /dev/null @@ -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() - }, - ), - ], - }), - }, - }, - ], - } -} diff --git a/crates/theme/src/themes/rose_pine.rs b/crates/theme/src/themes/rose_pine.rs deleted file mode 100644 index 4f68d60647..0000000000 --- a/crates/theme/src/themes/rose_pine.rs +++ /dev/null @@ -1,1427 +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 rose_pine() -> UserThemeFamily { - UserThemeFamily { - name: "Rosé Pine".into(), - author: "Zed Industries".into(), - themes: vec![ - UserTheme { - name: "Rosé Pine".into(), - appearance: Appearance::Dark, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0x423f55ff).into()), - border_variant: Some(rgba(0x232132ff).into()), - border_focused: Some(rgba(0x435255ff).into()), - border_selected: Some(rgba(0x435255ff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0x353347ff).into()), - elevated_surface_background: Some(rgba(0x1d1b2aff).into()), - surface_background: Some(rgba(0x1d1b2aff).into()), - background: Some(rgba(0x292739ff).into()), - panel_background: Some(rgba(0x1d1b2aff).into()), - element_background: Some(rgba(0x1d1b2aff).into()), - element_hover: Some(rgba(0x232132ff).into()), - element_active: Some(rgba(0x403e53ff).into()), - element_selected: Some(rgba(0x403e53ff).into()), - element_disabled: Some(rgba(0x1d1b2aff).into()), - drop_target_background: Some(rgba(0x75718e80).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0x232132ff).into()), - ghost_element_active: Some(rgba(0x403e53ff).into()), - ghost_element_selected: Some(rgba(0x403e53ff).into()), - ghost_element_disabled: Some(rgba(0x1d1b2aff).into()), - text: Some(rgba(0xe0def4ff).into()), - text_muted: Some(rgba(0x75718eff).into()), - text_placeholder: Some(rgba(0x2f2b43ff).into()), - text_disabled: Some(rgba(0x2f2b43ff).into()), - text_accent: Some(rgba(0x9cced7ff).into()), - icon: Some(rgba(0xe0def4ff).into()), - icon_muted: Some(rgba(0x75718eff).into()), - icon_disabled: Some(rgba(0x2f2b43ff).into()), - icon_placeholder: Some(rgba(0x75718eff).into()), - icon_accent: Some(rgba(0x9cced7ff).into()), - status_bar_background: Some(rgba(0x292739ff).into()), - title_bar_background: Some(rgba(0x292739ff).into()), - toolbar_background: Some(rgba(0x191724ff).into()), - tab_bar_background: Some(rgba(0x1d1b2aff).into()), - tab_inactive_background: Some(rgba(0x1d1b2aff).into()), - tab_active_background: Some(rgba(0x191724ff).into()), - scrollbar_thumb_background: Some(rgba(0xe0def44c).into()), - scrollbar_thumb_hover_background: Some(rgba(0x232132ff).into()), - scrollbar_thumb_border: Some(rgba(0x232132ff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0x1c1a29ff).into()), - editor_foreground: Some(rgba(0xe0def4ff).into()), - editor_background: Some(rgba(0x191724ff).into()), - editor_gutter_background: Some(rgba(0x191724ff).into()), - editor_subheader_background: Some(rgba(0x1d1b2aff).into()), - editor_active_line_background: Some(rgba(0x1d1b2abf).into()), - editor_highlighted_line_background: Some(rgba(0x1d1b2aff).into()), - editor_line_number: Some(rgba(0xe0def459).into()), - editor_active_line_number: Some(rgba(0xe0def4ff).into()), - editor_invisible: Some(rgba(0x28253cff).into()), - editor_wrap_guide: Some(rgba(0xe0def40d).into()), - editor_active_wrap_guide: Some(rgba(0xe0def41a).into()), - editor_document_highlight_read_background: Some(rgba(0x9cced71a).into()), - editor_document_highlight_write_background: Some(rgba(0x28253c66).into()), - terminal_background: Some(rgba(0x191724ff).into()), - terminal_foreground: Some(rgba(0xe0def4ff).into()), - terminal_bright_foreground: Some(rgba(0xe0def4ff).into()), - terminal_dim_foreground: Some(rgba(0x191724ff).into()), - terminal_ansi_black: Some(rgba(0x191724ff).into()), - terminal_ansi_bright_black: Some(rgba(0x403d55ff).into()), - terminal_ansi_dim_black: Some(rgba(0xe0def4ff).into()), - terminal_ansi_red: Some(rgba(0xea6f92ff).into()), - terminal_ansi_bright_red: Some(rgba(0x7e3647ff).into()), - terminal_ansi_dim_red: Some(rgba(0xfab9c7ff).into()), - terminal_ansi_green: Some(rgba(0x5dc2a3ff).into()), - terminal_ansi_bright_green: Some(rgba(0x31614fff).into()), - terminal_ansi_dim_green: Some(rgba(0xb3e1d1ff).into()), - terminal_ansi_yellow: Some(rgba(0xf5c177ff).into()), - terminal_ansi_bright_yellow: Some(rgba(0x8a653bff).into()), - terminal_ansi_dim_yellow: Some(rgba(0xfedfbbff).into()), - terminal_ansi_blue: Some(rgba(0x9cced7ff).into()), - terminal_ansi_bright_blue: Some(rgba(0x566c70ff).into()), - terminal_ansi_dim_blue: Some(rgba(0xcfe7ebff).into()), - terminal_ansi_magenta: Some(rgba(0x9d7691ff).into()), - terminal_ansi_bright_magenta: Some(rgba(0x4c3b47ff).into()), - terminal_ansi_dim_magenta: Some(rgba(0xceb9c7ff).into()), - terminal_ansi_cyan: Some(rgba(0x32748fff).into()), - terminal_ansi_bright_cyan: Some(rgba(0x203a46ff).into()), - terminal_ansi_dim_cyan: Some(rgba(0x9cb7c6ff).into()), - terminal_ansi_white: Some(rgba(0xe0def4ff).into()), - terminal_ansi_bright_white: Some(rgba(0xe0def4ff).into()), - terminal_ansi_dim_white: Some(rgba(0x514e68ff).into()), - link_text_hover: Some(rgba(0x9cced7ff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0xf5c177ff).into()), - conflict_background: Some(rgba(0x50341aff).into()), - conflict_border: Some(rgba(0x6d4d2bff).into()), - created: Some(rgba(0x5dc2a3ff).into()), - created_background: Some(rgba(0x182e23ff).into()), - created_border: Some(rgba(0x254839ff).into()), - deleted: Some(rgba(0xea6f92ff).into()), - deleted_background: Some(rgba(0x431820ff).into()), - deleted_border: Some(rgba(0x612834ff).into()), - error: Some(rgba(0xea6f92ff).into()), - error_background: Some(rgba(0x431820ff).into()), - error_border: Some(rgba(0x612834ff).into()), - hidden: Some(rgba(0x2f2b43ff).into()), - hidden_background: Some(rgba(0x292739ff).into()), - hidden_border: Some(rgba(0x353347ff).into()), - hint: Some(rgba(0x5e768cff).into()), - hint_background: Some(rgba(0x2f3739ff).into()), - hint_border: Some(rgba(0x435255ff).into()), - ignored: Some(rgba(0x75718eff).into()), - ignored_background: Some(rgba(0x292739ff).into()), - ignored_border: Some(rgba(0x423f55ff).into()), - info: Some(rgba(0x9cced7ff).into()), - info_background: Some(rgba(0x2f3739ff).into()), - info_border: Some(rgba(0x435255ff).into()), - modified: Some(rgba(0xf5c177ff).into()), - modified_background: Some(rgba(0x50341aff).into()), - modified_border: Some(rgba(0x6d4d2bff).into()), - predictive: Some(rgba(0x556b81ff).into()), - predictive_background: Some(rgba(0x182e23ff).into()), - predictive_border: Some(rgba(0x254839ff).into()), - renamed: Some(rgba(0x9cced7ff).into()), - renamed_background: Some(rgba(0x2f3739ff).into()), - renamed_border: Some(rgba(0x435255ff).into()), - success: Some(rgba(0x5dc2a3ff).into()), - success_background: Some(rgba(0x182e23ff).into()), - success_border: Some(rgba(0x254839ff).into()), - unreachable: Some(rgba(0x75718eff).into()), - unreachable_background: Some(rgba(0x292739ff).into()), - unreachable_border: Some(rgba(0x423f55ff).into()), - warning: Some(rgba(0xf5c177ff).into()), - warning_background: Some(rgba(0x50341aff).into()), - warning_border: Some(rgba(0x6d4d2bff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x9cced7ff).into(), - background: rgba(0x9cced7ff).into(), - selection: rgba(0x9cced73d).into(), - }, - PlayerColor { - cursor: rgba(0x9d7691ff).into(), - background: rgba(0x9d7691ff).into(), - selection: rgba(0x9d76913d).into(), - }, - PlayerColor { - cursor: rgba(0xc4a7e6ff).into(), - background: rgba(0xc4a7e6ff).into(), - selection: rgba(0xc4a7e63d).into(), - }, - PlayerColor { - cursor: rgba(0xc4a7e6ff).into(), - background: rgba(0xc4a7e6ff).into(), - selection: rgba(0xc4a7e63d).into(), - }, - PlayerColor { - cursor: rgba(0x32748fff).into(), - background: rgba(0x32748fff).into(), - selection: rgba(0x32748f3d).into(), - }, - PlayerColor { - cursor: rgba(0xea6f92ff).into(), - background: rgba(0xea6f92ff).into(), - selection: rgba(0xea6f923d).into(), - }, - PlayerColor { - cursor: rgba(0xf5c177ff).into(), - background: rgba(0xf5c177ff).into(), - selection: rgba(0xf5c1773d).into(), - }, - PlayerColor { - cursor: rgba(0x5dc2a3ff).into(), - background: rgba(0x5dc2a3ff).into(), - selection: rgba(0x5dc2a33d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x9cced7ff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0xebbcbaff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0x6e6a86ff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0x777390ff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0x5dc2a3ff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x9cced7ff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0xe0def4ff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x9cced7ff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x9cced7ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0xc4a7e6ff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0xebbcbaff).into()), - ..Default::default() - }, - ), - ( - "function.method".into(), - UserHighlightStyle { - color: Some(rgba(0xebbcbaff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x5e768cff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0x31748fff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x9cced7ff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0x9ccfd8ff).into()), - font_style: Some(UserFontStyle::Normal), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0xebbcbaff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0x5dc2a3ff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0x31748fff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0x556b81ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0xe0def4ff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0xe0def4ff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0x9cced7ff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0x908caaff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0x9d99b6ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0x9d99b6ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0x9d99b6ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0x9d99b6ff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0xf6c177ff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0x777390ff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0xc4a7e6ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0xc4a7e6ff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0xc4a7e6ff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x9ccfd8ff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0xc4a7e6ff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0xf6c177ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0x9ccfd8ff).into()), - ..Default::default() - }, - ), - ( - "type.builtin".into(), - UserHighlightStyle { - color: Some(rgba(0x9ccfd8ff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0xe0def4ff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0x9cced7ff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Rosé Pine Dawn".into(), - appearance: Appearance::Light, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0xdcd6d5ff).into()), - border_variant: Some(rgba(0xe5e0dfff).into()), - border_focused: Some(rgba(0xc3d7dbff).into()), - border_selected: Some(rgba(0xc3d7dbff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0xd0cccfff).into()), - elevated_surface_background: Some(rgba(0xfef9f2ff).into()), - surface_background: Some(rgba(0xfef9f2ff).into()), - background: Some(rgba(0xdcd8d8ff).into()), - panel_background: Some(rgba(0xfef9f2ff).into()), - element_background: Some(rgba(0xfef9f2ff).into()), - element_hover: Some(rgba(0xe5e0dfff).into()), - element_active: Some(rgba(0xdbd5d4ff).into()), - element_selected: Some(rgba(0xdbd5d4ff).into()), - element_disabled: Some(rgba(0xfef9f2ff).into()), - drop_target_background: Some(rgba(0x706c8c80).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0xe5e0dfff).into()), - ghost_element_active: Some(rgba(0xdbd5d4ff).into()), - ghost_element_selected: Some(rgba(0xdbd5d4ff).into()), - ghost_element_disabled: Some(rgba(0xfef9f2ff).into()), - text: Some(rgba(0x575279ff).into()), - text_muted: Some(rgba(0x706c8cff).into()), - text_placeholder: Some(rgba(0x938fa3ff).into()), - text_disabled: Some(rgba(0x938fa3ff).into()), - text_accent: Some(rgba(0x57949fff).into()), - icon: Some(rgba(0x575279ff).into()), - icon_muted: Some(rgba(0x706c8cff).into()), - icon_disabled: Some(rgba(0x938fa3ff).into()), - icon_placeholder: Some(rgba(0x706c8cff).into()), - icon_accent: Some(rgba(0x57949fff).into()), - status_bar_background: Some(rgba(0xdcd8d8ff).into()), - title_bar_background: Some(rgba(0xdcd8d8ff).into()), - toolbar_background: Some(rgba(0xfaf4edff).into()), - tab_bar_background: Some(rgba(0xfef9f2ff).into()), - tab_inactive_background: Some(rgba(0xfef9f2ff).into()), - tab_active_background: Some(rgba(0xfaf4edff).into()), - scrollbar_thumb_background: Some(rgba(0x5752794c).into()), - scrollbar_thumb_hover_background: Some(rgba(0xe5e0dfff).into()), - scrollbar_thumb_border: Some(rgba(0xe5e0dfff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0xfdf8f1ff).into()), - editor_foreground: Some(rgba(0x575279ff).into()), - editor_background: Some(rgba(0xfaf4edff).into()), - editor_gutter_background: Some(rgba(0xfaf4edff).into()), - editor_subheader_background: Some(rgba(0xfef9f2ff).into()), - editor_active_line_background: Some(rgba(0xfef9f2bf).into()), - editor_highlighted_line_background: Some(rgba(0xfef9f2ff).into()), - editor_line_number: Some(rgba(0x57527959).into()), - editor_active_line_number: Some(rgba(0x575279ff).into()), - editor_invisible: Some(rgba(0x9691a4ff).into()), - editor_wrap_guide: Some(rgba(0x5752790d).into()), - editor_active_wrap_guide: Some(rgba(0x5752791a).into()), - editor_document_highlight_read_background: Some(rgba(0x57949f1a).into()), - editor_document_highlight_write_background: Some(rgba(0x9691a466).into()), - terminal_background: Some(rgba(0xfaf4edff).into()), - terminal_foreground: Some(rgba(0x575279ff).into()), - terminal_bright_foreground: Some(rgba(0x575279ff).into()), - terminal_dim_foreground: Some(rgba(0xfaf4edff).into()), - terminal_ansi_black: Some(rgba(0xfaf4edff).into()), - terminal_ansi_bright_black: Some(rgba(0xb8b2baff).into()), - terminal_ansi_dim_black: Some(rgba(0x575279ff).into()), - terminal_ansi_red: Some(rgba(0xb4647aff).into()), - terminal_ansi_bright_red: Some(rgba(0xdcb0bbff).into()), - terminal_ansi_dim_red: Some(rgba(0x57333dff).into()), - terminal_ansi_green: Some(rgba(0x3eaa8eff).into()), - terminal_ansi_bright_green: Some(rgba(0xa5d5c5ff).into()), - terminal_ansi_dim_green: Some(rgba(0x265245ff).into()), - terminal_ansi_yellow: Some(rgba(0xe99d35ff).into()), - terminal_ansi_bright_yellow: Some(rgba(0xfccd9bff).into()), - terminal_ansi_dim_yellow: Some(rgba(0x854a1fff).into()), - terminal_ansi_blue: Some(rgba(0x57949fff).into()), - terminal_ansi_bright_blue: Some(rgba(0xacc9ceff).into()), - terminal_ansi_dim_blue: Some(rgba(0x2f484dff).into()), - terminal_ansi_magenta: Some(rgba(0x7c697fff).into()), - terminal_ansi_bright_magenta: Some(rgba(0xbcb1bdff).into()), - terminal_ansi_dim_magenta: Some(rgba(0x3e353fff).into()), - terminal_ansi_cyan: Some(rgba(0x2a6983ff).into()), - terminal_ansi_bright_cyan: Some(rgba(0x97b1c0ff).into()), - terminal_ansi_dim_cyan: Some(rgba(0x1c3641ff).into()), - terminal_ansi_white: Some(rgba(0x575279ff).into()), - terminal_ansi_bright_white: Some(rgba(0x575279ff).into()), - terminal_ansi_dim_white: Some(rgba(0x827e98ff).into()), - link_text_hover: Some(rgba(0x57949fff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0xe99d35ff).into()), - conflict_background: Some(rgba(0xffebd6ff).into()), - conflict_border: Some(rgba(0xffdab7ff).into()), - created: Some(rgba(0x3eaa8eff).into()), - created_background: Some(rgba(0xdbeee7ff).into()), - created_border: Some(rgba(0xbee0d5ff).into()), - deleted: Some(rgba(0xb4647aff).into()), - deleted_background: Some(rgba(0xf1dfe3ff).into()), - deleted_border: Some(rgba(0xe6c6cdff).into()), - error: Some(rgba(0xb4647aff).into()), - error_background: Some(rgba(0xf1dfe3ff).into()), - error_border: Some(rgba(0xe6c6cdff).into()), - hidden: Some(rgba(0x938fa3ff).into()), - hidden_background: Some(rgba(0xdcd8d8ff).into()), - hidden_border: Some(rgba(0xd0cccfff).into()), - hint: Some(rgba(0x7a92aaff).into()), - hint_background: Some(rgba(0xdde9ebff).into()), - hint_border: Some(rgba(0xc3d7dbff).into()), - ignored: Some(rgba(0x706c8cff).into()), - ignored_background: Some(rgba(0xdcd8d8ff).into()), - ignored_border: Some(rgba(0xdcd6d5ff).into()), - info: Some(rgba(0x57949fff).into()), - info_background: Some(rgba(0xdde9ebff).into()), - info_border: Some(rgba(0xc3d7dbff).into()), - modified: Some(rgba(0xe99d35ff).into()), - modified_background: Some(rgba(0xffebd6ff).into()), - modified_border: Some(rgba(0xffdab7ff).into()), - predictive: Some(rgba(0xa2acbeff).into()), - predictive_background: Some(rgba(0xdbeee7ff).into()), - predictive_border: Some(rgba(0xbee0d5ff).into()), - renamed: Some(rgba(0x57949fff).into()), - renamed_background: Some(rgba(0xdde9ebff).into()), - renamed_border: Some(rgba(0xc3d7dbff).into()), - success: Some(rgba(0x3eaa8eff).into()), - success_background: Some(rgba(0xdbeee7ff).into()), - success_border: Some(rgba(0xbee0d5ff).into()), - unreachable: Some(rgba(0x706c8cff).into()), - unreachable_background: Some(rgba(0xdcd8d8ff).into()), - unreachable_border: Some(rgba(0xdcd6d5ff).into()), - warning: Some(rgba(0xe99d35ff).into()), - warning_background: Some(rgba(0xffebd6ff).into()), - warning_border: Some(rgba(0xffdab7ff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x57949fff).into(), - background: rgba(0x57949fff).into(), - selection: rgba(0x57949f3d).into(), - }, - PlayerColor { - cursor: rgba(0x7c697fff).into(), - background: rgba(0x7c697fff).into(), - selection: rgba(0x7c697f3d).into(), - }, - PlayerColor { - cursor: rgba(0x907aa9ff).into(), - background: rgba(0x907aa9ff).into(), - selection: rgba(0x907aa93d).into(), - }, - PlayerColor { - cursor: rgba(0x907aa9ff).into(), - background: rgba(0x907aa9ff).into(), - selection: rgba(0x907aa93d).into(), - }, - PlayerColor { - cursor: rgba(0x2a6983ff).into(), - background: rgba(0x2a6983ff).into(), - selection: rgba(0x2a69833d).into(), - }, - PlayerColor { - cursor: rgba(0xb4647aff).into(), - background: rgba(0xb4647aff).into(), - selection: rgba(0xb4647a3d).into(), - }, - PlayerColor { - cursor: rgba(0xe99d35ff).into(), - background: rgba(0xe99d35ff).into(), - selection: rgba(0xe99d353d).into(), - }, - PlayerColor { - cursor: rgba(0x3eaa8eff).into(), - background: rgba(0x3eaa8eff).into(), - selection: rgba(0x3eaa8e3d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x57949fff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0xd7827eff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0x9893a5ff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0x6f6b8cff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0x3eaa8eff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x57949fff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0x575279ff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x57949fff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x57949fff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0x907aa9ff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0xd7827eff).into()), - ..Default::default() - }, - ), - ( - "function.method".into(), - UserHighlightStyle { - color: Some(rgba(0xd7827eff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x7a92aaff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0x286983ff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x57949fff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0x56949fff).into()), - font_style: Some(UserFontStyle::Normal), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0xd7827eff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0x3eaa8eff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0x286983ff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0xa2acbeff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0x575279ff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0x575279ff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0x57949fff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0x797593ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0x635e82ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0x635e82ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0x635e82ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0x635e82ff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0xea9d34ff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0x6f6b8cff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0x907aa9ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0x907aa9ff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0x907aa9ff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x56949fff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0x907aa9ff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0xea9d34ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0x56949fff).into()), - ..Default::default() - }, - ), - ( - "type.builtin".into(), - UserHighlightStyle { - color: Some(rgba(0x56949fff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0x575279ff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0x57949fff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - UserTheme { - name: "Rosé Pine Moon".into(), - appearance: Appearance::Dark, - styles: UserThemeStylesRefinement { - colors: ThemeColorsRefinement { - border: Some(rgba(0x504c68ff).into()), - border_variant: Some(rgba(0x322f48ff).into()), - border_focused: Some(rgba(0x435255ff).into()), - border_selected: Some(rgba(0x435255ff).into()), - border_transparent: Some(rgba(0x00000000).into()), - border_disabled: Some(rgba(0x44415bff).into()), - elevated_surface_background: Some(rgba(0x28253cff).into()), - surface_background: Some(rgba(0x28253cff).into()), - background: Some(rgba(0x38354eff).into()), - panel_background: Some(rgba(0x28253cff).into()), - element_background: Some(rgba(0x28253cff).into()), - element_hover: Some(rgba(0x322f48ff).into()), - element_active: Some(rgba(0x4f4b66ff).into()), - element_selected: Some(rgba(0x4f4b66ff).into()), - element_disabled: Some(rgba(0x28253cff).into()), - drop_target_background: Some(rgba(0x85819e80).into()), - ghost_element_background: Some(rgba(0x00000000).into()), - ghost_element_hover: Some(rgba(0x322f48ff).into()), - ghost_element_active: Some(rgba(0x4f4b66ff).into()), - ghost_element_selected: Some(rgba(0x4f4b66ff).into()), - ghost_element_disabled: Some(rgba(0x28253cff).into()), - text: Some(rgba(0xe0def4ff).into()), - text_muted: Some(rgba(0x85819eff).into()), - text_placeholder: Some(rgba(0x615d7aff).into()), - text_disabled: Some(rgba(0x615d7aff).into()), - text_accent: Some(rgba(0x9cced7ff).into()), - icon: Some(rgba(0xe0def4ff).into()), - icon_muted: Some(rgba(0x85819eff).into()), - icon_disabled: Some(rgba(0x615d7aff).into()), - icon_placeholder: Some(rgba(0x85819eff).into()), - icon_accent: Some(rgba(0x9cced7ff).into()), - status_bar_background: Some(rgba(0x38354eff).into()), - title_bar_background: Some(rgba(0x38354eff).into()), - toolbar_background: Some(rgba(0x232136ff).into()), - tab_bar_background: Some(rgba(0x28253cff).into()), - tab_inactive_background: Some(rgba(0x28253cff).into()), - tab_active_background: Some(rgba(0x232136ff).into()), - scrollbar_thumb_background: Some(rgba(0xe0def44c).into()), - scrollbar_thumb_hover_background: Some(rgba(0x322f48ff).into()), - scrollbar_thumb_border: Some(rgba(0x322f48ff).into()), - scrollbar_track_background: Some(rgba(0x00000000).into()), - scrollbar_track_border: Some(rgba(0x27243bff).into()), - editor_foreground: Some(rgba(0xe0def4ff).into()), - editor_background: Some(rgba(0x232136ff).into()), - editor_gutter_background: Some(rgba(0x232136ff).into()), - editor_subheader_background: Some(rgba(0x28253cff).into()), - editor_active_line_background: Some(rgba(0x28253cbf).into()), - editor_highlighted_line_background: Some(rgba(0x28253cff).into()), - editor_line_number: Some(rgba(0xe0def459).into()), - editor_active_line_number: Some(rgba(0xe0def4ff).into()), - editor_invisible: Some(rgba(0x595571ff).into()), - editor_wrap_guide: Some(rgba(0xe0def40d).into()), - editor_active_wrap_guide: Some(rgba(0xe0def41a).into()), - editor_document_highlight_read_background: Some(rgba(0x9cced71a).into()), - editor_document_highlight_write_background: Some(rgba(0x59557166).into()), - terminal_background: Some(rgba(0x232136ff).into()), - terminal_foreground: Some(rgba(0xe0def4ff).into()), - terminal_bright_foreground: Some(rgba(0xe0def4ff).into()), - terminal_dim_foreground: Some(rgba(0x232136ff).into()), - terminal_ansi_black: Some(rgba(0x232136ff).into()), - terminal_ansi_bright_black: Some(rgba(0x3f3b58ff).into()), - terminal_ansi_dim_black: Some(rgba(0xe0def4ff).into()), - terminal_ansi_red: Some(rgba(0xea6f92ff).into()), - terminal_ansi_bright_red: Some(rgba(0x7e3647ff).into()), - terminal_ansi_dim_red: Some(rgba(0xfab9c7ff).into()), - terminal_ansi_green: Some(rgba(0x5dc2a3ff).into()), - terminal_ansi_bright_green: Some(rgba(0x31614fff).into()), - terminal_ansi_dim_green: Some(rgba(0xb3e1d1ff).into()), - terminal_ansi_yellow: Some(rgba(0xf5c177ff).into()), - terminal_ansi_bright_yellow: Some(rgba(0x8a653bff).into()), - terminal_ansi_dim_yellow: Some(rgba(0xfedfbbff).into()), - terminal_ansi_blue: Some(rgba(0x9cced7ff).into()), - terminal_ansi_bright_blue: Some(rgba(0x566c70ff).into()), - terminal_ansi_dim_blue: Some(rgba(0xcfe7ebff).into()), - terminal_ansi_magenta: Some(rgba(0xa784a1ff).into()), - terminal_ansi_bright_magenta: Some(rgba(0x51414eff).into()), - terminal_ansi_dim_magenta: Some(rgba(0xd3c0cfff).into()), - terminal_ansi_cyan: Some(rgba(0x3f8fb0ff).into()), - terminal_ansi_bright_cyan: Some(rgba(0x264654ff).into()), - terminal_ansi_dim_cyan: Some(rgba(0xa5c6d7ff).into()), - terminal_ansi_white: Some(rgba(0xe0def4ff).into()), - terminal_ansi_bright_white: Some(rgba(0xe0def4ff).into()), - terminal_ansi_dim_white: Some(rgba(0x75718eff).into()), - link_text_hover: Some(rgba(0x9cced7ff).into()), - ..Default::default() - }, - status: StatusColorsRefinement { - conflict: Some(rgba(0xf5c177ff).into()), - conflict_background: Some(rgba(0x50341aff).into()), - conflict_border: Some(rgba(0x6d4d2bff).into()), - created: Some(rgba(0x5dc2a3ff).into()), - created_background: Some(rgba(0x182e23ff).into()), - created_border: Some(rgba(0x254839ff).into()), - deleted: Some(rgba(0xea6f92ff).into()), - deleted_background: Some(rgba(0x431820ff).into()), - deleted_border: Some(rgba(0x612834ff).into()), - error: Some(rgba(0xea6f92ff).into()), - error_background: Some(rgba(0x431820ff).into()), - error_border: Some(rgba(0x612834ff).into()), - hidden: Some(rgba(0x615d7aff).into()), - hidden_background: Some(rgba(0x38354eff).into()), - hidden_border: Some(rgba(0x44415bff).into()), - hint: Some(rgba(0x728aa2ff).into()), - hint_background: Some(rgba(0x2f3739ff).into()), - hint_border: Some(rgba(0x435255ff).into()), - ignored: Some(rgba(0x85819eff).into()), - ignored_background: Some(rgba(0x38354eff).into()), - ignored_border: Some(rgba(0x504c68ff).into()), - info: Some(rgba(0x9cced7ff).into()), - info_background: Some(rgba(0x2f3739ff).into()), - info_border: Some(rgba(0x435255ff).into()), - modified: Some(rgba(0xf5c177ff).into()), - modified_background: Some(rgba(0x50341aff).into()), - modified_border: Some(rgba(0x6d4d2bff).into()), - predictive: Some(rgba(0x516b83ff).into()), - predictive_background: Some(rgba(0x182e23ff).into()), - predictive_border: Some(rgba(0x254839ff).into()), - renamed: Some(rgba(0x9cced7ff).into()), - renamed_background: Some(rgba(0x2f3739ff).into()), - renamed_border: Some(rgba(0x435255ff).into()), - success: Some(rgba(0x5dc2a3ff).into()), - success_background: Some(rgba(0x182e23ff).into()), - success_border: Some(rgba(0x254839ff).into()), - unreachable: Some(rgba(0x85819eff).into()), - unreachable_background: Some(rgba(0x38354eff).into()), - unreachable_border: Some(rgba(0x504c68ff).into()), - warning: Some(rgba(0xf5c177ff).into()), - warning_background: Some(rgba(0x50341aff).into()), - warning_border: Some(rgba(0x6d4d2bff).into()), - ..Default::default() - }, - player: Some(PlayerColors(vec![ - PlayerColor { - cursor: rgba(0x9cced7ff).into(), - background: rgba(0x9cced7ff).into(), - selection: rgba(0x9cced73d).into(), - }, - PlayerColor { - cursor: rgba(0xa784a1ff).into(), - background: rgba(0xa784a1ff).into(), - selection: rgba(0xa784a13d).into(), - }, - PlayerColor { - cursor: rgba(0xc4a7e6ff).into(), - background: rgba(0xc4a7e6ff).into(), - selection: rgba(0xc4a7e63d).into(), - }, - PlayerColor { - cursor: rgba(0xc4a7e6ff).into(), - background: rgba(0xc4a7e6ff).into(), - selection: rgba(0xc4a7e63d).into(), - }, - PlayerColor { - cursor: rgba(0x3f8fb0ff).into(), - background: rgba(0x3f8fb0ff).into(), - selection: rgba(0x3f8fb03d).into(), - }, - PlayerColor { - cursor: rgba(0xea6f92ff).into(), - background: rgba(0xea6f92ff).into(), - selection: rgba(0xea6f923d).into(), - }, - PlayerColor { - cursor: rgba(0xf5c177ff).into(), - background: rgba(0xf5c177ff).into(), - selection: rgba(0xf5c1773d).into(), - }, - PlayerColor { - cursor: rgba(0x5dc2a3ff).into(), - background: rgba(0x5dc2a3ff).into(), - selection: rgba(0x5dc2a33d).into(), - }, - ])), - syntax: Some(UserSyntaxTheme { - highlights: vec![ - ( - "attribute".into(), - UserHighlightStyle { - color: Some(rgba(0x9cced7ff).into()), - ..Default::default() - }, - ), - ( - "boolean".into(), - UserHighlightStyle { - color: Some(rgba(0xea9a97ff).into()), - ..Default::default() - }, - ), - ( - "comment".into(), - UserHighlightStyle { - color: Some(rgba(0x6e6a86ff).into()), - ..Default::default() - }, - ), - ( - "comment.doc".into(), - UserHighlightStyle { - color: Some(rgba(0x8682a0ff).into()), - ..Default::default() - }, - ), - ( - "constant".into(), - UserHighlightStyle { - color: Some(rgba(0x5dc2a3ff).into()), - ..Default::default() - }, - ), - ( - "constructor".into(), - UserHighlightStyle { - color: Some(rgba(0x9cced7ff).into()), - ..Default::default() - }, - ), - ( - "embedded".into(), - UserHighlightStyle { - color: Some(rgba(0xe0def4ff).into()), - ..Default::default() - }, - ), - ( - "emphasis".into(), - UserHighlightStyle { - color: Some(rgba(0x9cced7ff).into()), - ..Default::default() - }, - ), - ( - "emphasis.strong".into(), - UserHighlightStyle { - color: Some(rgba(0x9cced7ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "enum".into(), - UserHighlightStyle { - color: Some(rgba(0xc4a7e6ff).into()), - ..Default::default() - }, - ), - ( - "function".into(), - UserHighlightStyle { - color: Some(rgba(0xea9a97ff).into()), - ..Default::default() - }, - ), - ( - "function.method".into(), - UserHighlightStyle { - color: Some(rgba(0xea9a97ff).into()), - ..Default::default() - }, - ), - ( - "hint".into(), - UserHighlightStyle { - color: Some(rgba(0x728aa2ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "keyword".into(), - UserHighlightStyle { - color: Some(rgba(0x3e8fb0ff).into()), - ..Default::default() - }, - ), - ( - "label".into(), - UserHighlightStyle { - color: Some(rgba(0x9cced7ff).into()), - ..Default::default() - }, - ), - ( - "link_text".into(), - UserHighlightStyle { - color: Some(rgba(0x9ccfd8ff).into()), - font_style: Some(UserFontStyle::Normal), - ..Default::default() - }, - ), - ( - "link_uri".into(), - UserHighlightStyle { - color: Some(rgba(0xea9a97ff).into()), - ..Default::default() - }, - ), - ( - "number".into(), - UserHighlightStyle { - color: Some(rgba(0x5dc2a3ff).into()), - ..Default::default() - }, - ), - ( - "operator".into(), - UserHighlightStyle { - color: Some(rgba(0x3e8fb0ff).into()), - ..Default::default() - }, - ), - ( - "predictive".into(), - UserHighlightStyle { - color: Some(rgba(0x516b83ff).into()), - font_style: Some(UserFontStyle::Italic), - ..Default::default() - }, - ), - ( - "preproc".into(), - UserHighlightStyle { - color: Some(rgba(0xe0def4ff).into()), - ..Default::default() - }, - ), - ( - "primary".into(), - UserHighlightStyle { - color: Some(rgba(0xe0def4ff).into()), - ..Default::default() - }, - ), - ( - "property".into(), - UserHighlightStyle { - color: Some(rgba(0x9cced7ff).into()), - ..Default::default() - }, - ), - ( - "punctuation".into(), - UserHighlightStyle { - color: Some(rgba(0x908caaff).into()), - ..Default::default() - }, - ), - ( - "punctuation.bracket".into(), - UserHighlightStyle { - color: Some(rgba(0xaeabc6ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.delimiter".into(), - UserHighlightStyle { - color: Some(rgba(0xaeabc6ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.list_marker".into(), - UserHighlightStyle { - color: Some(rgba(0xaeabc6ff).into()), - ..Default::default() - }, - ), - ( - "punctuation.special".into(), - UserHighlightStyle { - color: Some(rgba(0xaeabc6ff).into()), - ..Default::default() - }, - ), - ( - "string".into(), - UserHighlightStyle { - color: Some(rgba(0xf6c177ff).into()), - ..Default::default() - }, - ), - ( - "string.escape".into(), - UserHighlightStyle { - color: Some(rgba(0x8682a0ff).into()), - ..Default::default() - }, - ), - ( - "string.regex".into(), - UserHighlightStyle { - color: Some(rgba(0xc4a7e6ff).into()), - ..Default::default() - }, - ), - ( - "string.special".into(), - UserHighlightStyle { - color: Some(rgba(0xc4a7e6ff).into()), - ..Default::default() - }, - ), - ( - "string.special.symbol".into(), - UserHighlightStyle { - color: Some(rgba(0xc4a7e6ff).into()), - ..Default::default() - }, - ), - ( - "tag".into(), - UserHighlightStyle { - color: Some(rgba(0x9ccfd8ff).into()), - ..Default::default() - }, - ), - ( - "text.literal".into(), - UserHighlightStyle { - color: Some(rgba(0xc4a7e6ff).into()), - ..Default::default() - }, - ), - ( - "title".into(), - UserHighlightStyle { - color: Some(rgba(0xf6c177ff).into()), - font_weight: Some(UserFontWeight(700.0)), - ..Default::default() - }, - ), - ( - "type".into(), - UserHighlightStyle { - color: Some(rgba(0x9ccfd8ff).into()), - ..Default::default() - }, - ), - ( - "type.builtin".into(), - UserHighlightStyle { - color: Some(rgba(0x9ccfd8ff).into()), - ..Default::default() - }, - ), - ( - "variable".into(), - UserHighlightStyle { - color: Some(rgba(0xe0def4ff).into()), - ..Default::default() - }, - ), - ( - "variant".into(), - UserHighlightStyle { - color: Some(rgba(0x9cced7ff).into()), - ..Default::default() - }, - ), - ], - }), - }, - }, - ], - } -} diff --git a/crates/theme/src/themes/sandcastle.rs b/crates/theme/src/themes/sandcastle.rs deleted file mode 100644 index a672f702e1..0000000000 --- a/crates/theme/src/themes/sandcastle.rs +++ /dev/null @@ -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() - }, - ), - ], - }), - }, - }], - } -} diff --git a/crates/theme/src/themes/solarized.rs b/crates/theme/src/themes/solarized.rs deleted file mode 100644 index ddf6ae8e08..0000000000 --- a/crates/theme/src/themes/solarized.rs +++ /dev/null @@ -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() - }, - ), - ], - }), - }, - }, - ], - } -} diff --git a/crates/theme/src/themes/summercamp.rs b/crates/theme/src/themes/summercamp.rs deleted file mode 100644 index 5f5a922b0b..0000000000 --- a/crates/theme/src/themes/summercamp.rs +++ /dev/null @@ -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() - }, - ), - ], - }), - }, - }], - } -} diff --git a/crates/theme/src/user_theme.rs b/crates/theme/src/user_theme.rs deleted file mode 100644 index d34f066c3b..0000000000 --- a/crates/theme/src/user_theme.rs +++ /dev/null @@ -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, -} - -#[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, - pub font_style: Option, - pub font_weight: Option, -} - -#[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 for FontWeight { - fn from(value: UserFontWeight) -> Self { - Self(value.0) - } -} - -#[derive(Debug, Clone, Copy, Deserialize)] -pub enum UserFontStyle { - Normal, - Italic, - Oblique, -} - -impl From 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() - } -} diff --git a/crates/theme_importer/Cargo.toml b/crates/theme_importer/Cargo.toml index 5a046a0f0f..3587d9c8af 100644 --- a/crates/theme_importer/Cargo.toml +++ b/crates/theme_importer/Cargo.toml @@ -23,5 +23,5 @@ serde.workspace = true serde_json.workspace = true simplelog = "0.9" strum = { version = "0.25.0", features = ["derive"] } -theme = { path = "../theme", features = [] } +theme = { path = "../theme" } uuid.workspace = true diff --git a/crates/theme_importer/README.md b/crates/theme_importer/README.md index 9373b54ae1..156c338b9a 100644 --- a/crates/theme_importer/README.md +++ b/crates/theme_importer/README.md @@ -1,124 +1 @@ # Zed Theme Importer - ---- - -## Usage - -- `cargo run -p theme_importer` - Import the context of `assets/themes/src` - ---- - -## Troubleshooting - -As the importer generates rust files, you may need to manually do some cleanup in `registry.rs` and `themes/mod.rs` if you remove themes or delete the `themes` folder in the theme crate. - ---- - -## Required Structure - -To import a theme or series of themes 3 things are required: - -- `family.json`: A JSON file containing the theme family metadata and list of theme variants -- `{theme_name}.json`: One theme json for each theme variant -- `LICENSE`: A license file for the theme family - -### `family.json` - -#### `name` - -The name of the theme family. Avoid special characters. - -This will be used for the theme family directory name (lowercased) and the theme family name in the Zed UI. - -Good: - -- `Rose Pine` -- `Synthwave 84` -- `Monokai Solarized` - -Bad: - -- `Rosé Pine` -- `Synthwave '84` -- `Monokai (Solarized)` - -#### `author` - -The author of the theme family. This can be a name or a username. - -This will be used for the theme family author in the Zed UI. - -#### `themes` - -A list of theme variants. - -`appearance` can be either `light` or `dark`. This will impact which default fallback colors are used, and where the theme shows up in the Zed UI. - -### `{theme_name}.json` - -Each theme added to the family must have a corresponding JSON file. This JSON file can be obtained from the VSCode extensions folder (once you have installed it.) This is usually located at `~/.vscode/extensions` (on macOS). - -You can use `open ~/.vscode/extensions` to open the folder in Finder directly. - -Copy that json file into the theme family directory and tidy up the filenames as needed. - -### `LICENSE` - -A LICENSE file is required to import a theme family. Failing to provide a complete text license will cause it to be skipped when the import is run. - -If the theme only provides a license code (e.g. MIT, Apache 2.0, etc.) then put that code into the LICENSE file. - -If no license is provided, either contact the theme creator or don't add the theme. - ---- - -### Complete Example: - -An example family with multiple variants: - -```json -{ - "name": "Ayu", - // When both name and username are available - // prefer the `username (name)` format - "author": "dempfi (Ike Ku)", - "themes": [ - { - "name": "Ayu Light", - "file_name": "ayu-light.json", - "appearance": "light" - }, - { - "name": "Ayu Mirage", - "file_name": "ayu-mirage.json", - "appearance": "dark" - }, - { - "name": "Ayu Dark", - "file_name": "ayu-dark.json", - "appearance": "dark" - } - ] -} -``` - -An example single variant family: - -```json -{ - "name": "Andromeda", - "author": "Eliver Lara (EliverLara)", - "themes": [ - { - "name": "Andromeda", - "file_name": "andromeda.json", - "appearance": "dark" - }, - { - "name": "Andromeda Bordered", - "file_name": "andromeda-bordered.json", - "appearance": "dark" - } - ] -} -``` diff --git a/crates/theme_importer/src/color.rs b/crates/theme_importer/src/color.rs index e595b4e381..921f7a376b 100644 --- a/crates/theme_importer/src/color.rs +++ b/crates/theme_importer/src/color.rs @@ -2,6 +2,7 @@ use anyhow::Result; use gpui::Hsla; use palette::FromColor; +#[allow(unused)] pub(crate) fn try_parse_color(color: &str) -> Result { let rgba = gpui::Rgba::try_from(color)?; let rgba = palette::rgb::Srgba::from_components((rgba.r, rgba.g, rgba.b, rgba.a)); @@ -17,6 +18,7 @@ pub(crate) fn try_parse_color(color: &str) -> Result { Ok(hsla) } +#[allow(unused)] pub(crate) fn pack_color(color: Hsla) -> u32 { let hsla = palette::Hsla::from_components((color.h * 360., color.s, color.l, color.a)); let rgba = palette::rgb::Srgba::from_color(hsla); diff --git a/crates/theme_importer/src/main.rs b/crates/theme_importer/src/main.rs index dc17fe15ca..6f3dc83006 100644 --- a/crates/theme_importer/src/main.rs +++ b/crates/theme_importer/src/main.rs @@ -1,39 +1,22 @@ mod assets; mod color; -mod theme_printer; mod util; mod vscode; -mod zed1; -use std::collections::HashMap; -use std::fs::{self, File}; -use std::io::Write; +use std::fs::File; use std::path::PathBuf; -use std::process::Command; -use std::str::FromStr; -use any_ascii::any_ascii; -use anyhow::{anyhow, Context, Result}; +use anyhow::{Context, Result}; use clap::Parser; -use convert_case::{Case, Casing}; -use gpui::Hsla; use indexmap::IndexMap; -use indoc::formatdoc; use json_comments::StripComments; use log::LevelFilter; use serde::Deserialize; use simplelog::{TermLogger, TerminalMode}; -use theme::{ - Appearance, FontWeightContent, HighlightStyleContent, PlayerColorContent, StatusColorsContent, - ThemeColorsContent, ThemeContent, ThemeFamilyContent, ThemeStyleContent, UserTheme, - UserThemeFamily, -}; +use theme::{Appearance, AppearanceContent}; -use crate::theme_printer::UserThemeFamilyPrinter; use crate::vscode::VsCodeTheme; use crate::vscode::VsCodeThemeConverter; -use crate::zed1::theme::Theme as Zed1Theme; -use crate::zed1::{zed1_theme_licenses, Zed1ThemeConverter}; #[derive(Debug, Deserialize)] struct FamilyMetadata { @@ -57,6 +40,15 @@ pub enum ThemeAppearanceJson { Dark, } +impl From for AppearanceContent { + fn from(value: ThemeAppearanceJson) -> Self { + match value { + ThemeAppearanceJson::Light => Self::Light, + ThemeAppearanceJson::Dark => Self::Dark, + } + } +} + impl From for Appearance { fn from(value: ThemeAppearanceJson) -> Self { match value { @@ -76,15 +68,15 @@ pub struct ThemeMetadata { #[derive(Parser)] #[command(author, version, about, long_about = None)] struct Args { + /// The path to the theme to import. + theme_path: PathBuf, + /// Whether to warn when values are missing from the theme. #[arg(long)] warn_on_missing: bool, } fn main() -> Result<()> { - const SOURCE_PATH: &str = "assets/themes/src/vscode"; - const OUT_PATH: &str = "crates/theme/src/themes"; - let args = Args::parse(); let log_config = { @@ -105,606 +97,35 @@ fn main() -> Result<()> { TermLogger::init(LevelFilter::Trace, log_config, TerminalMode::Mixed) .expect("could not initialize logger"); - if 1 < 2 { - let themes: Vec = Vec::new(); - // Uncomment this line when you need to regenerate themes. - // let themes = theme::all_user_themes(); + let theme_file_path = args.theme_path; - let mut families = Vec::new(); - - for family in themes { - families.push(convert_family(family)); + let theme_file = match File::open(&theme_file_path) { + Ok(file) => file, + Err(err) => { + log::info!("Failed to open file at path: {:?}", theme_file_path); + return Err(err)?; } + }; - for family in families { - let theme_family_slug = any_ascii(&family.name) - .replace("(", "") - .replace(")", "") - .to_case(Case::Snake); + let theme_without_comments = StripComments::new(theme_file); + let vscode_theme: VsCodeTheme = serde_json::from_reader(theme_without_comments) + .context(format!("failed to parse theme {theme_file_path:?}"))?; - let output_dir = PathBuf::from("assets/themes/").join(&theme_family_slug); + let theme_metadata = ThemeMetadata { + name: "".to_string(), + appearance: ThemeAppearanceJson::Dark, + file_name: "".to_string(), + }; - fs::create_dir_all(&output_dir)?; + let converter = VsCodeThemeConverter::new(vscode_theme, theme_metadata, IndexMap::new()); - let mut output_file = - File::create(output_dir.join(format!("{theme_family_slug}.json")))?; + let theme = converter.convert()?; - let theme_json = serde_json::to_string_pretty(&family).unwrap(); + let theme_json = serde_json::to_string_pretty(&theme).unwrap(); - output_file.write_all(format!("{theme_json}\n").as_bytes())?; - } - - return Ok(()); - } - - let mut theme_families = Vec::new(); - - /// Whether VS Code themes should be imported. - const IMPORT_VS_CODE_THEMES: bool = false; - - if IMPORT_VS_CODE_THEMES { - log::info!("Loading themes source..."); - let vscode_themes_path = PathBuf::from_str(SOURCE_PATH)?; - if !vscode_themes_path.exists() { - return Err(anyhow!(format!( - "Couldn't find {}, make sure it exists", - SOURCE_PATH - ))); - } - - for theme_family_dir in fs::read_dir(&vscode_themes_path)? { - let theme_family_dir = theme_family_dir?; - - if !theme_family_dir.file_type()?.is_dir() { - continue; - } - - let theme_family_slug = theme_family_dir - .path() - .file_stem() - .ok_or(anyhow!("no file stem")) - .map(|stem| stem.to_string_lossy().to_string())?; - - let family_metadata_file = File::open(theme_family_dir.path().join("family.json")) - .context(format!( - "no `family.json` found for '{}'", - theme_family_slug - ))?; - - let license_file_path = theme_family_dir.path().join("LICENSE"); - - if !license_file_path.exists() { - log::info!("Skipping theme family '{}' because it does not have a LICENSE file. This theme will only be imported once a LICENSE file is provided.", theme_family_slug); - continue; - } - - let family_metadata: FamilyMetadata = serde_json::from_reader(family_metadata_file) - .context(format!( - "failed to parse `family.json` for '{theme_family_slug}'" - ))?; - - let mut themes = Vec::new(); - - for theme_metadata in family_metadata.themes { - log::info!("Converting '{}' theme", &theme_metadata.name); - - let theme_file_path = theme_family_dir.path().join(&theme_metadata.file_name); - - let theme_file = match File::open(&theme_file_path) { - Ok(file) => file, - Err(_) => { - log::info!("Failed to open file at path: {:?}", theme_file_path); - continue; - } - }; - - let theme_without_comments = StripComments::new(theme_file); - let vscode_theme: VsCodeTheme = serde_json::from_reader(theme_without_comments) - .context(format!("failed to parse theme {theme_file_path:?}"))?; - - let converter = VsCodeThemeConverter::new( - vscode_theme, - theme_metadata, - family_metadata.syntax.clone(), - ); - - let theme = converter.convert()?; - - themes.push(theme); - } - - let theme_family = UserThemeFamily { - name: family_metadata.name.into(), - author: family_metadata.author.into(), - themes, - }; - - theme_families.push(theme_family); - } - } - - let zed1_themes_path = PathBuf::from_str("assets/themes")?; - - let zed1_theme_families = [ - "Andromeda", - "Atelier", - "Ayu", - "Gruvbox", - "One", - "Rosé Pine", - "Sandcastle", - "Solarized", - "Summercamp", - ]; - - let zed1_licenses_by_theme: HashMap = HashMap::from_iter( - zed1_theme_licenses() - .into_iter() - .map(|theme_license| (theme_license.theme.clone(), theme_license)), - ); - - let mut zed1_themes_by_family: IndexMap> = IndexMap::from_iter( - zed1_theme_families - .into_iter() - .map(|family| (family.to_string(), Vec::new())), - ); - - for entry in fs::read_dir(&zed1_themes_path)? { - let entry = entry?; - - if entry.file_type()?.is_dir() { - continue; - } - - match entry.path().extension() { - None => continue, - Some(extension) => { - if extension != "json" { - continue; - } - } - } - - let theme_file_path = entry.path(); - - let theme_file = match File::open(&theme_file_path) { - Ok(file) => file, - Err(_) => { - log::info!("Failed to open file at path: {:?}", theme_file_path); - continue; - } - }; - - let theme_without_comments = StripComments::new(theme_file); - - let zed1_theme: Zed1Theme = serde_json::from_reader(theme_without_comments) - .context(format!("failed to parse theme {theme_file_path:?}"))?; - - let theme_name = zed1_theme.meta.name.clone(); - - let converter = Zed1ThemeConverter::new(zed1_theme); - - let theme = converter.convert()?; - - let Some((_, themes_for_family)) = zed1_themes_by_family - .iter_mut() - .find(|(family, _)| theme_name.starts_with(*family)) - else { - log::warn!("No theme family found for '{}'.", theme_name); - continue; - }; - - themes_for_family.push(theme); - } - - zed1_themes_by_family.sort_keys(); - - let mut licenses = Vec::new(); - - for (family, themes) in zed1_themes_by_family { - let mut theme_family = UserThemeFamily { - name: family, - author: "Zed Industries".to_string(), - themes, - }; - - theme_family - .themes - .sort_unstable_by_key(|theme| theme.name.clone()); - - for theme in &theme_family.themes { - let license = zed1_licenses_by_theme - .get(&theme.name) - .ok_or_else(|| anyhow!("missing license for theme: '{}'", theme.name))?; - - let license_header = match license.license_url.as_ref() { - Some(license_url) => { - format!("[{theme_name}]({license_url})", theme_name = theme.name) - } - None => theme.name.clone(), - }; - - licenses.push(formatdoc!( - " - ## {license_header} - - {license_text} - ******************************************************************************** - ", - license_text = license.license_text - )); - } - - theme_families.push(theme_family); - } - - let themes_output_path = PathBuf::from_str(OUT_PATH)?; - - if !themes_output_path.exists() { - log::info!("Creating directory: {:?}", themes_output_path); - fs::create_dir_all(&themes_output_path)?; - } - - let mut mod_rs_file = File::create(themes_output_path.join(format!("mod.rs")))?; - - let mut theme_modules = Vec::new(); - - for theme_family in theme_families { - let theme_family_slug = any_ascii(&theme_family.name) - .replace("(", "") - .replace(")", "") - .to_case(Case::Snake); - - let mut output_file = - File::create(themes_output_path.join(format!("{theme_family_slug}.rs")))?; - log::info!( - "Creating file: {:?}", - themes_output_path.join(format!("{theme_family_slug}.rs")) - ); - - let theme_module = format!( - r#" - // 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, - UserHighlightStyle, UserSyntaxTheme, UserTheme, UserThemeFamily, UserThemeStylesRefinement, - UserFontWeight, UserFontStyle - }}; - - pub fn {theme_family_slug}() -> UserThemeFamily {{ - {theme_family_definition} - }} - "#, - theme_family_definition = format!("{:#?}", UserThemeFamilyPrinter::new(theme_family)) - ); - - output_file.write_all(theme_module.as_bytes())?; - - theme_modules.push(theme_family_slug); - } - - theme_modules.sort(); - - let themes_vector_contents = format!( - r#" - use crate::UserThemeFamily; - - pub(crate) fn all_user_themes() -> Vec {{ - vec![{all_themes}] - }} - "#, - all_themes = theme_modules - .iter() - .map(|module| format!("{}()", module)) - .collect::>() - .join(", ") - ); - - let mod_rs_contents = format!( - r#" - // This file was generated by the `theme_importer`. - // Be careful when modifying it by hand. - - {mod_statements} - - {use_statements} - - {themes_vector_contents} - "#, - mod_statements = theme_modules - .iter() - .map(|module| format!("mod {module};")) - .collect::>() - .join("\n"), - use_statements = theme_modules - .iter() - .map(|module| format!("pub use {module}::*;")) - .collect::>() - .join("\n"), - themes_vector_contents = themes_vector_contents - ); - - mod_rs_file.write_all(mod_rs_contents.as_bytes())?; - - log::info!("Writing LICENSES file..."); - - let mut licenses_file = File::create(themes_output_path.join(format!("LICENSES")))?; - - licenses_file.write_all(licenses.join("\n").as_bytes())?; - - log::info!("Formatting themes..."); - - let format_result = format_themes_crate() - // We need to format a second time to catch all of the formatting issues. - .and_then(|_| format_themes_crate()); - - if let Err(err) = format_result { - log::error!("Failed to format themes: {}", err); - } + println!("{}", theme_json); log::info!("Done!"); Ok(()) } - -fn format_themes_crate() -> std::io::Result { - Command::new("cargo") - .args(["fmt", "--package", "theme"]) - .output() -} - -fn convert_family(family: UserThemeFamily) -> ThemeFamilyContent { - ThemeFamilyContent { - name: family.name, - author: family.author, - themes: family.themes.into_iter().map(convert_theme).collect(), - } -} - -fn convert_theme(theme: UserTheme) -> ThemeContent { - ThemeContent { - name: theme.name, - appearance: match theme.appearance { - Appearance::Light => theme::AppearanceContent::Light, - Appearance::Dark => theme::AppearanceContent::Dark, - }, - style: convert_theme_styles(theme.styles), - } -} - -fn serialize_color(color: Hsla) -> String { - let rgba = color.to_rgb(); - format!("#{:08x}", u32::from(rgba)) -} - -fn convert_theme_styles(styles: theme::UserThemeStylesRefinement) -> ThemeStyleContent { - ThemeStyleContent { - colors: ThemeColorsContent { - border: styles.colors.border.map(serialize_color), - border_variant: styles.colors.border_variant.map(serialize_color), - border_focused: styles.colors.border_focused.map(serialize_color), - border_selected: styles.colors.border_selected.map(serialize_color), - border_transparent: styles.colors.border_transparent.map(serialize_color), - border_disabled: styles.colors.border_disabled.map(serialize_color), - elevated_surface_background: styles - .colors - .elevated_surface_background - .map(serialize_color), - surface_background: styles.colors.surface_background.map(serialize_color), - background: styles.colors.background.map(serialize_color), - element_background: styles.colors.element_background.map(serialize_color), - element_hover: styles.colors.element_hover.map(serialize_color), - element_active: styles.colors.element_active.map(serialize_color), - element_selected: styles.colors.element_selected.map(serialize_color), - element_disabled: styles.colors.element_disabled.map(serialize_color), - drop_target_background: styles.colors.drop_target_background.map(serialize_color), - ghost_element_background: styles.colors.ghost_element_background.map(serialize_color), - ghost_element_hover: styles.colors.ghost_element_hover.map(serialize_color), - ghost_element_active: styles.colors.ghost_element_active.map(serialize_color), - ghost_element_selected: styles.colors.ghost_element_selected.map(serialize_color), - ghost_element_disabled: styles.colors.ghost_element_disabled.map(serialize_color), - text: styles.colors.text.map(serialize_color), - text_muted: styles.colors.text_muted.map(serialize_color), - text_placeholder: styles.colors.text_placeholder.map(serialize_color), - text_disabled: styles.colors.text_disabled.map(serialize_color), - text_accent: styles.colors.text_accent.map(serialize_color), - icon: styles.colors.icon.map(serialize_color), - icon_muted: styles.colors.icon_muted.map(serialize_color), - icon_disabled: styles.colors.icon_disabled.map(serialize_color), - icon_placeholder: styles.colors.icon_placeholder.map(serialize_color), - icon_accent: styles.colors.icon_accent.map(serialize_color), - status_bar_background: styles.colors.status_bar_background.map(serialize_color), - title_bar_background: styles.colors.title_bar_background.map(serialize_color), - toolbar_background: styles.colors.toolbar_background.map(serialize_color), - tab_bar_background: styles.colors.tab_bar_background.map(serialize_color), - tab_inactive_background: styles.colors.tab_inactive_background.map(serialize_color), - tab_active_background: styles.colors.tab_active_background.map(serialize_color), - search_match_background: styles.colors.search_match_background.map(serialize_color), - panel_background: styles.colors.panel_background.map(serialize_color), - panel_focused_border: styles.colors.panel_focused_border.map(serialize_color), - pane_focused_border: styles.colors.pane_focused_border.map(serialize_color), - scrollbar_thumb_background: styles - .colors - .scrollbar_thumb_background - .map(serialize_color), - scrollbar_thumb_hover_background: styles - .colors - .scrollbar_thumb_hover_background - .map(serialize_color), - scrollbar_thumb_border: styles.colors.scrollbar_thumb_border.map(serialize_color), - scrollbar_track_background: styles - .colors - .scrollbar_track_background - .map(serialize_color), - scrollbar_track_border: styles.colors.scrollbar_track_border.map(serialize_color), - editor_foreground: styles.colors.editor_foreground.map(serialize_color), - editor_background: styles.colors.editor_background.map(serialize_color), - editor_gutter_background: styles.colors.editor_gutter_background.map(serialize_color), - editor_subheader_background: styles - .colors - .editor_subheader_background - .map(serialize_color), - editor_active_line_background: styles - .colors - .editor_active_line_background - .map(serialize_color), - editor_highlighted_line_background: styles - .colors - .editor_highlighted_line_background - .map(serialize_color), - editor_line_number: styles.colors.editor_line_number.map(serialize_color), - editor_active_line_number: styles.colors.editor_active_line_number.map(serialize_color), - editor_invisible: styles.colors.editor_invisible.map(serialize_color), - editor_wrap_guide: styles.colors.editor_wrap_guide.map(serialize_color), - editor_active_wrap_guide: styles.colors.editor_active_wrap_guide.map(serialize_color), - editor_document_highlight_read_background: styles - .colors - .editor_document_highlight_read_background - .map(serialize_color), - editor_document_highlight_write_background: styles - .colors - .editor_document_highlight_write_background - .map(serialize_color), - terminal_background: styles.colors.terminal_background.map(serialize_color), - terminal_foreground: styles.colors.terminal_foreground.map(serialize_color), - terminal_bright_foreground: styles - .colors - .terminal_bright_foreground - .map(serialize_color), - terminal_dim_foreground: styles.colors.terminal_dim_foreground.map(serialize_color), - terminal_ansi_black: styles.colors.terminal_ansi_black.map(serialize_color), - terminal_ansi_bright_black: styles - .colors - .terminal_ansi_bright_black - .map(serialize_color), - terminal_ansi_dim_black: styles.colors.terminal_ansi_dim_black.map(serialize_color), - terminal_ansi_red: styles.colors.terminal_ansi_red.map(serialize_color), - terminal_ansi_bright_red: styles.colors.terminal_ansi_bright_red.map(serialize_color), - terminal_ansi_dim_red: styles.colors.terminal_ansi_dim_red.map(serialize_color), - terminal_ansi_green: styles.colors.terminal_ansi_green.map(serialize_color), - terminal_ansi_bright_green: styles - .colors - .terminal_ansi_bright_green - .map(serialize_color), - terminal_ansi_dim_green: styles.colors.terminal_ansi_dim_green.map(serialize_color), - terminal_ansi_yellow: styles.colors.terminal_ansi_yellow.map(serialize_color), - terminal_ansi_bright_yellow: styles - .colors - .terminal_ansi_bright_yellow - .map(serialize_color), - terminal_ansi_dim_yellow: styles.colors.terminal_ansi_dim_yellow.map(serialize_color), - terminal_ansi_blue: styles.colors.terminal_ansi_blue.map(serialize_color), - terminal_ansi_bright_blue: styles.colors.terminal_ansi_bright_blue.map(serialize_color), - terminal_ansi_dim_blue: styles.colors.terminal_ansi_dim_blue.map(serialize_color), - terminal_ansi_magenta: styles.colors.terminal_ansi_magenta.map(serialize_color), - terminal_ansi_bright_magenta: styles - .colors - .terminal_ansi_bright_magenta - .map(serialize_color), - terminal_ansi_dim_magenta: styles.colors.terminal_ansi_dim_magenta.map(serialize_color), - terminal_ansi_cyan: styles.colors.terminal_ansi_cyan.map(serialize_color), - terminal_ansi_bright_cyan: styles.colors.terminal_ansi_bright_cyan.map(serialize_color), - terminal_ansi_dim_cyan: styles.colors.terminal_ansi_dim_cyan.map(serialize_color), - terminal_ansi_white: styles.colors.terminal_ansi_white.map(serialize_color), - terminal_ansi_bright_white: styles - .colors - .terminal_ansi_bright_white - .map(serialize_color), - terminal_ansi_dim_white: styles.colors.terminal_ansi_dim_white.map(serialize_color), - link_text_hover: styles.colors.link_text_hover.map(serialize_color), - }, - status: StatusColorsContent { - conflict: styles.status.conflict.map(serialize_color), - conflict_background: styles.status.conflict_background.map(serialize_color), - conflict_border: styles.status.conflict_border.map(serialize_color), - created: styles.status.created.map(serialize_color), - created_background: styles.status.created_background.map(serialize_color), - created_border: styles.status.created_border.map(serialize_color), - deleted: styles.status.deleted.map(serialize_color), - deleted_background: styles.status.deleted_background.map(serialize_color), - deleted_border: styles.status.deleted_border.map(serialize_color), - error: styles.status.error.map(serialize_color), - error_background: styles.status.error_background.map(serialize_color), - error_border: styles.status.error_border.map(serialize_color), - hidden: styles.status.hidden.map(serialize_color), - hidden_background: styles.status.hidden_background.map(serialize_color), - hidden_border: styles.status.hidden_border.map(serialize_color), - hint: styles.status.hint.map(serialize_color), - hint_background: styles.status.hint_background.map(serialize_color), - hint_border: styles.status.hint_border.map(serialize_color), - ignored: styles.status.ignored.map(serialize_color), - ignored_background: styles.status.ignored_background.map(serialize_color), - ignored_border: styles.status.ignored_border.map(serialize_color), - info: styles.status.info.map(serialize_color), - info_background: styles.status.info_background.map(serialize_color), - info_border: styles.status.info_border.map(serialize_color), - modified: styles.status.modified.map(serialize_color), - modified_background: styles.status.modified_background.map(serialize_color), - modified_border: styles.status.modified_border.map(serialize_color), - predictive: styles.status.predictive.map(serialize_color), - predictive_background: styles.status.predictive_background.map(serialize_color), - predictive_border: styles.status.predictive_border.map(serialize_color), - renamed: styles.status.renamed.map(serialize_color), - renamed_background: styles.status.renamed_background.map(serialize_color), - renamed_border: styles.status.renamed_border.map(serialize_color), - success: styles.status.success.map(serialize_color), - success_background: styles.status.success_background.map(serialize_color), - success_border: styles.status.success_border.map(serialize_color), - unreachable: styles.status.unreachable.map(serialize_color), - unreachable_background: styles.status.unreachable_background.map(serialize_color), - unreachable_border: styles.status.unreachable_border.map(serialize_color), - warning: styles.status.warning.map(serialize_color), - warning_background: styles.status.warning_background.map(serialize_color), - warning_border: styles.status.warning_border.map(serialize_color), - }, - players: styles - .player - .map(|players| { - players - .0 - .into_iter() - .map(|player_color| PlayerColorContent { - cursor: Some(player_color.cursor).map(serialize_color), - background: Some(player_color.background).map(serialize_color), - selection: Some(player_color.selection).map(serialize_color), - }) - .collect() - }) - .unwrap_or_default(), - syntax: styles - .syntax - .map(|syntax| { - IndexMap::from_iter(syntax.highlights.into_iter().map(|(name, style)| { - ( - name, - HighlightStyleContent { - color: style.color.map(serialize_color), - font_style: style.font_style.map(|font_style| match font_style { - theme::UserFontStyle::Normal => theme::FontStyleContent::Normal, - theme::UserFontStyle::Italic => theme::FontStyleContent::Italic, - theme::UserFontStyle::Oblique => theme::FontStyleContent::Oblique, - }), - font_weight: style.font_weight.map(|font_weight| match font_weight.0 { - _ if font_weight.0 == 100.0 => FontWeightContent::Thin, - _ if font_weight.0 == 200.0 => FontWeightContent::ExtraLight, - _ if font_weight.0 == 300.0 => FontWeightContent::Light, - _ if font_weight.0 == 400.0 => FontWeightContent::Normal, - _ if font_weight.0 == 500.0 => FontWeightContent::Medium, - _ if font_weight.0 == 600.0 => FontWeightContent::Semibold, - _ if font_weight.0 == 700.0 => FontWeightContent::Bold, - _ if font_weight.0 == 800.0 => FontWeightContent::ExtraBold, - _ if font_weight.0 == 900.0 => FontWeightContent::Black, - _ => unreachable!(), - }), - }, - ) - })) - }) - .unwrap_or_default(), - } -} diff --git a/crates/theme_importer/src/theme_printer.rs b/crates/theme_importer/src/theme_printer.rs deleted file mode 100644 index 88a860034d..0000000000 --- a/crates/theme_importer/src/theme_printer.rs +++ /dev/null @@ -1,478 +0,0 @@ -use std::fmt::{self, Debug}; - -use gpui::Hsla; -use theme::{ - Appearance, PlayerColor, PlayerColors, StatusColorsRefinement, SystemColors, - ThemeColorsRefinement, UserHighlightStyle, UserSyntaxTheme, UserTheme, UserThemeFamily, - UserThemeStylesRefinement, -}; - -use crate::color::pack_color; - -struct RawSyntaxPrinter<'a>(&'a str); - -impl<'a> Debug for RawSyntaxPrinter<'a> { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - write!(f, "{}", self.0) - } -} - -struct HslaPrinter(Hsla); - -impl Debug for HslaPrinter { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - write!(f, "rgba({:#010x}).into()", pack_color(self.0)) - } -} - -struct IntoPrinter<'a, D: Debug>(&'a D); - -impl<'a, D: Debug> Debug for IntoPrinter<'a, D> { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - write!(f, "{:?}.into()", self.0) - } -} - -pub struct OptionPrinter<'a, T>(&'a Option); - -impl<'a, T: Debug> Debug for OptionPrinter<'a, T> { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - match self.0 { - Some(value) => write!(f, "Some({:?})", value), - None => write!(f, "None"), - } - } -} - -pub struct VecPrinter<'a, T>(&'a Vec); - -impl<'a, T: Debug> Debug for VecPrinter<'a, T> { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - write!(f, "vec!{:?}", &self.0) - } -} - -pub struct UserThemeFamilyPrinter(UserThemeFamily); - -impl UserThemeFamilyPrinter { - pub fn new(theme_family: UserThemeFamily) -> Self { - Self(theme_family) - } -} - -impl Debug for UserThemeFamilyPrinter { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("UserThemeFamily") - .field("name", &IntoPrinter(&self.0.name)) - .field("author", &IntoPrinter(&self.0.author)) - .field( - "themes", - &VecPrinter( - &self - .0 - .themes - .iter() - .map(|theme| UserThemePrinter(theme)) - .collect(), - ), - ) - .finish() - } -} - -pub struct UserThemePrinter<'a>(&'a UserTheme); - -impl<'a> Debug for UserThemePrinter<'a> { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("UserTheme") - .field("name", &IntoPrinter(&self.0.name)) - .field("appearance", &AppearancePrinter(self.0.appearance)) - .field("styles", &UserThemeStylesRefinementPrinter(&self.0.styles)) - .finish() - } -} - -pub struct AppearancePrinter(Appearance); - -impl Debug for AppearancePrinter { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - write!(f, "Appearance::{:?}", self.0) - } -} - -pub struct UserThemeStylesRefinementPrinter<'a>(&'a UserThemeStylesRefinement); - -impl<'a> Debug for UserThemeStylesRefinementPrinter<'a> { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("UserThemeStylesRefinement") - .field("colors", &ThemeColorsRefinementPrinter(&self.0.colors)) - .field("status", &StatusColorsRefinementPrinter(&self.0.status)) - .field( - "player", - &OptionPrinter( - &self - .0 - .player - .as_ref() - .map(|player_colors| PlayerColorsPrinter(player_colors)), - ), - ) - .field( - "syntax", - &OptionPrinter( - &self - .0 - .syntax - .as_ref() - .map(|syntax| UserSyntaxThemePrinter(syntax)), - ), - ) - .finish() - } -} - -pub struct SystemColorsPrinter<'a>(&'a SystemColors); - -impl<'a> Debug for SystemColorsPrinter<'a> { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("SystemColors") - .field("transparent", &HslaPrinter(self.0.transparent)) - .field( - "mac_os_traffic_light_red", - &HslaPrinter(self.0.mac_os_traffic_light_red), - ) - .field( - "mac_os_traffic_light_yellow", - &HslaPrinter(self.0.mac_os_traffic_light_yellow), - ) - .field( - "mac_os_traffic_light_green", - &HslaPrinter(self.0.mac_os_traffic_light_green), - ) - .finish() - } -} - -pub struct ThemeColorsRefinementPrinter<'a>(&'a ThemeColorsRefinement); - -impl<'a> Debug for ThemeColorsRefinementPrinter<'a> { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - let theme_colors = vec![ - ("border", self.0.border), - ("border_variant", self.0.border_variant), - ("border_focused", self.0.border_focused), - ("border_selected", self.0.border_selected), - ("border_transparent", self.0.border_transparent), - ("border_disabled", self.0.border_disabled), - ( - "elevated_surface_background", - self.0.elevated_surface_background, - ), - ("surface_background", self.0.surface_background), - ("background", self.0.background), - ("panel_background", self.0.panel_background), - ("element_background", self.0.element_background), - ("element_hover", self.0.element_hover), - ("element_active", self.0.element_active), - ("element_selected", self.0.element_selected), - ("element_disabled", self.0.element_disabled), - ("drop_target_background", self.0.drop_target_background), - ("ghost_element_background", self.0.ghost_element_background), - ("ghost_element_hover", self.0.ghost_element_hover), - ("ghost_element_active", self.0.ghost_element_active), - ("ghost_element_selected", self.0.ghost_element_selected), - ("ghost_element_disabled", self.0.ghost_element_disabled), - ("text", self.0.text), - ("text_muted", self.0.text_muted), - ("text_placeholder", self.0.text_placeholder), - ("text_disabled", self.0.text_disabled), - ("text_accent", self.0.text_accent), - ("icon", self.0.icon), - ("icon_muted", self.0.icon_muted), - ("icon_disabled", self.0.icon_disabled), - ("icon_placeholder", self.0.icon_placeholder), - ("icon_accent", self.0.icon_accent), - ("status_bar_background", self.0.status_bar_background), - ("title_bar_background", self.0.title_bar_background), - ("toolbar_background", self.0.toolbar_background), - ("tab_bar_background", self.0.tab_bar_background), - ("tab_inactive_background", self.0.tab_inactive_background), - ("tab_active_background", self.0.tab_active_background), - ( - "scrollbar_thumb_background", - self.0.scrollbar_thumb_background, - ), - ( - "scrollbar_thumb_hover_background", - self.0.scrollbar_thumb_hover_background, - ), - ("scrollbar_thumb_border", self.0.scrollbar_thumb_border), - ( - "scrollbar_track_background", - self.0.scrollbar_track_background, - ), - ("scrollbar_track_border", self.0.scrollbar_track_border), - ("editor_foreground", self.0.editor_foreground), - ("editor_background", self.0.editor_background), - ("editor_gutter_background", self.0.editor_gutter_background), - ( - "editor_subheader_background", - self.0.editor_subheader_background, - ), - ( - "editor_active_line_background", - self.0.editor_active_line_background, - ), - ( - "editor_highlighted_line_background", - self.0.editor_highlighted_line_background, - ), - ("editor_line_number", self.0.editor_line_number), - ( - "editor_active_line_number", - self.0.editor_active_line_number, - ), - ("editor_invisible", self.0.editor_invisible), - ("editor_wrap_guide", self.0.editor_wrap_guide), - ("editor_active_wrap_guide", self.0.editor_active_wrap_guide), - ( - "editor_document_highlight_read_background", - self.0.editor_document_highlight_read_background, - ), - ( - "editor_document_highlight_write_background", - self.0.editor_document_highlight_write_background, - ), - ("terminal_background", self.0.terminal_background), - ("terminal_foreground", self.0.terminal_foreground), - ( - "terminal_bright_foreground", - self.0.terminal_bright_foreground, - ), - ("terminal_dim_foreground", self.0.terminal_dim_foreground), - ("terminal_ansi_black", self.0.terminal_ansi_black), - ( - "terminal_ansi_bright_black", - self.0.terminal_ansi_bright_black, - ), - ("terminal_ansi_dim_black", self.0.terminal_ansi_dim_black), - ("terminal_ansi_red", self.0.terminal_ansi_red), - ("terminal_ansi_bright_red", self.0.terminal_ansi_bright_red), - ("terminal_ansi_dim_red", self.0.terminal_ansi_dim_red), - ("terminal_ansi_green", self.0.terminal_ansi_green), - ( - "terminal_ansi_bright_green", - self.0.terminal_ansi_bright_green, - ), - ("terminal_ansi_dim_green", self.0.terminal_ansi_dim_green), - ("terminal_ansi_yellow", self.0.terminal_ansi_yellow), - ( - "terminal_ansi_bright_yellow", - self.0.terminal_ansi_bright_yellow, - ), - ("terminal_ansi_dim_yellow", self.0.terminal_ansi_dim_yellow), - ("terminal_ansi_blue", self.0.terminal_ansi_blue), - ( - "terminal_ansi_bright_blue", - self.0.terminal_ansi_bright_blue, - ), - ("terminal_ansi_dim_blue", self.0.terminal_ansi_dim_blue), - ("terminal_ansi_magenta", self.0.terminal_ansi_magenta), - ( - "terminal_ansi_bright_magenta", - self.0.terminal_ansi_bright_magenta, - ), - ( - "terminal_ansi_dim_magenta", - self.0.terminal_ansi_dim_magenta, - ), - ("terminal_ansi_cyan", self.0.terminal_ansi_cyan), - ( - "terminal_ansi_bright_cyan", - self.0.terminal_ansi_bright_cyan, - ), - ("terminal_ansi_dim_cyan", self.0.terminal_ansi_dim_cyan), - ("terminal_ansi_white", self.0.terminal_ansi_white), - ( - "terminal_ansi_bright_white", - self.0.terminal_ansi_bright_white, - ), - ("terminal_ansi_dim_white", self.0.terminal_ansi_dim_white), - ("link_text_hover", self.0.link_text_hover), - ]; - - f.write_str("ThemeColorsRefinement {")?; - - for (color_name, color) in theme_colors { - if let Some(color) = color { - f.write_str(color_name)?; - f.write_str(": ")?; - f.write_str("Some(")?; - HslaPrinter(color).fmt(f)?; - f.write_str(")")?; - f.write_str(",")?; - } else { - log::warn!(target: "theme_printer", "No value for '{}' in theme", color_name); - } - } - - f.write_str("..Default::default()")?; - f.write_str("}") - } -} - -pub struct StatusColorsRefinementPrinter<'a>(&'a StatusColorsRefinement); - -impl<'a> Debug for StatusColorsRefinementPrinter<'a> { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - let status_colors = vec![ - ("conflict", self.0.conflict), - ("conflict_background", self.0.conflict_background), - ("conflict_border", self.0.conflict_border), - ("created", self.0.created), - ("created_background", self.0.created_background), - ("created_border", self.0.created_border), - ("deleted", self.0.deleted), - ("deleted_background", self.0.deleted_background), - ("deleted_border", self.0.deleted_border), - ("error", self.0.error), - ("error_background", self.0.error_background), - ("error_border", self.0.error_border), - ("hidden", self.0.hidden), - ("hidden_background", self.0.hidden_background), - ("hidden_border", self.0.hidden_border), - ("hint", self.0.hint), - ("hint_background", self.0.hint_background), - ("hint_border", self.0.hint_border), - ("ignored", self.0.ignored), - ("ignored_background", self.0.ignored_background), - ("ignored_border", self.0.ignored_border), - ("info", self.0.info), - ("info_background", self.0.info_background), - ("info_border", self.0.info_border), - ("modified", self.0.modified), - ("modified_background", self.0.modified_background), - ("modified_border", self.0.modified_border), - ("predictive", self.0.predictive), - ("predictive_background", self.0.predictive_background), - ("predictive_border", self.0.predictive_border), - ("renamed", self.0.renamed), - ("renamed_background", self.0.renamed_background), - ("renamed_border", self.0.renamed_border), - ("success", self.0.success), - ("success_background", self.0.success_background), - ("success_border", self.0.success_border), - ("unreachable", self.0.unreachable), - ("unreachable_background", self.0.unreachable_background), - ("unreachable_border", self.0.unreachable_border), - ("warning", self.0.warning), - ("warning_background", self.0.warning_background), - ("warning_border", self.0.warning_border), - ]; - - f.write_str("StatusColorsRefinement {")?; - - for (color_name, color) in status_colors { - if let Some(color) = color { - f.write_str(color_name)?; - f.write_str(": ")?; - f.write_str("Some(")?; - HslaPrinter(color).fmt(f)?; - f.write_str(")")?; - f.write_str(",")?; - } - } - - f.write_str("..Default::default()")?; - f.write_str("}") - } -} - -pub struct PlayerColorsPrinter<'a>(&'a PlayerColors); - -impl<'a> Debug for PlayerColorsPrinter<'a> { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_tuple("PlayerColors") - .field(&VecPrinter( - &self - .0 - .0 - .iter() - .map(|player_color| PlayerColorPrinter(player_color)) - .collect(), - )) - .finish() - } -} - -pub struct PlayerColorPrinter<'a>(&'a PlayerColor); - -impl<'a> Debug for PlayerColorPrinter<'a> { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("PlayerColor") - .field("cursor", &HslaPrinter(self.0.cursor)) - .field("background", &HslaPrinter(self.0.background)) - .field("selection", &HslaPrinter(self.0.selection)) - .finish() - } -} - -pub struct UserSyntaxThemePrinter<'a>(&'a UserSyntaxTheme); - -impl<'a> Debug for UserSyntaxThemePrinter<'a> { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("UserSyntaxTheme") - .field( - "highlights", - &VecPrinter( - &self - .0 - .highlights - .iter() - .map(|(token, highlight)| { - (IntoPrinter(token), UserHighlightStylePrinter(&highlight)) - }) - .collect(), - ), - ) - .finish() - } -} - -pub struct UserHighlightStylePrinter<'a>(&'a UserHighlightStyle); - -impl<'a> Debug for UserHighlightStylePrinter<'a> { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.write_str("UserHighlightStyle {")?; - - if let Some(color) = self.0.color { - f.write_str("color")?; - f.write_str(": ")?; - f.write_str("Some(")?; - HslaPrinter(color).fmt(f)?; - f.write_str(")")?; - f.write_str(",")?; - } - - if let Some(font_style) = self.0.font_style { - f.write_str("font_style")?; - f.write_str(": ")?; - f.write_str("Some(")?; - write!(f, "UserFontStyle::{:?}", font_style)?; - f.write_str(")")?; - f.write_str(",")?; - } - - if let Some(font_weight) = self.0.font_weight.as_ref() { - f.write_str("font_weight")?; - f.write_str(": ")?; - f.write_str("Some(")?; - write!(f, "UserFontWeight({:?})", font_weight.0)?; - f.write_str(")")?; - f.write_str(",")?; - } - - f.write_str("..Default::default()")?; - f.write_str("}") - } -} diff --git a/crates/theme_importer/src/vscode/converter.rs b/crates/theme_importer/src/vscode/converter.rs index 13297a91aa..c47f4793ad 100644 --- a/crates/theme_importer/src/vscode/converter.rs +++ b/crates/theme_importer/src/vscode/converter.rs @@ -1,30 +1,27 @@ use anyhow::Result; -use gpui::rgba; use indexmap::IndexMap; use strum::IntoEnumIterator; use theme::{ - StatusColorsRefinement, ThemeColorsRefinement, UserFontStyle, UserFontWeight, - UserHighlightStyle, UserSyntaxTheme, UserTheme, UserThemeStylesRefinement, + FontStyleContent, FontWeightContent, HighlightStyleContent, StatusColorsContent, + ThemeColorsContent, ThemeContent, ThemeStyleContent, }; -use crate::color::try_parse_color; -use crate::util::Traverse; use crate::vscode::{VsCodeTheme, VsCodeTokenScope}; use crate::ThemeMetadata; use super::ZedSyntaxToken; -pub(crate) fn try_parse_font_weight(font_style: &str) -> Option { +pub(crate) fn try_parse_font_weight(font_style: &str) -> Option { match font_style { - style if style.contains("bold") => Some(UserFontWeight::BOLD), + style if style.contains("bold") => Some(FontWeightContent::Bold), _ => None, } } -pub(crate) fn try_parse_font_style(font_style: &str) -> Option { +pub(crate) fn try_parse_font_style(font_style: &str) -> Option { match font_style { - style if style.contains("italic") => Some(UserFontStyle::Italic), - style if style.contains("oblique") => Some(UserFontStyle::Oblique), + style if style.contains("italic") => Some(FontStyleContent::Italic), + style if style.contains("oblique") => Some(FontStyleContent::Oblique), _ => None, } } @@ -48,292 +45,145 @@ impl VsCodeThemeConverter { } } - pub fn convert(self) -> Result { + pub fn convert(self) -> Result { let appearance = self.theme_metadata.appearance.into(); - let status_color_refinements = self.convert_status_colors()?; - let theme_colors_refinements = self.convert_theme_colors()?; + let status_colors = self.convert_status_colors()?; + let theme_colors = self.convert_theme_colors()?; let syntax_theme = self.convert_syntax_theme()?; - Ok(UserTheme { + Ok(ThemeContent { name: self.theme_metadata.name, appearance, - styles: UserThemeStylesRefinement { - colors: theme_colors_refinements, - status: status_color_refinements, - player: None, - syntax: Some(syntax_theme), + style: ThemeStyleContent { + colors: theme_colors, + status: status_colors, + players: Vec::new(), + syntax: syntax_theme, }, }) } - fn convert_status_colors(&self) -> Result { + fn convert_status_colors(&self) -> Result { let vscode_colors = &self.theme.colors; - let vscode_base_status_colors = StatusColorsRefinement { - hint: Some(rgba(0x969696ff).into()), + let vscode_base_status_colors = StatusColorsContent { + hint: Some("#969696ff".to_string()), ..Default::default() }; - Ok(StatusColorsRefinement { - created: vscode_colors - .editor_gutter_added_background - .as_ref() - .traverse(|color| try_parse_color(&color))?, - modified: vscode_colors - .editor_gutter_modified_background - .as_ref() - .traverse(|color| try_parse_color(&color))?, - deleted: vscode_colors - .editor_gutter_deleted_background - .as_ref() - .traverse(|color| try_parse_color(&color))?, + Ok(StatusColorsContent { + created: vscode_colors.editor_gutter_added_background.clone(), + modified: vscode_colors.editor_gutter_modified_background.clone(), + deleted: vscode_colors.editor_gutter_deleted_background.clone(), conflict: vscode_colors .git_decoration_conflicting_resource_foreground - .as_ref() - .traverse(|color| try_parse_color(&color))?, - error: vscode_colors - .error_foreground - .as_ref() - .traverse(|color| try_parse_color(&color))?, - hidden: vscode_colors - .tab_inactive_foreground - .as_ref() - .traverse(|color| try_parse_color(&color))?, + .clone(), + error: vscode_colors.error_foreground.clone(), + hidden: vscode_colors.tab_inactive_foreground.clone(), hint: vscode_colors .editor_inlay_hint_foreground - .as_ref() - .traverse(|color| try_parse_color(&color))? + .clone() .or(vscode_base_status_colors.hint), ignored: vscode_colors .git_decoration_ignored_resource_foreground - .as_ref() - .traverse(|color| try_parse_color(&color))?, + .clone(), // info: None, // renamed: None, // success: None, - warning: vscode_colors - .list_warning_foreground - .as_ref() - .traverse(|color| try_parse_color(&color))?, + warning: vscode_colors.list_warning_foreground.clone(), ..Default::default() }) } - fn convert_theme_colors(&self) -> Result { + fn convert_theme_colors(&self) -> Result { let vscode_colors = &self.theme.colors; - let vscode_panel_border = vscode_colors - .panel_border - .as_ref() - .traverse(|color| try_parse_color(&color))?; - - let vscode_tab_inactive_background = vscode_colors - .tab_inactive_background - .as_ref() - .traverse(|color| try_parse_color(&color))?; - - let vscode_editor_foreground = vscode_colors - .editor_foreground - .as_ref() - .traverse(|color| try_parse_color(&color))?; - - let vscode_editor_background = vscode_colors - .editor_background - .as_ref() - .traverse(|color| try_parse_color(&color))?; - - let vscode_scrollbar_slider_background = vscode_colors - .scrollbar_slider_background - .as_ref() - .traverse(|color| try_parse_color(&color))?; - + let vscode_panel_border = vscode_colors.panel_border.clone(); + let vscode_tab_inactive_background = vscode_colors.tab_inactive_background.clone(); + let vscode_editor_foreground = vscode_colors.editor_foreground.clone(); + let vscode_editor_background = vscode_colors.editor_background.clone(); + let vscode_scrollbar_slider_background = vscode_colors.scrollbar_slider_background.clone(); let vscode_token_colors_foreground = self .theme .token_colors .iter() .find(|token_color| token_color.scope.is_none()) .and_then(|token_color| token_color.settings.foreground.as_ref()) - .traverse(|color| try_parse_color(&color)) - .ok() - .flatten(); + .cloned(); - Ok(ThemeColorsRefinement { - border: vscode_panel_border, - border_variant: vscode_panel_border, - border_focused: vscode_colors - .focus_border - .as_ref() - .traverse(|color| try_parse_color(&color))?, - border_disabled: vscode_panel_border, - border_selected: vscode_panel_border, - border_transparent: vscode_panel_border, - elevated_surface_background: vscode_colors - .dropdown_background - .as_ref() - .traverse(|color| try_parse_color(&color))?, - surface_background: vscode_colors - .panel_background - .as_ref() - .traverse(|color| try_parse_color(&color))?, - background: vscode_editor_background, - title_bar_background: vscode_colors - .title_bar_active_background - .as_ref() - .traverse(|color| try_parse_color(&color))?, - status_bar_background: vscode_colors - .status_bar_background - .as_ref() - .traverse(|color| try_parse_color(&color))?, - element_background: vscode_colors - .button_background - .as_ref() - .traverse(|color| try_parse_color(&color))?, - element_hover: vscode_colors - .list_hover_background - .as_ref() - .traverse(|color| try_parse_color(&color))?, - element_selected: vscode_colors - .list_active_selection_background - .as_ref() - .traverse(|color| try_parse_color(&color))?, - ghost_element_hover: vscode_colors - .list_hover_background - .as_ref() - .traverse(|color| try_parse_color(&color))?, - ghost_element_selected: vscode_colors - .list_active_selection_background - .as_ref() - .traverse(|color| try_parse_color(&color))?, - drop_target_background: vscode_colors - .list_drop_background - .as_ref() - .traverse(|color| try_parse_color(&color))?, + Ok(ThemeColorsContent { + border: vscode_panel_border.clone(), + border_variant: vscode_panel_border.clone(), + border_focused: vscode_colors.focus_border.clone(), + border_disabled: vscode_panel_border.clone(), + border_selected: vscode_panel_border.clone(), + border_transparent: vscode_panel_border.clone(), + elevated_surface_background: vscode_colors.dropdown_background.clone(), + surface_background: vscode_colors.panel_background.clone(), + background: vscode_editor_background.clone(), + title_bar_background: vscode_colors.title_bar_active_background.clone(), + status_bar_background: vscode_colors.status_bar_background.clone(), + element_background: vscode_colors.button_background.clone(), + element_hover: vscode_colors.list_hover_background.clone(), + element_selected: vscode_colors.list_active_selection_background.clone(), + ghost_element_hover: vscode_colors.list_hover_background.clone(), + ghost_element_selected: vscode_colors.list_active_selection_background.clone(), + drop_target_background: vscode_colors.list_drop_background.clone(), text: vscode_colors .foreground - .as_ref() - .traverse(|color| try_parse_color(&color))? - .or(vscode_token_colors_foreground), - text_muted: vscode_colors - .tab_inactive_foreground - .as_ref() - .traverse(|color| try_parse_color(&color))?, - link_text_hover: vscode_colors - .text_link_active_foreground - .as_ref() - .traverse(|color| try_parse_color(&color))?, - tab_bar_background: vscode_colors - .editor_group_header_tabs_background - .as_ref() - .traverse(|color| try_parse_color(&color))?, + .clone() + .or(vscode_token_colors_foreground.clone()), + text_muted: vscode_colors.tab_inactive_foreground.clone(), + link_text_hover: vscode_colors.text_link_active_foreground.clone(), + tab_bar_background: vscode_colors.editor_group_header_tabs_background.clone(), tab_active_background: vscode_colors .tab_active_background - .as_ref() - .traverse(|color| try_parse_color(&color))? - .or(vscode_tab_inactive_background), - tab_inactive_background: vscode_tab_inactive_background, + .clone() + .or(vscode_tab_inactive_background.clone()), + tab_inactive_background: vscode_tab_inactive_background.clone(), toolbar_background: vscode_colors .breadcrumb_background - .as_ref() - .traverse(|color| try_parse_color(&color))? - .or(vscode_editor_background), - editor_foreground: vscode_editor_foreground.or(vscode_token_colors_foreground), - editor_background: vscode_editor_background, - editor_gutter_background: vscode_editor_background, - editor_line_number: vscode_colors - .editor_line_number_foreground - .as_ref() - .traverse(|color| try_parse_color(&color))?, - editor_active_line_number: vscode_colors - .editor_foreground - .as_ref() - .traverse(|color| try_parse_color(&color))?, - editor_wrap_guide: vscode_panel_border, - editor_active_wrap_guide: vscode_panel_border, - scrollbar_track_background: vscode_editor_background, - scrollbar_track_border: vscode_colors - .editor_overview_ruler_border - .as_ref() - .traverse(|color| try_parse_color(&color))?, - scrollbar_thumb_background: vscode_scrollbar_slider_background, - scrollbar_thumb_border: vscode_scrollbar_slider_background, + .clone() + .or(vscode_editor_background.clone()), + editor_foreground: vscode_editor_foreground + .clone() + .or(vscode_token_colors_foreground.clone()), + editor_background: vscode_editor_background.clone(), + editor_gutter_background: vscode_editor_background.clone(), + editor_line_number: vscode_colors.editor_line_number_foreground.clone(), + editor_active_line_number: vscode_colors.editor_foreground.clone(), + editor_wrap_guide: vscode_panel_border.clone(), + editor_active_wrap_guide: vscode_panel_border.clone(), + scrollbar_track_background: vscode_editor_background.clone(), + scrollbar_track_border: vscode_colors.editor_overview_ruler_border.clone(), + scrollbar_thumb_background: vscode_scrollbar_slider_background.clone(), + scrollbar_thumb_border: vscode_scrollbar_slider_background.clone(), scrollbar_thumb_hover_background: vscode_colors .scrollbar_slider_hover_background - .as_ref() - .traverse(|color| try_parse_color(&color))?, - terminal_background: vscode_colors - .terminal_background - .as_ref() - .traverse(|color| try_parse_color(&color))?, - terminal_ansi_bright_black: vscode_colors - .terminal_ansi_bright_black - .as_ref() - .traverse(|color| try_parse_color(&color))?, - terminal_ansi_bright_red: vscode_colors - .terminal_ansi_bright_red - .as_ref() - .traverse(|color| try_parse_color(&color))?, - terminal_ansi_bright_green: vscode_colors - .terminal_ansi_bright_green - .as_ref() - .traverse(|color| try_parse_color(&color))?, - terminal_ansi_bright_yellow: vscode_colors - .terminal_ansi_bright_yellow - .as_ref() - .traverse(|color| try_parse_color(&color))?, - terminal_ansi_bright_blue: vscode_colors - .terminal_ansi_bright_blue - .as_ref() - .traverse(|color| try_parse_color(&color))?, - terminal_ansi_bright_magenta: vscode_colors - .terminal_ansi_bright_magenta - .as_ref() - .traverse(|color| try_parse_color(&color))?, - terminal_ansi_bright_cyan: vscode_colors - .terminal_ansi_bright_cyan - .as_ref() - .traverse(|color| try_parse_color(&color))?, - terminal_ansi_bright_white: vscode_colors - .terminal_ansi_bright_white - .as_ref() - .traverse(|color| try_parse_color(&color))?, - terminal_ansi_black: vscode_colors - .terminal_ansi_black - .as_ref() - .traverse(|color| try_parse_color(&color))?, - terminal_ansi_red: vscode_colors - .terminal_ansi_red - .as_ref() - .traverse(|color| try_parse_color(&color))?, - terminal_ansi_green: vscode_colors - .terminal_ansi_green - .as_ref() - .traverse(|color| try_parse_color(&color))?, - terminal_ansi_yellow: vscode_colors - .terminal_ansi_yellow - .as_ref() - .traverse(|color| try_parse_color(&color))?, - terminal_ansi_blue: vscode_colors - .terminal_ansi_blue - .as_ref() - .traverse(|color| try_parse_color(&color))?, - terminal_ansi_magenta: vscode_colors - .terminal_ansi_magenta - .as_ref() - .traverse(|color| try_parse_color(&color))?, - terminal_ansi_cyan: vscode_colors - .terminal_ansi_cyan - .as_ref() - .traverse(|color| try_parse_color(&color))?, - terminal_ansi_white: vscode_colors - .terminal_ansi_white - .as_ref() - .traverse(|color| try_parse_color(&color))?, + .clone(), + terminal_background: vscode_colors.terminal_background.clone(), + terminal_ansi_bright_black: vscode_colors.terminal_ansi_bright_black.clone(), + terminal_ansi_bright_red: vscode_colors.terminal_ansi_bright_red.clone(), + terminal_ansi_bright_green: vscode_colors.terminal_ansi_bright_green.clone(), + terminal_ansi_bright_yellow: vscode_colors.terminal_ansi_bright_yellow.clone(), + terminal_ansi_bright_blue: vscode_colors.terminal_ansi_bright_blue.clone(), + terminal_ansi_bright_magenta: vscode_colors.terminal_ansi_bright_magenta.clone(), + terminal_ansi_bright_cyan: vscode_colors.terminal_ansi_bright_cyan.clone(), + terminal_ansi_bright_white: vscode_colors.terminal_ansi_bright_white.clone(), + terminal_ansi_black: vscode_colors.terminal_ansi_black.clone(), + terminal_ansi_red: vscode_colors.terminal_ansi_red.clone(), + terminal_ansi_green: vscode_colors.terminal_ansi_green.clone(), + terminal_ansi_yellow: vscode_colors.terminal_ansi_yellow.clone(), + terminal_ansi_blue: vscode_colors.terminal_ansi_blue.clone(), + terminal_ansi_magenta: vscode_colors.terminal_ansi_magenta.clone(), + terminal_ansi_cyan: vscode_colors.terminal_ansi_cyan.clone(), + terminal_ansi_white: vscode_colors.terminal_ansi_white.clone(), ..Default::default() }) } - fn convert_syntax_theme(&self) -> Result { + fn convert_syntax_theme(&self) -> Result> { let mut highlight_styles = IndexMap::new(); for syntax_token in ZedSyntaxToken::iter() { @@ -371,12 +221,8 @@ impl VsCodeThemeConverter { .unwrap_or_else(|| "no identifier".to_string()) ); - let highlight_style = UserHighlightStyle { - color: token_color - .settings - .foreground - .as_ref() - .traverse(|color| try_parse_color(&color))?, + let highlight_style = HighlightStyleContent { + color: token_color.settings.foreground.clone(), font_style: token_color .settings .font_style @@ -396,8 +242,6 @@ impl VsCodeThemeConverter { highlight_styles.insert(syntax_token.to_string(), highlight_style); } - Ok(UserSyntaxTheme { - highlights: highlight_styles.into_iter().collect(), - }) + Ok(highlight_styles) } } diff --git a/crates/theme_importer/src/zed1.rs b/crates/theme_importer/src/zed1.rs deleted file mode 100644 index 6d4fd2b235..0000000000 --- a/crates/theme_importer/src/zed1.rs +++ /dev/null @@ -1,6 +0,0 @@ -mod converter; -mod licenses; -pub mod theme; - -pub use converter::*; -pub use licenses::*; diff --git a/crates/theme_importer/src/zed1/converter.rs b/crates/theme_importer/src/zed1/converter.rs deleted file mode 100644 index 3c5f249840..0000000000 --- a/crates/theme_importer/src/zed1/converter.rs +++ /dev/null @@ -1,302 +0,0 @@ -use anyhow::{Context, Result}; -use gpui::{Hsla, Rgba}; -use theme::{ - color_alpha, Appearance, PlayerColor, PlayerColors, StatusColorsRefinement, - ThemeColorsRefinement, UserFontStyle, UserFontWeight, UserHighlightStyle, UserSyntaxTheme, - UserTheme, UserThemeStylesRefinement, -}; - -use crate::zed1::theme::{ - Color as Zed1Color, ColorScheme, HighlightStyle as Zed1HighlightStyle, Theme as Zed1Theme, - Weight, -}; - -fn zed1_color_to_hsla(color: Zed1Color) -> Hsla { - let r = color.r as f32 / 255.; - let g = color.g as f32 / 255.; - let b = color.b as f32 / 255.; - let a = color.a as f32 / 255.; - - Hsla::from(Rgba { r, g, b, a }) -} - -fn zed1_highlight_style_to_user_highlight_style( - highlight: Zed1HighlightStyle, -) -> UserHighlightStyle { - UserHighlightStyle { - color: highlight.color.map(zed1_color_to_hsla), - font_style: highlight.italic.map(|is_italic| { - if is_italic { - UserFontStyle::Italic - } else { - UserFontStyle::Normal - } - }), - font_weight: highlight.weight.map(|weight| match weight { - Weight::thin => UserFontWeight::THIN, - Weight::extra_light => UserFontWeight::EXTRA_LIGHT, - Weight::light => UserFontWeight::LIGHT, - Weight::normal => UserFontWeight::NORMAL, - Weight::medium => UserFontWeight::MEDIUM, - Weight::semibold => UserFontWeight::SEMIBOLD, - Weight::bold => UserFontWeight::BOLD, - Weight::extra_bold => UserFontWeight::EXTRA_BOLD, - Weight::black => UserFontWeight::BLACK, - }), - } -} - -pub struct Zed1ThemeConverter { - theme: Zed1Theme, -} - -impl Zed1ThemeConverter { - pub fn new(theme: Zed1Theme) -> Self { - Self { theme } - } - - pub fn convert(self) -> Result { - let appearance = match self.theme.meta.is_light { - true => Appearance::Light, - false => Appearance::Dark, - }; - - let status_colors_refinement = self.convert_status_colors()?; - let theme_colors_refinement = self.convert_theme_colors()?; - let player_colors = self.convert_player_colors()?; - let syntax_theme = self.convert_syntax_theme()?; - - Ok(UserTheme { - name: self.theme.meta.name, - appearance, - styles: UserThemeStylesRefinement { - colors: theme_colors_refinement, - status: status_colors_refinement, - player: Some(player_colors), - syntax: Some(syntax_theme), - }, - }) - } - - fn convert_status_colors(&self) -> Result { - fn convert(color: Zed1Color) -> Option { - Some(zed1_color_to_hsla(color)) - } - - let base_theme: ColorScheme = serde_json::from_value(self.theme.base_theme.clone()) - .with_context(|| "failed to parse `theme.base_theme`")?; - - let lowest = &base_theme.lowest; - - let editor = &self.theme.editor; - - Ok(StatusColorsRefinement { - created: convert(lowest.positive.default.foreground), - created_background: convert(lowest.positive.default.background), - created_border: convert(lowest.positive.default.border), - modified: convert(lowest.warning.default.foreground), - modified_background: convert(lowest.warning.default.background), - modified_border: convert(lowest.warning.default.border), - deleted: convert(lowest.negative.default.foreground), - deleted_background: convert(lowest.negative.default.background), - deleted_border: convert(lowest.negative.default.border), - success: convert(lowest.positive.default.foreground), - success_background: convert(lowest.positive.default.background), - success_border: convert(lowest.positive.default.border), - warning: convert(lowest.warning.default.foreground), - warning_background: convert(lowest.warning.default.background), - warning_border: convert(lowest.warning.default.border), - error: convert(lowest.negative.default.foreground), - error_background: convert(lowest.negative.default.background), - error_border: convert(lowest.negative.default.border), - // The `hint` color used in Zed1 is inlined from the syntax colors. - hint: editor - .hint - .color - .map(zed1_color_to_hsla) - .or(convert(lowest.accent.default.foreground)), - hint_background: convert(lowest.accent.default.background), - hint_border: convert(lowest.accent.default.border), - predictive: editor - .suggestion - .color - .map(zed1_color_to_hsla) - .or(convert(lowest.positive.default.foreground)), - predictive_background: convert(lowest.positive.default.background), - predictive_border: convert(lowest.positive.default.border), - conflict: convert(lowest.warning.default.foreground), - conflict_background: convert(lowest.warning.default.background), - conflict_border: convert(lowest.warning.default.border), - hidden: convert(lowest.base.disabled.foreground), - hidden_background: convert(lowest.base.disabled.background), - hidden_border: convert(lowest.base.disabled.border), - ignored: convert(lowest.variant.default.foreground), - ignored_background: convert(lowest.variant.default.background), - ignored_border: convert(lowest.variant.default.border), - info: convert(lowest.accent.default.foreground), - info_background: convert(lowest.accent.default.background), - info_border: convert(lowest.accent.default.border), - renamed: convert(lowest.accent.default.foreground), - renamed_background: convert(lowest.accent.default.background), - renamed_border: convert(lowest.accent.default.border), - unreachable: convert(lowest.variant.default.foreground), // TODO: Should this be transparent? - unreachable_background: convert(lowest.variant.default.background), - unreachable_border: convert(lowest.variant.default.border), - }) - } - - fn convert_player_colors(&self) -> Result { - let player_one = self.theme.editor.selection; - - let mut player_colors = vec![PlayerColor { - cursor: zed1_color_to_hsla(player_one.cursor), - selection: zed1_color_to_hsla(player_one.selection), - background: zed1_color_to_hsla(player_one.cursor), - }]; - - for index in 1..8 { - let player = self - .theme - .editor - .selection_style_for_room_participant(index); - - player_colors.push(PlayerColor { - cursor: zed1_color_to_hsla(player.cursor), - selection: zed1_color_to_hsla(player.selection), - background: zed1_color_to_hsla(player.cursor), - }); - } - - Ok(PlayerColors(player_colors)) - } - - fn convert_theme_colors(&self) -> Result { - fn convert(color: Zed1Color) -> Option { - Some(zed1_color_to_hsla(color)) - } - - let base_theme: ColorScheme = serde_json::from_value(self.theme.base_theme.clone()) - .with_context(|| "failed to parse `theme.base_theme`")?; - - let lowest = &base_theme.lowest; - let middle = &base_theme.middle; - let highest = &base_theme.highest; - - let editor = &self.theme.editor; - let terminal = &self.theme.terminal; - - Ok(ThemeColorsRefinement { - border: convert(lowest.base.default.border), - border_variant: convert(middle.variant.default.border), - border_focused: convert(lowest.accent.hovered.border), - border_selected: convert(lowest.accent.default.border), - border_transparent: Some(gpui::transparent_black()), - border_disabled: convert(lowest.base.disabled.border), - elevated_surface_background: convert(middle.base.default.background), - surface_background: convert(middle.base.default.background), - background: convert(lowest.base.default.background), - element_background: convert(lowest.on.default.background), - element_hover: convert(lowest.on.hovered.background), - element_active: convert(lowest.on.active.background), - element_selected: convert(lowest.on.active.background), // TODO: Check what this should be - element_disabled: convert(lowest.on.disabled.background), - drop_target_background: convert(self.theme.workspace.drop_target_overlay_color), - ghost_element_background: Some(gpui::transparent_black()), - ghost_element_hover: convert(lowest.on.hovered.background), - ghost_element_active: convert(lowest.on.active.background), - ghost_element_selected: convert(lowest.on.active.background), // TODO: Check what this should be - ghost_element_disabled: convert(lowest.on.disabled.background), - text: convert(lowest.base.default.foreground), - text_muted: convert(lowest.variant.default.foreground), - text_placeholder: convert(lowest.base.disabled.foreground), // TODO: What should placeholder be? - text_disabled: convert(lowest.base.disabled.foreground), - text_accent: convert(lowest.accent.default.foreground), - icon: convert(lowest.base.default.foreground), - icon_muted: convert(lowest.variant.default.foreground), - icon_disabled: convert(lowest.base.disabled.foreground), - icon_placeholder: convert(lowest.variant.default.foreground), - icon_accent: convert(lowest.accent.default.foreground), - status_bar_background: convert(lowest.base.default.background), - title_bar_background: convert(lowest.base.default.background), - toolbar_background: convert(highest.base.default.background), - tab_bar_background: convert(middle.base.default.background), - tab_inactive_background: convert(middle.base.default.background), - tab_active_background: convert(highest.base.default.background), - search_match_background: convert(highest.accent.default.background), - panel_background: convert(middle.base.default.background), - panel_focused_border: convert(lowest.accent.hovered.border), - pane_focused_border: convert(lowest.accent.hovered.border), - scrollbar_thumb_background: convert(middle.base.inverted.background) - .map(|color| color_alpha(color, 0.3)), - scrollbar_thumb_hover_background: convert(middle.base.hovered.background), - scrollbar_thumb_border: convert(middle.base.default.border), - scrollbar_track_background: Some(gpui::transparent_black()), - scrollbar_track_border: convert(highest.variant.default.border), - editor_foreground: convert(editor.text_color), - editor_background: convert(editor.background), - editor_gutter_background: convert(editor.gutter_background), - editor_subheader_background: convert(middle.base.default.background), - editor_active_line_background: convert(editor.active_line_background), - editor_highlighted_line_background: convert(editor.highlighted_line_background), - editor_line_number: convert(editor.line_number), - editor_active_line_number: convert(editor.line_number_active), - editor_invisible: convert(editor.whitespace), - editor_wrap_guide: convert(editor.wrap_guide), - editor_active_wrap_guide: convert(editor.active_wrap_guide), - editor_document_highlight_read_background: convert( - editor.document_highlight_read_background, - ), - editor_document_highlight_write_background: convert( - editor.document_highlight_write_background, - ), - terminal_background: convert(terminal.background), - terminal_foreground: convert(terminal.foreground), - terminal_bright_foreground: convert(terminal.bright_foreground), - terminal_dim_foreground: convert(terminal.dim_foreground), - terminal_ansi_black: convert(terminal.black), - terminal_ansi_bright_black: convert(terminal.bright_black), - terminal_ansi_dim_black: convert(terminal.dim_black), - terminal_ansi_red: convert(terminal.red), - terminal_ansi_bright_red: convert(terminal.bright_red), - terminal_ansi_dim_red: convert(terminal.dim_red), - terminal_ansi_green: convert(terminal.green), - terminal_ansi_bright_green: convert(terminal.bright_green), - terminal_ansi_dim_green: convert(terminal.dim_green), - terminal_ansi_yellow: convert(terminal.yellow), - terminal_ansi_bright_yellow: convert(terminal.bright_yellow), - terminal_ansi_dim_yellow: convert(terminal.dim_yellow), - terminal_ansi_blue: convert(terminal.blue), - terminal_ansi_bright_blue: convert(terminal.bright_blue), - terminal_ansi_dim_blue: convert(terminal.dim_blue), - terminal_ansi_magenta: convert(terminal.magenta), - terminal_ansi_bright_magenta: convert(terminal.bright_magenta), - terminal_ansi_dim_magenta: convert(terminal.dim_magenta), - terminal_ansi_cyan: convert(terminal.cyan), - terminal_ansi_bright_cyan: convert(terminal.bright_cyan), - terminal_ansi_dim_cyan: convert(terminal.dim_cyan), - terminal_ansi_white: convert(terminal.white), - terminal_ansi_bright_white: convert(terminal.bright_white), - terminal_ansi_dim_white: convert(terminal.dim_white), - link_text_hover: convert(highest.accent.default.foreground), - }) - } - - fn convert_syntax_theme(&self) -> Result { - Ok(UserSyntaxTheme { - highlights: self - .theme - .editor - .syntax - .highlights - .clone() - .into_iter() - .map(|(name, highlight_style)| { - ( - name, - zed1_highlight_style_to_user_highlight_style(highlight_style), - ) - }) - .collect(), - }) - } -} diff --git a/crates/theme_importer/src/zed1/licenses.rs b/crates/theme_importer/src/zed1/licenses.rs deleted file mode 100644 index 8085644714..0000000000 --- a/crates/theme_importer/src/zed1/licenses.rs +++ /dev/null @@ -1,1192 +0,0 @@ -use std::fmt::Display; - -use indoc::indoc; - -#[derive(Debug)] -pub enum License { - Mit, - // We don't currently have any themes using the Apache 2.0 license. - #[allow(unused)] - Apache2, -} - -impl Display for License { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - match self { - License::Mit => "MIT", - License::Apache2 => "Apache License 2.0", - } - ) - } -} - -pub struct Zed1ThemeLicense { - pub theme: String, - pub license: License, - pub license_url: Option, - pub license_text: &'static str, -} - -pub fn zed1_theme_licenses() -> Vec { - vec![ - Zed1ThemeLicense { - theme: "One Dark".to_string(), - license: License::Mit, - license_url: Some( - "https://github.com/atom/atom/tree/master/packages/one-dark-ui".to_string(), - ), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2014 GitHub Inc. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "One Light".to_string(), - license: License::Mit, - license_url: Some( - "https://github.com/atom/atom/tree/master/packages/one-light-ui".to_string(), - ), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2014 GitHub Inc. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Ayu Light".to_string(), - license: License::Mit, - license_url: Some("https://github.com/dempfi/ayu".to_string()), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2016 Ike Ku - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Ayu Dark".to_string(), - license: License::Mit, - license_url: Some("https://github.com/dempfi/ayu".to_string()), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2016 Ike Ku - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Ayu Mirage".to_string(), - license: License::Mit, - license_url: Some("https://github.com/dempfi/ayu".to_string()), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2016 Ike Ku - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Gruvbox Dark".to_string(), - license: License::Mit, - license_url: Some("https://github.com/morhetz/gruvbox".to_string()), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Gruvbox Dark Hard".to_string(), - license: License::Mit, - license_url: Some("https://github.com/morhetz/gruvbox".to_string()), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Gruvbox Dark Soft".to_string(), - license: License::Mit, - license_url: Some("https://github.com/morhetz/gruvbox".to_string()), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Gruvbox Light".to_string(), - license: License::Mit, - license_url: Some("https://github.com/morhetz/gruvbox".to_string()), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Gruvbox Light Hard".to_string(), - license: License::Mit, - license_url: Some("https://github.com/morhetz/gruvbox".to_string()), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Gruvbox Light Soft".to_string(), - license: License::Mit, - license_url: Some("https://github.com/morhetz/gruvbox".to_string()), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Rosé Pine".to_string(), - license: License::Mit, - license_url: Some("https://github.com/edunfelt/base16-rose-pine-scheme".to_string()), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2021 Emilia Dunfelt - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Rosé Pine Dawn".to_string(), - license: License::Mit, - license_url: Some("https://github.com/edunfelt/base16-rose-pine-scheme".to_string()), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2021 Emilia Dunfelt - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Rosé Pine Moon".to_string(), - license: License::Mit, - license_url: Some("https://github.com/edunfelt/base16-rose-pine-scheme".to_string()), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2021 Emilia Dunfelt - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Sandcastle".to_string(), - license: License::Mit, - license_url: Some("https://github.com/gessig/base16-sandcastle-scheme".to_string()), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2019 George Essig - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Solarized Dark".to_string(), - license: License::Mit, - license_url: Some("https://github.com/altercation/solarized".to_string()), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2011 Ethan Schoonover - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Solarized Light".to_string(), - license: License::Mit, - license_url: Some("https://github.com/altercation/solarized".to_string()), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2011 Ethan Schoonover - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Andromeda".to_string(), - license: License::Mit, - license_url: Some("https://github.com/EliverLara/Andromeda".to_string()), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2017 - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Summercamp".to_string(), - license: License::Mit, - license_url: Some("https://github.com/zoefiri/base16-sc".to_string()), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2019 Zoe FiriH - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Atelier Cave Dark".to_string(), - license: License::Mit, - license_url: Some( - "https://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave/" - .to_string(), - ), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2023 Bram de Haan, http://atelierbramdehaan.nl - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Atelier Cave Light".to_string(), - license: License::Mit, - license_url: Some( - "https://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave/" - .to_string(), - ), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2023 Bram de Haan, http://atelierbramdehaan.nl - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Atelier Dune Dark".to_string(), - license: License::Mit, - license_url: Some( - "https://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave/" - .to_string(), - ), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2023 Bram de Haan, http://atelierbramdehaan.nl - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Atelier Dune Light".to_string(), - license: License::Mit, - license_url: Some( - "https://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave/" - .to_string(), - ), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2023 Bram de Haan, http://atelierbramdehaan.nl - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Atelier Estuary Dark".to_string(), - license: License::Mit, - license_url: Some( - "https://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave/" - .to_string(), - ), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2023 Bram de Haan, http://atelierbramdehaan.nl - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Atelier Estuary Light".to_string(), - license: License::Mit, - license_url: Some( - "https://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave/" - .to_string(), - ), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2023 Bram de Haan, http://atelierbramdehaan.nl - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Atelier Forest Dark".to_string(), - license: License::Mit, - license_url: Some( - "https://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave/" - .to_string(), - ), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2023 Bram de Haan, http://atelierbramdehaan.nl - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Atelier Forest Light".to_string(), - license: License::Mit, - license_url: Some( - "https://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave/" - .to_string(), - ), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2023 Bram de Haan, http://atelierbramdehaan.nl - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Atelier Heath Dark".to_string(), - license: License::Mit, - license_url: Some( - "https://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave/" - .to_string(), - ), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2023 Bram de Haan, http://atelierbramdehaan.nl - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Atelier Heath Light".to_string(), - license: License::Mit, - license_url: Some( - "https://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave/" - .to_string(), - ), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2023 Bram de Haan, http://atelierbramdehaan.nl - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Atelier Lakeside Dark".to_string(), - license: License::Mit, - license_url: Some( - "https://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave/" - .to_string(), - ), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2023 Bram de Haan, http://atelierbramdehaan.nl - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Atelier Lakeside Light".to_string(), - license: License::Mit, - license_url: Some( - "https://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave/" - .to_string(), - ), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2023 Bram de Haan, http://atelierbramdehaan.nl - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Atelier Plateau Dark".to_string(), - license: License::Mit, - license_url: Some( - "https://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave/" - .to_string(), - ), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2023 Bram de Haan, http://atelierbramdehaan.nl - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Atelier Plateau Light".to_string(), - license: License::Mit, - license_url: Some( - "https://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave/" - .to_string(), - ), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2023 Bram de Haan, http://atelierbramdehaan.nl - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Atelier Savanna Dark".to_string(), - license: License::Mit, - license_url: Some( - "https://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave/" - .to_string(), - ), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2023 Bram de Haan, http://atelierbramdehaan.nl - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Atelier Savanna Light".to_string(), - license: License::Mit, - license_url: Some( - "https://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave/" - .to_string(), - ), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2023 Bram de Haan, http://atelierbramdehaan.nl - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Atelier Seaside Dark".to_string(), - license: License::Mit, - license_url: Some( - "https://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave/" - .to_string(), - ), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2023 Bram de Haan, http://atelierbramdehaan.nl - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Atelier Seaside Light".to_string(), - license: License::Mit, - license_url: Some( - "https://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave/" - .to_string(), - ), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2023 Bram de Haan, http://atelierbramdehaan.nl - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Atelier Sulphurpool Dark".to_string(), - license: License::Mit, - license_url: Some( - "https://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave/" - .to_string(), - ), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2023 Bram de Haan, http://atelierbramdehaan.nl - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - Zed1ThemeLicense { - theme: "Atelier Sulphurpool Light".to_string(), - license: License::Mit, - license_url: Some( - "https://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave/" - .to_string(), - ), - license_text: indoc! {r#" - The MIT License (MIT) - - Copyright (c) 2023 Bram de Haan, http://atelierbramdehaan.nl - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - "#}, - }, - ] -} diff --git a/crates/theme_importer/src/zed1/theme.rs b/crates/theme_importer/src/zed1/theme.rs deleted file mode 100644 index 70efb6ab2b..0000000000 --- a/crates/theme_importer/src/zed1/theme.rs +++ /dev/null @@ -1,1518 +0,0 @@ -#![allow(unused)] - -use std::borrow::Cow; -use std::collections::HashMap; -use std::fmt; -use std::ops::{Deref, DerefMut}; -use std::sync::Arc; - -use pathfinder_color::ColorU; -use serde::de::{self, DeserializeOwned, Unexpected}; -use serde::{Deserialize, Deserializer}; -use serde_json::{self, Value}; - -#[derive(Clone, Copy, Default, PartialEq, Eq, Hash, PartialOrd, Ord)] -#[repr(transparent)] -pub struct Color(pub ColorU); - -impl Color { - pub fn from_u32(rgba: u32) -> Self { - Self(ColorU::from_u32(rgba)) - } -} - -impl Deref for Color { - type Target = ColorU; - fn deref(&self) -> &Self::Target { - &self.0 - } -} - -impl DerefMut for Color { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } -} - -impl fmt::Debug for Color { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - self.0.fmt(f) - } -} - -impl<'de> Deserialize<'de> for Color { - fn deserialize(deserializer: D) -> Result - where - D: Deserializer<'de>, - { - let literal: Cow = Deserialize::deserialize(deserializer)?; - if let Some(digits) = literal.strip_prefix('#') { - if let Ok(value) = u32::from_str_radix(digits, 16) { - if digits.len() == 6 { - return Ok(Color::from_u32((value << 8) | 0xFF)); - } else if digits.len() == 8 { - return Ok(Color::from_u32(value)); - } - } - } - Err(de::Error::invalid_value( - Unexpected::Str(literal.as_ref()), - &"#RRGGBB[AA]", - )) - } -} - -#[derive(Clone, Debug, Default, Deserialize)] -pub struct TextStyle { - pub color: Color, -} - -#[derive(Clone, Debug, Default)] -pub struct HighlightStyle { - pub color: Option, - pub weight: Option, - pub italic: Option, -} - -impl<'de> Deserialize<'de> for HighlightStyle { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - #[derive(Deserialize)] - struct HighlightStyleJson { - color: Option, - weight: Option, - italic: Option, - } - - let json = serde_json::Value::deserialize(deserializer)?; - if json.is_object() { - let style: HighlightStyleJson = - serde_json::from_value(json).map_err(de::Error::custom)?; - - Ok(Self { - color: style.color, - weight: style.weight, - italic: style.italic, - }) - } else { - Ok(Self { - color: serde_json::from_value(json).map_err(de::Error::custom)?, - ..Default::default() - }) - } - } -} - -#[allow(non_camel_case_types)] -#[derive(Clone, Debug, Deserialize)] -pub enum Weight { - thin, - extra_light, - light, - normal, - medium, - semibold, - bold, - extra_bold, - black, -} - -#[derive(Clone, Copy, Debug, Default, Deserialize)] -pub struct ContainerStyle { - #[serde(rename = "background")] - pub background_color: Option, - #[serde(rename = "overlay")] - pub overlay_color: Option, - #[serde(default)] - pub border: Border, -} - -#[derive(Clone, Deserialize, Default)] -pub struct SvgStyle { - pub color: Color, -} - -#[derive(Clone, Deserialize, Default)] -pub struct IconStyle { - pub icon: SvgStyle, - pub container: ContainerStyle, -} - -#[derive(Copy, Clone, Debug, Default)] -pub struct Border { - pub color: Color, - pub width: f32, - pub overlay: bool, - pub top: bool, - pub bottom: bool, - pub left: bool, - pub right: bool, -} - -impl<'de> Deserialize<'de> for Border { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - #[derive(Deserialize)] - struct BorderData { - pub width: f32, - pub color: Color, - #[serde(default)] - pub overlay: bool, - #[serde(default)] - pub top: bool, - #[serde(default)] - pub right: bool, - #[serde(default)] - pub bottom: bool, - #[serde(default)] - pub left: bool, - } - - let data = BorderData::deserialize(deserializer)?; - let mut border = Border { - width: data.width, - color: data.color, - overlay: data.overlay, - top: data.top, - bottom: data.bottom, - left: data.left, - right: data.right, - }; - if !border.top && !border.bottom && !border.left && !border.right { - border.top = true; - border.bottom = true; - border.left = true; - border.right = true; - } - Ok(border) - } -} - -#[derive(Clone, Deserialize, Default)] -pub struct TooltipStyle { - #[serde(flatten)] - pub container: ContainerStyle, - pub text: TextStyle, - keystroke: KeystrokeStyle, - pub max_text_width: Option, -} - -#[derive(Clone, Deserialize, Default)] -pub struct KeystrokeStyle { - #[serde(flatten)] - container: ContainerStyle, - #[serde(flatten)] - text: TextStyle, -} - -#[derive(Copy, Clone, Default, Deserialize)] -pub struct ImageStyle { - #[serde(default)] - pub border: Border, - #[serde(default)] - pub corner_radius: f32, - #[serde(default)] - pub height: Option, - #[serde(default)] - pub width: Option, - #[serde(default)] - pub grayscale: bool, -} - -#[derive(Deserialize, Default)] -pub struct Theme { - #[serde(default)] - pub meta: ThemeMeta, - pub workspace: Workspace, - pub context_menu: ContextMenu, - pub toolbar_dropdown_menu: DropdownMenu, - pub copilot: Copilot, - pub collab_panel: CollabPanel, - pub project_panel: ProjectPanel, - pub chat_panel: ChatPanel, - pub notification_panel: NotificationPanel, - pub command_palette: CommandPalette, - pub picker: Picker, - pub editor: Editor, - pub search: Search, - pub project_diagnostics: ProjectDiagnostics, - pub shared_screen: ContainerStyle, - pub contact_notification: ContactNotification, - pub update_notification: UpdateNotification, - pub simple_message_notification: MessageNotification, - pub project_shared_notification: ProjectSharedNotification, - pub incoming_call_notification: IncomingCallNotification, - pub tooltip: TooltipStyle, - pub terminal: TerminalStyle, - pub assistant: AssistantStyle, - pub feedback: FeedbackStyle, - pub welcome: WelcomeStyle, - pub titlebar: Titlebar, - // Nathan: New elements are styled in Rust, directly from the base theme. - // We store it on the legacy theme so we can mix both kinds of elements during the transition. - pub base_theme: serde_json::Value, -} - -#[derive(Deserialize, Default, Clone)] -pub struct ThemeMeta { - #[serde(skip_deserializing)] - pub id: usize, - pub name: String, - pub is_light: bool, -} - -#[derive(Deserialize, Default)] -pub struct Workspace { - pub background: Color, - pub blank_pane: BlankPaneStyle, - pub tab_bar: TabBar, - pub pane_divider: Border, - pub leader_border_opacity: f32, - pub leader_border_width: f32, - pub dock: Dock, - pub status_bar: StatusBar, - pub toolbar: Toolbar, - pub disconnected_overlay: ContainedText, - pub modal: ContainerStyle, - pub zoomed_panel_foreground: ContainerStyle, - pub zoomed_pane_foreground: ContainerStyle, - pub zoomed_background: ContainerStyle, - pub notification: ContainerStyle, - pub notifications: Notifications, - pub joining_project_avatar: ImageStyle, - pub joining_project_message: ContainedText, - pub external_location_message: ContainedText, - pub drop_target_overlay_color: Color, -} - -#[derive(Clone, Deserialize, Default)] -pub struct BlankPaneStyle { - pub logo: SvgStyle, - pub logo_shadow: SvgStyle, - pub logo_container: ContainerStyle, - pub keyboard_hints: ContainerStyle, - pub keyboard_hint: Interactive, - pub keyboard_hint_width: f32, -} - -#[derive(Clone, Deserialize, Default)] -pub struct Titlebar { - #[serde(flatten)] - pub container: ContainerStyle, - pub height: f32, - pub menu: TitlebarMenu, - pub project_menu_button: Toggleable>, - pub git_menu_button: Toggleable>, - pub project_host: Interactive, - pub item_spacing: f32, - pub face_pile_spacing: f32, - pub avatar_ribbon: AvatarRibbon, - pub follower_avatar_overlap: f32, - pub leader_selection: ContainerStyle, - pub offline_icon: OfflineIcon, - pub leader_avatar: AvatarStyle, - pub follower_avatar: AvatarStyle, - pub inactive_avatar_grayscale: bool, - pub sign_in_button: Toggleable>, - pub outdated_warning: ContainedText, - pub share_button: Toggleable>, - pub muted: Color, - pub speaking: Color, - pub screen_share_button: Toggleable>, - pub toggle_contacts_button: Toggleable>, - pub toggle_microphone_button: Toggleable>, - pub toggle_speakers_button: Toggleable>, - pub leave_call_button: Interactive, - pub toggle_contacts_badge: ContainerStyle, - pub user_menu: UserMenu, -} - -#[derive(Clone, Deserialize, Default)] -pub struct TitlebarMenu { - pub width: f32, - pub height: f32, -} - -#[derive(Clone, Deserialize, Default)] -pub struct UserMenu { - pub user_menu_button_online: UserMenuButton, - pub user_menu_button_offline: UserMenuButton, -} - -#[derive(Clone, Deserialize, Default)] -pub struct UserMenuButton { - pub user_menu: Toggleable>, - pub avatar: AvatarStyle, - pub icon: Icon, -} - -#[derive(Copy, Clone, Deserialize, Default)] -pub struct AvatarStyle { - #[serde(flatten)] - pub image: ImageStyle, - pub outer_width: f32, - pub outer_corner_radius: f32, -} - -#[derive(Deserialize, Default, Clone)] -pub struct Copilot { - pub out_link_icon: Interactive, - // pub modal: ModalStyle, - pub auth: CopilotAuth, -} - -pub type CopilotCTAButton = Interactive; - -#[derive(Deserialize, Default, Clone)] -pub struct CopilotAuth { - pub content_width: f32, - pub prompting: CopilotAuthPrompting, - pub not_authorized: CopilotAuthNotAuthorized, - pub authorized: CopilotAuthAuthorized, - pub cta_button: CopilotCTAButton, - pub header: IconStyle, -} - -#[derive(Deserialize, Default, Clone)] -pub struct CopilotAuthPrompting { - pub subheading: ContainedText, - pub hint: ContainedText, - pub device_code: DeviceCode, -} - -#[derive(Deserialize, Default, Clone)] -pub struct DeviceCode { - pub text: TextStyle, - pub cta: CopilotCTAButton, - pub left: f32, - pub left_container: ContainerStyle, - pub right: f32, - pub right_container: Interactive, -} - -#[derive(Deserialize, Default, Clone)] -pub struct CopilotAuthNotAuthorized { - pub subheading: ContainedText, - pub warning: ContainedText, -} - -#[derive(Deserialize, Default, Clone)] -pub struct CopilotAuthAuthorized { - pub subheading: ContainedText, - pub hint: ContainedText, -} - -#[derive(Deserialize, Default)] -pub struct CollabPanel { - #[serde(flatten)] - pub container: ContainerStyle, - // pub disclosure: DisclosureStyle<()>, - pub list_empty_state: Toggleable>, - pub list_empty_icon: Icon, - pub list_empty_label_container: ContainerStyle, - pub log_in_button: Interactive, - pub channel_editor: ContainerStyle, - pub channel_hash: Icon, - pub channel_note_active_color: Color, - pub tabbed_modal: TabbedModal, - pub contact_finder: ContactFinder, - pub channel_modal: ChannelModal, - pub user_query_editor: FieldEditor, - pub user_query_editor_height: f32, - pub leave_call_button: Toggleable>, - pub add_contact_button: Toggleable>, - pub add_channel_button: Toggleable>, - pub header_row: ContainedText, - pub dragged_over_header: ContainerStyle, - pub subheader_row: Toggleable>, - pub leave_call: Interactive, - pub contact_row: Toggleable>, - pub channel_row: Toggleable>, - pub channel_name: Toggleable, - pub row_height: f32, - pub project_row: Toggleable>, - pub tree_branch: Toggleable>, - pub contact_avatar: ImageStyle, - pub channel_avatar: ImageStyle, - pub extra_participant_label: ContainedText, - pub contact_status_free: ContainerStyle, - pub contact_status_busy: ContainerStyle, - pub contact_username: ContainedText, - pub contact_button: Interactive, - pub contact_button_spacing: f32, - pub channel_indent: f32, - pub disabled_button: IconButton, - pub section_icon_size: f32, - pub calling_indicator: ContainedText, - pub face_overlap: f32, -} - -#[derive(Deserialize, Default)] -pub struct TabbedModal { - pub tab_button: Toggleable>, - pub modal: ContainerStyle, - pub header: ContainerStyle, - pub body: ContainerStyle, - pub title: ContainedText, - pub visibility_toggle: Interactive, - pub channel_link: Interactive, - pub picker: Picker, - pub max_height: f32, - pub max_width: f32, - pub row_height: f32, -} - -#[derive(Deserialize, Default)] -pub struct ChannelModal { - pub contact_avatar: ImageStyle, - pub contact_username: ContainerStyle, - pub remove_member_button: ContainedText, - pub cancel_invite_button: ContainedText, - pub member_icon: IconButton, - pub invitee_icon: IconButton, - pub member_tag: ContainedText, -} - -#[derive(Deserialize, Default)] -pub struct ProjectRow { - #[serde(flatten)] - pub container: ContainerStyle, - pub icon: Icon, - pub name: ContainedText, -} - -#[derive(Deserialize, Default, Clone, Copy)] -pub struct TreeBranch { - pub width: f32, - pub color: Color, -} - -#[derive(Deserialize, Default)] -pub struct ContactFinder { - pub contact_avatar: ImageStyle, - pub contact_username: ContainerStyle, - pub contact_button: IconButton, - pub disabled_contact_button: IconButton, -} - -#[derive(Deserialize, Default)] -pub struct DropdownMenu { - #[serde(flatten)] - pub container: ContainerStyle, - pub header: Interactive, - pub section_header: ContainedText, - pub item: Toggleable>, - pub row_height: f32, -} - -#[derive(Deserialize, Default)] -pub struct DropdownMenuItem { - #[serde(flatten)] - pub container: ContainerStyle, - #[serde(flatten)] - pub text: TextStyle, - pub secondary_text: Option, - #[serde(default)] - pub secondary_text_spacing: f32, -} - -#[derive(Clone, Deserialize, Default)] -pub struct TabBar { - #[serde(flatten)] - pub container: ContainerStyle, - pub pane_button: Toggleable>, - pub pane_button_container: ContainerStyle, - pub active_pane: TabStyles, - pub inactive_pane: TabStyles, - pub dragged_tab: Tab, - pub height: f32, - pub nav_button: Interactive, -} - -impl TabBar { - pub fn tab_style(&self, pane_active: bool, tab_active: bool) -> &Tab { - let tabs = if pane_active { - &self.active_pane - } else { - &self.inactive_pane - }; - - if tab_active { - &tabs.active_tab - } else { - &tabs.inactive_tab - } - } -} - -#[derive(Clone, Deserialize, Default)] -pub struct TabStyles { - pub active_tab: Tab, - pub inactive_tab: Tab, -} - -#[derive(Clone, Deserialize, Default)] -pub struct AvatarRibbon { - #[serde(flatten)] - pub container: ContainerStyle, - pub width: f32, - pub height: f32, -} - -#[derive(Clone, Deserialize, Default)] -pub struct OfflineIcon { - #[serde(flatten)] - pub container: ContainerStyle, - pub width: f32, - pub color: Color, -} - -#[derive(Clone, Debug, Deserialize, Default)] -pub struct LabelStyle { - pub text: TextStyle, - pub highlight_text: Option, -} - -#[derive(Clone, Deserialize, Default)] -pub struct Tab { - pub height: f32, - #[serde(flatten)] - pub container: ContainerStyle, - #[serde(flatten)] - pub label: LabelStyle, - pub description: ContainedText, - pub spacing: f32, - pub close_icon_width: f32, - pub type_icon_width: f32, - pub icon_close: Color, - pub icon_close_active: Color, - pub icon_dirty: Color, - pub icon_conflict: Color, - pub git: GitProjectStatus, -} - -#[derive(Clone, Deserialize, Default)] -pub struct Toolbar { - #[serde(flatten)] - pub container: ContainerStyle, - pub height: f32, - pub item_spacing: f32, - pub toggleable_tool: Toggleable>, - pub toggleable_text_tool: Toggleable>, - pub breadcrumb_height: f32, - pub breadcrumbs: Interactive, -} - -#[derive(Clone, Deserialize, Default)] -pub struct Notifications { - #[serde(flatten)] - pub container: ContainerStyle, - pub width: f32, -} - -#[derive(Clone, Deserialize, Default)] -pub struct Search { - #[serde(flatten)] - pub container: ContainerStyle, - pub editor: FindEditor, - pub invalid_editor: ContainerStyle, - pub option_button_group: ContainerStyle, - pub include_exclude_editor: FindEditor, - pub invalid_include_exclude_editor: ContainerStyle, - pub include_exclude_inputs: ContainedText, - pub option_button_component: ToggleIconButtonStyle, - pub match_background: Color, - pub match_index: ContainedText, - pub major_results_status: TextStyle, - pub minor_results_status: TextStyle, - pub editor_icon: IconStyle, - pub mode_button: Toggleable>, - pub nav_button: Toggleable>, - pub search_bar_row_height: f32, - pub search_row_spacing: f32, - pub option_button_height: f32, - pub modes_container: ContainerStyle, - pub replace_icon: IconStyle, - // Used for filters and replace - pub option_button: Toggleable>, - pub action_button: IconButtonStyle, -} - -#[derive(Clone, Deserialize, Default)] -pub struct FindEditor { - #[serde(flatten)] - pub input: FieldEditor, - pub min_width: f32, - pub max_width: f32, -} - -#[derive(Deserialize, Default)] -pub struct StatusBar { - #[serde(flatten)] - pub container: ContainerStyle, - pub height: f32, - pub item_spacing: f32, - pub cursor_position: TextStyle, - pub vim_mode_indicator: ContainedText, - pub active_language: Interactive, - pub auto_update_progress_message: TextStyle, - pub auto_update_done_message: TextStyle, - pub lsp_status: Interactive, - pub panel_buttons: StatusBarPanelButtons, - pub diagnostic_summary: Interactive, - pub diagnostic_message: Interactive, -} - -#[derive(Deserialize, Default)] -pub struct StatusBarPanelButtons { - pub group_left: ContainerStyle, - pub group_bottom: ContainerStyle, - pub group_right: ContainerStyle, - pub button: Toggleable>, -} - -#[derive(Deserialize, Default)] -pub struct StatusBarDiagnosticSummary { - pub container_ok: ContainerStyle, - pub container_warning: ContainerStyle, - pub container_error: ContainerStyle, - pub text: TextStyle, - pub icon_color_ok: Color, - pub icon_color_warning: Color, - pub icon_color_error: Color, - pub height: f32, - pub icon_width: f32, - pub icon_spacing: f32, - pub summary_spacing: f32, -} - -#[derive(Deserialize, Default)] -pub struct StatusBarLspStatus { - #[serde(flatten)] - pub container: ContainerStyle, - pub height: f32, - pub icon_spacing: f32, - pub icon_color: Color, - pub icon_width: f32, - pub message: TextStyle, -} - -#[derive(Deserialize, Default)] -pub struct Dock { - pub left: ContainerStyle, - pub bottom: ContainerStyle, - pub right: ContainerStyle, -} - -#[derive(Clone, Deserialize, Default)] -pub struct PanelButton { - #[serde(flatten)] - pub container: ContainerStyle, - pub icon_color: Color, - pub icon_size: f32, - pub label: ContainedText, -} - -#[derive(Deserialize, Default)] -pub struct ProjectPanel { - #[serde(flatten)] - pub container: ContainerStyle, - pub entry: Toggleable>, - pub dragged_entry: ProjectPanelEntry, - pub ignored_entry: Toggleable>, - pub cut_entry: Toggleable>, - pub filename_editor: FieldEditor, - pub indent_width: f32, - pub open_project_button: Interactive, -} - -#[derive(Clone, Debug, Deserialize, Default)] -pub struct ProjectPanelEntry { - pub height: f32, - #[serde(flatten)] - pub container: ContainerStyle, - pub text: TextStyle, - pub icon_size: f32, - pub icon_color: Color, - pub chevron_color: Color, - pub chevron_size: f32, - pub icon_spacing: f32, - pub status: EntryStatus, -} - -#[derive(Clone, Debug, Deserialize, Default)] -pub struct EntryStatus { - pub git: GitProjectStatus, -} - -#[derive(Clone, Debug, Deserialize, Default)] -pub struct GitProjectStatus { - pub modified: Color, - pub inserted: Color, - pub conflict: Color, -} - -#[derive(Clone, Debug, Deserialize, Default)] -pub struct ContextMenu { - #[serde(flatten)] - pub container: ContainerStyle, - pub item: Toggleable>, - pub keystroke_margin: f32, - pub separator: ContainerStyle, -} - -#[derive(Clone, Debug, Deserialize, Default)] -pub struct ContextMenuItem { - #[serde(flatten)] - pub container: ContainerStyle, - pub label: TextStyle, - pub keystroke: ContainedText, - pub icon_width: f32, - pub icon_spacing: f32, -} - -#[derive(Debug, Deserialize, Default)] -pub struct CommandPalette { - pub key: Toggleable, - pub keystroke_spacing: f32, -} - -#[derive(Deserialize, Default)] -pub struct InviteLink { - #[serde(flatten)] - pub container: ContainerStyle, - #[serde(flatten)] - pub label: LabelStyle, - pub icon: Icon, -} - -#[derive(Deserialize, Clone, Copy, Default)] -pub struct Icon { - #[serde(flatten)] - pub container: ContainerStyle, - pub color: Color, - pub width: f32, -} - -#[derive(Deserialize, Clone, Copy, Default)] -pub struct IconButton { - #[serde(flatten)] - pub container: ContainerStyle, - pub color: Color, - pub icon_width: f32, - pub button_width: f32, -} - -#[derive(Deserialize, Default)] -pub struct ChatPanel { - #[serde(flatten)] - pub container: ContainerStyle, - pub list: ContainerStyle, - pub channel_select: ChannelSelect, - pub input_editor: FieldEditor, - pub avatar: AvatarStyle, - pub avatar_container: ContainerStyle, - pub rich_text: RichTextStyle, - pub message_sender: ContainedText, - pub message_timestamp: ContainedText, - pub message: Interactive, - pub continuation_message: Interactive, - pub pending_message: Interactive, - pub last_message_bottom_spacing: f32, - pub sign_in_prompt: Interactive, - pub icon_button: Interactive, -} - -#[derive(Clone, Deserialize, Default)] -pub struct RichTextStyle { - pub text: TextStyle, - pub mention_highlight: HighlightStyle, - pub mention_background: Option, - pub self_mention_highlight: HighlightStyle, - pub self_mention_background: Option, - pub code_background: Option, -} - -#[derive(Deserialize, Default)] -pub struct NotificationPanel { - #[serde(flatten)] - pub container: ContainerStyle, - pub title: ContainedText, - pub title_icon: SvgStyle, - pub title_height: f32, - pub list: ContainerStyle, - pub avatar: AvatarStyle, - pub avatar_container: ContainerStyle, - pub sign_in_prompt: Interactive, - pub icon_button: Interactive, - pub unread_text: ContainedText, - pub read_text: ContainedText, - pub timestamp: ContainedText, - pub button: Interactive, -} - -#[derive(Deserialize, Default)] -pub struct ChannelSelect { - #[serde(flatten)] - pub container: ContainerStyle, - pub header: ChannelName, - pub item: ChannelName, - pub active_item: ChannelName, - pub hovered_item: ChannelName, - pub menu: ContainerStyle, -} - -#[derive(Deserialize, Default)] -pub struct ChannelName { - #[serde(flatten)] - pub container: ContainerStyle, - pub hash: ContainedText, - pub name: TextStyle, -} - -#[derive(Clone, Deserialize, Default)] -pub struct Picker { - #[serde(flatten)] - pub container: ContainerStyle, - pub empty_container: ContainerStyle, - pub input_editor: FieldEditor, - pub empty_input_editor: FieldEditor, - pub no_matches: ContainedLabel, - pub item: Toggleable>, - pub header: ContainedLabel, - pub footer: Interactive, -} - -#[derive(Clone, Debug, Deserialize, Default)] -pub struct ContainedText { - #[serde(flatten)] - pub container: ContainerStyle, - #[serde(flatten)] - pub text: TextStyle, -} - -#[derive(Clone, Debug, Deserialize, Default)] -pub struct ContainedLabel { - #[serde(flatten)] - pub container: ContainerStyle, - #[serde(flatten)] - pub label: LabelStyle, -} - -#[derive(Clone, Deserialize, Default)] -pub struct ProjectDiagnostics { - #[serde(flatten)] - pub container: ContainerStyle, - pub empty_message: TextStyle, - pub tab_icon_width: f32, - pub tab_icon_spacing: f32, - pub tab_summary_spacing: f32, -} - -#[derive(Deserialize, Default)] -pub struct ContactNotification { - pub header_avatar: ImageStyle, - pub header_message: ContainedText, - pub header_height: f32, - pub body_message: ContainedText, - pub button: Interactive, - pub dismiss_button: Interactive, -} - -#[derive(Deserialize, Default)] -pub struct UpdateNotification { - pub message: ContainedText, - pub action_message: Interactive, - pub dismiss_button: Interactive, -} - -#[derive(Deserialize, Default)] -pub struct MessageNotification { - pub message: ContainedText, - pub action_message: Interactive, - pub dismiss_button: Interactive, -} - -#[derive(Deserialize, Default)] -pub struct ProjectSharedNotification { - pub window_height: f32, - pub window_width: f32, - #[serde(default)] - pub background: Color, - pub owner_container: ContainerStyle, - pub owner_avatar: ImageStyle, - pub owner_metadata: ContainerStyle, - pub owner_username: ContainedText, - pub message: ContainedText, - pub worktree_roots: ContainedText, - pub button_width: f32, - pub open_button: ContainedText, - pub dismiss_button: ContainedText, -} - -#[derive(Deserialize, Default)] -pub struct IncomingCallNotification { - pub window_height: f32, - pub window_width: f32, - #[serde(default)] - pub background: Color, - pub caller_container: ContainerStyle, - pub caller_avatar: ImageStyle, - pub caller_metadata: ContainerStyle, - pub caller_username: ContainedText, - pub caller_message: ContainedText, - pub worktree_roots: ContainedText, - pub button_width: f32, - pub accept_button: ContainedText, - pub decline_button: ContainedText, -} - -#[derive(Clone, Deserialize, Default)] -pub struct Editor { - pub text_color: Color, - #[serde(default)] - pub background: Color, - pub selection: SelectionStyle, - pub gutter_background: Color, - pub gutter_padding_factor: f32, - pub active_line_background: Color, - pub highlighted_line_background: Color, - pub rename_fade: f32, - pub document_highlight_read_background: Color, - pub document_highlight_write_background: Color, - pub diff: DiffStyle, - pub wrap_guide: Color, - pub active_wrap_guide: Color, - pub line_number: Color, - pub line_number_active: Color, - pub guest_selections: Vec, - pub absent_selection: SelectionStyle, - pub syntax: Arc, - pub hint: HighlightStyle, - pub suggestion: HighlightStyle, - pub diagnostic_path_header: DiagnosticPathHeader, - pub diagnostic_header: DiagnosticHeader, - pub error_diagnostic: DiagnosticStyle, - pub invalid_error_diagnostic: DiagnosticStyle, - pub warning_diagnostic: DiagnosticStyle, - pub invalid_warning_diagnostic: DiagnosticStyle, - pub information_diagnostic: DiagnosticStyle, - pub invalid_information_diagnostic: DiagnosticStyle, - pub hint_diagnostic: DiagnosticStyle, - pub invalid_hint_diagnostic: DiagnosticStyle, - pub autocomplete: AutocompleteStyle, - pub code_actions: CodeActions, - pub folds: Folds, - pub unnecessary_code_fade: f32, - pub hover_popover: HoverPopover, - pub link_definition: HighlightStyle, - pub composition_mark: HighlightStyle, - pub jump_icon: Interactive, - pub scrollbar: Scrollbar, - pub whitespace: Color, -} - -#[derive(Clone, Deserialize, Default)] -pub struct Scrollbar { - pub track: ContainerStyle, - pub thumb: ContainerStyle, - pub width: f32, - pub min_height_factor: f32, - pub git: BufferGitDiffColors, - pub selections: Color, -} - -#[derive(Clone, Deserialize, Default)] -pub struct BufferGitDiffColors { - pub inserted: Color, - pub modified: Color, - pub deleted: Color, -} - -#[derive(Clone, Deserialize, Default)] -pub struct DiagnosticPathHeader { - #[serde(flatten)] - pub container: ContainerStyle, - pub filename: ContainedText, - pub path: ContainedText, - pub text_scale_factor: f32, -} - -#[derive(Clone, Deserialize, Default)] -pub struct DiagnosticHeader { - #[serde(flatten)] - pub container: ContainerStyle, - pub source: ContainedLabel, - pub message: ContainedLabel, - pub code: ContainedText, - pub text_scale_factor: f32, - pub icon_width_factor: f32, -} - -#[derive(Clone, Deserialize, Default)] -pub struct DiagnosticStyle { - pub message: LabelStyle, - #[serde(default)] - pub header: ContainerStyle, - pub text_scale_factor: f32, -} - -#[derive(Clone, Deserialize, Default)] -pub struct AutocompleteStyle { - #[serde(flatten)] - pub container: ContainerStyle, - pub item: ContainerStyle, - pub selected_item: ContainerStyle, - pub hovered_item: ContainerStyle, - pub match_highlight: HighlightStyle, - pub completion_min_width: f32, - pub completion_max_width: f32, - pub inline_docs_container: ContainerStyle, - pub inline_docs_color: Color, - pub inline_docs_size_percent: f32, - pub alongside_docs_max_width: f32, - pub alongside_docs_container: ContainerStyle, -} - -#[derive(Clone, Copy, Default, Deserialize)] -pub struct SelectionStyle { - pub cursor: Color, - pub selection: Color, -} - -#[derive(Clone, Deserialize, Default)] -pub struct FieldEditor { - #[serde(flatten)] - pub container: ContainerStyle, - pub text: TextStyle, - #[serde(default)] - pub placeholder_text: Option, - pub selection: SelectionStyle, -} - -#[derive(Clone, Deserialize, Default)] -pub struct InteractiveColor { - pub color: Color, -} - -#[derive(Clone, Deserialize, Default)] -pub struct CodeActions { - #[serde(default)] - pub indicator: Toggleable>, - pub vertical_scale: f32, -} - -#[derive(Clone, Deserialize, Default)] -pub struct Folds { - pub indicator: Toggleable>, - pub ellipses: FoldEllipses, - pub fold_background: Color, - pub icon_margin_scale: f32, - pub folded_icon: String, - pub foldable_icon: String, -} - -#[derive(Clone, Deserialize, Default)] -pub struct FoldEllipses { - pub text_color: Color, - pub background: Interactive, - pub corner_radius_factor: f32, -} - -#[derive(Clone, Deserialize, Default)] -pub struct DiffStyle { - pub inserted: Color, - pub modified: Color, - pub deleted: Color, - pub removed_width_em: f32, - pub width_em: f32, - pub corner_radius: f32, -} - -#[derive(Debug, Default, Clone, Copy)] -pub struct Interactive { - pub default: T, - pub hovered: Option, - pub clicked: Option, - pub disabled: Option, -} - -impl Deref for Interactive { - type Target = T; - - fn deref(&self) -> &Self::Target { - &self.default - } -} - -impl Interactive<()> { - pub fn new_blank() -> Self { - Self { - default: (), - hovered: None, - clicked: None, - disabled: None, - } - } -} - -#[derive(Clone, Copy, Debug, Default, Deserialize)] -pub struct Toggleable { - active: T, - inactive: T, -} - -impl Deref for Toggleable { - type Target = T; - - fn deref(&self) -> &Self::Target { - &self.inactive - } -} - -impl Toggleable<()> { - pub fn new_blank() -> Self { - Self { - active: (), - inactive: (), - } - } -} - -impl Toggleable { - pub fn new(active: T, inactive: T) -> Self { - Self { active, inactive } - } - pub fn in_state(&self, active: bool) -> &T { - if active { - &self.active - } else { - &self.inactive - } - } - pub fn active_state(&self) -> &T { - self.in_state(true) - } - - pub fn inactive_state(&self) -> &T { - self.in_state(false) - } -} - -impl Interactive { - pub fn disabled_style(&self) -> &T { - self.disabled.as_ref().unwrap_or(&self.default) - } -} - -impl Toggleable> { - pub fn default_style(&self) -> &T { - &self.inactive.default - } -} - -impl<'de, T: DeserializeOwned> Deserialize<'de> for Interactive { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - #[derive(Deserialize)] - struct Helper { - default: Value, - hovered: Option, - clicked: Option, - disabled: Option, - } - - let json = Helper::deserialize(deserializer)?; - - let deserialize_state = |state_json: Option| -> Result, D::Error> { - if let Some(mut state_json) = state_json { - if let Value::Object(state_json) = &mut state_json { - if let Value::Object(default) = &json.default { - for (key, value) in default { - if !state_json.contains_key(key) { - state_json.insert(key.clone(), value.clone()); - } - } - } - } - Ok(Some( - serde_json::from_value::(state_json).map_err(serde::de::Error::custom)?, - )) - } else { - Ok(None) - } - }; - - let hovered = deserialize_state(json.hovered)?; - let clicked = deserialize_state(json.clicked)?; - let disabled = deserialize_state(json.disabled)?; - let default = serde_json::from_value(json.default).map_err(serde::de::Error::custom)?; - - Ok(Interactive { - default, - hovered, - clicked, - disabled, - }) - } -} - -impl Editor { - pub fn selection_style_for_room_participant(&self, participant_index: u32) -> SelectionStyle { - if self.guest_selections.is_empty() { - return SelectionStyle::default(); - } - let style_ix = participant_index as usize % self.guest_selections.len(); - self.guest_selections[style_ix] - } -} - -#[derive(Default)] -pub struct SyntaxTheme { - pub highlights: Vec<(String, HighlightStyle)>, -} - -impl SyntaxTheme { - pub fn new(highlights: Vec<(String, HighlightStyle)>) -> Self { - Self { highlights } - } -} - -impl<'de> Deserialize<'de> for SyntaxTheme { - fn deserialize(deserializer: D) -> Result - where - D: serde::Deserializer<'de>, - { - let syntax_data: HashMap = Deserialize::deserialize(deserializer)?; - - let mut result = Self::new(Vec::new()); - for (key, style) in syntax_data { - match result - .highlights - .binary_search_by(|(needle, _)| needle.cmp(&key)) - { - Ok(i) | Err(i) => { - result.highlights.insert(i, (key, style)); - } - } - } - - Ok(result) - } -} - -#[derive(Clone, Deserialize, Default)] -pub struct HoverPopover { - pub container: ContainerStyle, - pub info_container: ContainerStyle, - pub warning_container: ContainerStyle, - pub error_container: ContainerStyle, - pub block_style: ContainerStyle, - pub prose: TextStyle, - pub diagnostic_source_highlight: HighlightStyle, - pub highlight: Color, -} - -#[derive(Clone, Deserialize, Default)] -pub struct TerminalStyle { - pub black: Color, - pub red: Color, - pub green: Color, - pub yellow: Color, - pub blue: Color, - pub magenta: Color, - pub cyan: Color, - pub white: Color, - pub bright_black: Color, - pub bright_red: Color, - pub bright_green: Color, - pub bright_yellow: Color, - pub bright_blue: Color, - pub bright_magenta: Color, - pub bright_cyan: Color, - pub bright_white: Color, - pub foreground: Color, - pub background: Color, - pub modal_background: Color, - pub cursor: Color, - pub dim_black: Color, - pub dim_red: Color, - pub dim_green: Color, - pub dim_yellow: Color, - pub dim_blue: Color, - pub dim_magenta: Color, - pub dim_cyan: Color, - pub dim_white: Color, - pub bright_foreground: Color, - pub dim_foreground: Color, -} - -#[derive(Clone, Deserialize, Default)] -pub struct AssistantStyle { - pub container: ContainerStyle, - pub hamburger_button: Interactive, - pub split_button: Interactive, - pub assist_button: Interactive, - pub quote_button: Interactive, - pub zoom_in_button: Interactive, - pub zoom_out_button: Interactive, - pub plus_button: Interactive, - pub title: ContainedText, - pub message_header: ContainerStyle, - pub sent_at: ContainedText, - pub user_sender: Interactive, - pub assistant_sender: Interactive, - pub system_sender: Interactive, - pub model: Interactive, - pub remaining_tokens: ContainedText, - pub low_remaining_tokens: ContainedText, - pub no_remaining_tokens: ContainedText, - pub error_icon: Icon, - pub api_key_editor: FieldEditor, - pub api_key_prompt: ContainedText, - pub saved_conversation: SavedConversation, - pub inline: InlineAssistantStyle, -} - -#[derive(Clone, Deserialize, Default)] -pub struct ButtonStyle { - #[serde(flatten)] - pub container: ContainerStyle, - // TODO: These are incorrect for the intended usage of the buttons. - // The size should be constant, but putting them here duplicates them - // across the states the buttons can be in - pub button_width: Option, - pub button_height: Option, - #[serde(flatten)] - contents: C, -} - -pub type IconButtonStyle = Interactive>; -pub type ToggleIconButtonStyle = Toggleable; - -#[derive(Clone, Deserialize, Default)] -pub struct InlineAssistantStyle { - #[serde(flatten)] - pub container: ContainerStyle, - pub editor: FieldEditor, - pub disabled_editor: FieldEditor, - pub pending_edit_background: Color, - pub include_conversation: ToggleIconButtonStyle, - pub retrieve_context: ToggleIconButtonStyle, - pub context_status: ContextStatusStyle, -} - -#[derive(Clone, Deserialize, Default)] -pub struct ContextStatusStyle { - pub error_icon: Icon, - pub in_progress_icon: Icon, - pub complete_icon: Icon, -} - -#[derive(Clone, Deserialize, Default)] -pub struct Contained { - container: ContainerStyle, - contained: T, -} - -#[derive(Clone, Deserialize, Default)] -pub struct SavedConversation { - pub container: Interactive, - pub saved_at: ContainedText, - pub title: ContainedText, -} - -#[derive(Clone, Deserialize, Default)] -pub struct FeedbackStyle { - pub submit_button: Interactive, - pub button_margin: f32, - pub info_text_default: ContainedText, - pub link_text_default: ContainedText, - pub link_text_hover: ContainedText, -} - -#[derive(Clone, Deserialize, Default)] -pub struct CheckboxStyle { - pub icon: SvgStyle, - pub label: ContainedText, - pub default: ContainerStyle, - pub checked: ContainerStyle, - pub hovered: ContainerStyle, - pub hovered_and_checked: ContainerStyle, -} - -#[derive(Clone, Deserialize, Default)] -pub struct WelcomeStyle { - pub page_width: f32, - pub logo: SvgStyle, - pub logo_subheading: ContainedText, - pub usage_note: ContainedText, - pub checkbox: CheckboxStyle, - pub checkbox_container: ContainerStyle, - pub button: Interactive, - pub button_group: ContainerStyle, - pub heading_group: ContainerStyle, - pub checkbox_group: ContainerStyle, -} - -#[derive(Clone, Deserialize, Default)] -pub struct ColorScheme { - pub name: String, - pub is_light: bool, - pub lowest: Layer, - pub middle: Layer, - pub highest: Layer, -} - -#[derive(Clone, Deserialize, Default)] -pub struct Player { - pub cursor: Color, - pub selection: Color, -} - -#[derive(Clone, Deserialize, Default)] -pub struct RampSet { - pub neutral: Vec, - pub red: Vec, - pub orange: Vec, - pub yellow: Vec, - pub green: Vec, - pub cyan: Vec, - pub blue: Vec, - pub violet: Vec, - pub magenta: Vec, -} - -#[derive(Clone, Deserialize, Default)] -pub struct Layer { - pub base: StyleSet, - pub variant: StyleSet, - pub on: StyleSet, - pub accent: StyleSet, - pub positive: StyleSet, - pub warning: StyleSet, - pub negative: StyleSet, -} - -#[derive(Clone, Deserialize, Default)] -pub struct StyleSet { - pub default: Style, - pub active: Style, - pub disabled: Style, - pub hovered: Style, - pub pressed: Style, - pub inverted: Style, -} - -#[derive(Clone, Deserialize, Default)] -pub struct Style { - pub background: Color, - pub border: Color, - pub foreground: Color, -}