Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
theme2: Add Sandcastle theme
Marshall Bowerscee8175c1956
diff --git a/crates/theme2/src/registry.rs b/crates/theme2/src/registry.rsindex bf46fa661fe..5c4373d68f5 100644--- a/crates/theme2/src/registry.rs+++ b/crates/theme2/src/registry.rs@@ -1,4 +1,7 @@-use crate::{themes::one_dark, Theme, ThemeMetadata};+use crate::{+ themes::{one_dark, sandcastle},+ Theme, ThemeMetadata,+};use anyhow::{anyhow, Result};use gpui2::SharedString;use std::{collections::HashMap, sync::Arc};@@ -37,7 +40,7 @@ impl Default for ThemeRegistry {themes: HashMap::default(),};- this.insert_themes([one_dark()]);+ this.insert_themes([one_dark(), sandcastle()]);this}diff --git a/crates/theme2/src/themes/mod.rs b/crates/theme2/src/themes/mod.rsindex 62fed0b2c19..f86a5e88650 100644--- a/crates/theme2/src/themes/mod.rs+++ b/crates/theme2/src/themes/mod.rs@@ -1,3 +1,5 @@mod one_dark;+mod sandcastle;pub use one_dark::*;+pub use sandcastle::*;diff --git a/crates/theme2/src/themes/sandcastle.rs b/crates/theme2/src/themes/sandcastle.rsnew file mode 100644index 00000000000..c7cd9fc4459--- /dev/null+++ b/crates/theme2/src/themes/sandcastle.rs@@ -0,0 +1,95 @@+use gpui2::rgba;++use crate::{PlayerTheme, SyntaxTheme, Theme, ThemeMetadata};++pub fn sandcastle() -> Theme {+ Theme {+ metadata: ThemeMetadata {+ name: "Sandcastle".into(),+ is_light: false,+ },+ transparent: rgba(0x00000000).into(),+ mac_os_traffic_light_red: rgba(0xec695eff).into(),+ mac_os_traffic_light_yellow: rgba(0xf4bf4eff).into(),+ mac_os_traffic_light_green: rgba(0x61c553ff).into(),+ border: rgba(0x3d4350ff).into(),+ border_variant: rgba(0x3d4350ff).into(),+ border_focused: rgba(0x223131ff).into(),+ border_transparent: rgba(0x00000000).into(),+ elevated_surface: rgba(0x333944ff).into(),+ surface: rgba(0x2b3038ff).into(),+ background: rgba(0x333944ff).into(),+ filled_element: rgba(0x333944ff).into(),+ filled_element_hover: rgba(0xffffff1e).into(),+ filled_element_active: rgba(0xffffff28).into(),+ filled_element_selected: rgba(0x171e1eff).into(),+ filled_element_disabled: rgba(0x00000000).into(),+ ghost_element: rgba(0x00000000).into(),+ ghost_element_hover: rgba(0xffffff14).into(),+ ghost_element_active: rgba(0xffffff1e).into(),+ ghost_element_selected: rgba(0x171e1eff).into(),+ ghost_element_disabled: rgba(0x00000000).into(),+ text: rgba(0xfdf4c1ff).into(),+ text_muted: rgba(0xa69782ff).into(),+ text_placeholder: rgba(0xb3627aff).into(),+ text_disabled: rgba(0x827568ff).into(),+ text_accent: rgba(0x518b8bff).into(),+ icon_muted: rgba(0xa69782ff).into(),+ syntax: SyntaxTheme {+ comment: rgba(0xff00ffff).into(),+ string: rgba(0xff00ffff).into(),+ function: rgba(0xff00ffff).into(),+ keyword: rgba(0xff00ffff).into(),+ highlights: Vec::new(),+ },+ status_bar: rgba(0x333944ff).into(),+ title_bar: rgba(0x333944ff).into(),+ toolbar: rgba(0x282c33ff).into(),+ tab_bar: rgba(0x2b3038ff).into(),+ editor: rgba(0x282c33ff).into(),+ editor_subheader: rgba(0x2b3038ff).into(),+ editor_active_line: rgba(0x2b3038ff).into(),+ terminal: rgba(0x282c33ff).into(),+ image_fallback_background: rgba(0x333944ff).into(),+ git_created: rgba(0x83a598ff).into(),+ git_modified: rgba(0x518b8bff).into(),+ git_deleted: rgba(0xb3627aff).into(),+ git_conflict: rgba(0xa07d3aff).into(),+ git_ignored: rgba(0x827568ff).into(),+ git_renamed: rgba(0xa07d3aff).into(),+ players: [+ PlayerTheme {+ cursor: rgba(0x518b8bff).into(),+ selection: rgba(0x518b8b3d).into(),+ },+ PlayerTheme {+ cursor: rgba(0x83a598ff).into(),+ selection: rgba(0x83a5983d).into(),+ },+ PlayerTheme {+ cursor: rgba(0xa87222ff).into(),+ selection: rgba(0xa872223d).into(),+ },+ PlayerTheme {+ cursor: rgba(0xa07d3aff).into(),+ selection: rgba(0xa07d3a3d).into(),+ },+ PlayerTheme {+ cursor: rgba(0xd75f5fff).into(),+ selection: rgba(0xd75f5f3d).into(),+ },+ PlayerTheme {+ cursor: rgba(0x83a598ff).into(),+ selection: rgba(0x83a5983d).into(),+ },+ PlayerTheme {+ cursor: rgba(0xb3627aff).into(),+ selection: rgba(0xb3627a3d).into(),+ },+ PlayerTheme {+ cursor: rgba(0xa07d3aff).into(),+ selection: rgba(0xa07d3a3d).into(),+ },+ ],+ }+}