Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Pull in colors for selected ghost elements
Marshall Bowers27501d292977
diff --git a/crates/theme2/src/themes/andromeda.rs b/crates/theme2/src/themes/andromeda.rsindex 8ff4b6887fd..031dd510252 100644--- a/crates/theme2/src/themes/andromeda.rs+++ b/crates/theme2/src/themes/andromeda.rs@@ -33,6 +33,7 @@ pub fn andromeda() -> UserThemeFamily {element_selected: Some(rgba(0x23262eff).into()),drop_target_background: Some(rgba(0x3a404eff).into()),ghost_element_hover: Some(rgba(0x23262eff).into()),+ ghost_element_selected: Some(rgba(0x23262eff).into()),text: Some(rgba(0xd5ced9ff).into()),status_bar_background: Some(rgba(0x23262eff).into()),title_bar_background: Some(rgba(0x23262eff).into()),@@ -238,6 +239,7 @@ pub fn andromeda() -> UserThemeFamily {element_selected: Some(rgba(0x23262eff).into()),drop_target_background: Some(rgba(0x3a404eff).into()),ghost_element_hover: Some(rgba(0x23262eff).into()),+ ghost_element_selected: Some(rgba(0x23262eff).into()),text: Some(rgba(0xd5ced9ff).into()),status_bar_background: Some(rgba(0x23262eff).into()),title_bar_background: Some(rgba(0x23262eff).into()),diff --git a/crates/theme2/src/themes/ayu.rs b/crates/theme2/src/themes/ayu.rsindex 92bdb32f6f1..1d6bb1634cf 100644--- a/crates/theme2/src/themes/ayu.rs+++ b/crates/theme2/src/themes/ayu.rs@@ -32,6 +32,7 @@ pub fn ayu() -> UserThemeFamily {element_hover: Some(rgba(0x56728f1f).into()),element_selected: Some(rgba(0x56728f1f).into()),ghost_element_hover: Some(rgba(0x56728f1f).into()),+ ghost_element_selected: Some(rgba(0x56728f1f).into()),text: Some(rgba(0x8a9199ff).into()),status_bar_background: Some(rgba(0xf8f9faff).into()),title_bar_background: Some(rgba(0xf8f9faff).into()),@@ -331,6 +332,7 @@ pub fn ayu() -> UserThemeFamily {element_hover: Some(rgba(0x63759926).into()),element_selected: Some(rgba(0x63759926).into()),ghost_element_hover: Some(rgba(0x63759926).into()),+ ghost_element_selected: Some(rgba(0x63759926).into()),text: Some(rgba(0x707a8cff).into()),status_bar_background: Some(rgba(0x1f2430ff).into()),title_bar_background: Some(rgba(0x1f2430ff).into()),@@ -630,6 +632,7 @@ pub fn ayu() -> UserThemeFamily {element_hover: Some(rgba(0x47526640).into()),element_selected: Some(rgba(0x47526640).into()),ghost_element_hover: Some(rgba(0x47526640).into()),+ ghost_element_selected: Some(rgba(0x47526640).into()),text: Some(rgba(0x565b66ff).into()),status_bar_background: Some(rgba(0x0b0e14ff).into()),title_bar_background: Some(rgba(0x0b0e14ff).into()),diff --git a/crates/theme2/src/themes/dracula.rs b/crates/theme2/src/themes/dracula.rsindex d4c395831c9..795d7d5083e 100644--- a/crates/theme2/src/themes/dracula.rs+++ b/crates/theme2/src/themes/dracula.rs@@ -32,6 +32,7 @@ pub fn dracula() -> UserThemeFamily {element_selected: Some(rgba(0x44475aff).into()),drop_target_background: Some(rgba(0x44475aff).into()),ghost_element_hover: Some(rgba(0x44475a75).into()),+ ghost_element_selected: Some(rgba(0x44475aff).into()),text: Some(rgba(0xf8f8f2ff).into()),status_bar_background: Some(rgba(0x191a21ff).into()),title_bar_background: Some(rgba(0x21222cff).into()),diff --git a/crates/theme2/src/themes/gruvbox.rs b/crates/theme2/src/themes/gruvbox.rsindex 106c18868bb..6d0851bbee7 100644--- a/crates/theme2/src/themes/gruvbox.rs+++ b/crates/theme2/src/themes/gruvbox.rs@@ -32,6 +32,7 @@ pub fn gruvbox() -> UserThemeFamily {element_selected: Some(rgba(0x3c383680).into()),drop_target_background: Some(rgba(0x3c3836ff).into()),ghost_element_hover: Some(rgba(0x3c383680).into()),+ ghost_element_selected: Some(rgba(0x3c383680).into()),text: Some(rgba(0xebdbb2ff).into()),status_bar_background: Some(rgba(0x1d2021ff).into()),title_bar_background: Some(rgba(0x1d2021ff).into()),@@ -317,6 +318,7 @@ pub fn gruvbox() -> UserThemeFamily {element_selected: Some(rgba(0x3c383680).into()),drop_target_background: Some(rgba(0x3c3836ff).into()),ghost_element_hover: Some(rgba(0x3c383680).into()),+ ghost_element_selected: Some(rgba(0x3c383680).into()),text: Some(rgba(0xebdbb2ff).into()),status_bar_background: Some(rgba(0x282828ff).into()),title_bar_background: Some(rgba(0x282828ff).into()),@@ -602,6 +604,7 @@ pub fn gruvbox() -> UserThemeFamily {element_selected: Some(rgba(0x3c383680).into()),drop_target_background: Some(rgba(0x3c3836ff).into()),ghost_element_hover: Some(rgba(0x3c383680).into()),+ ghost_element_selected: Some(rgba(0x3c383680).into()),text: Some(rgba(0xebdbb2ff).into()),status_bar_background: Some(rgba(0x32302fff).into()),title_bar_background: Some(rgba(0x32302fff).into()),@@ -887,6 +890,7 @@ pub fn gruvbox() -> UserThemeFamily {element_selected: Some(rgba(0xebdbb280).into()),drop_target_background: Some(rgba(0xebdbb2ff).into()),ghost_element_hover: Some(rgba(0xebdbb280).into()),+ ghost_element_selected: Some(rgba(0xebdbb280).into()),text: Some(rgba(0x3c3836ff).into()),status_bar_background: Some(rgba(0xf9f5d7ff).into()),title_bar_background: Some(rgba(0xf9f5d7ff).into()),@@ -1172,6 +1176,7 @@ pub fn gruvbox() -> UserThemeFamily {element_selected: Some(rgba(0xebdbb280).into()),drop_target_background: Some(rgba(0xebdbb2ff).into()),ghost_element_hover: Some(rgba(0xebdbb280).into()),+ ghost_element_selected: Some(rgba(0xebdbb280).into()),text: Some(rgba(0x3c3836ff).into()),status_bar_background: Some(rgba(0xfbf1c7ff).into()),title_bar_background: Some(rgba(0xfbf1c7ff).into()),@@ -1457,6 +1462,7 @@ pub fn gruvbox() -> UserThemeFamily {element_selected: Some(rgba(0xebdbb280).into()),drop_target_background: Some(rgba(0xebdbb2ff).into()),ghost_element_hover: Some(rgba(0xebdbb280).into()),+ ghost_element_selected: Some(rgba(0xebdbb280).into()),text: Some(rgba(0x3c3836ff).into()),status_bar_background: Some(rgba(0xf2e5bcff).into()),title_bar_background: Some(rgba(0xf2e5bcff).into()),diff --git a/crates/theme2/src/themes/night_owl.rs b/crates/theme2/src/themes/night_owl.rsindex 8e4743e3718..cb4278526dd 100644--- a/crates/theme2/src/themes/night_owl.rs+++ b/crates/theme2/src/themes/night_owl.rs@@ -33,6 +33,7 @@ pub fn night_owl() -> UserThemeFamily {element_selected: Some(rgba(0x234d708c).into()),drop_target_background: Some(rgba(0x011627ff).into()),ghost_element_hover: Some(rgba(0x011627ff).into()),+ ghost_element_selected: Some(rgba(0x234d708c).into()),text: Some(rgba(0xd6deebff).into()),status_bar_background: Some(rgba(0x011627ff).into()),title_bar_background: Some(rgba(0x011627ff).into()),@@ -283,6 +284,7 @@ pub fn night_owl() -> UserThemeFamily {element_hover: Some(rgba(0xd3e8f8ff).into()),element_selected: Some(rgba(0xd3e8f8ff).into()),ghost_element_hover: Some(rgba(0xd3e8f8ff).into()),+ ghost_element_selected: Some(rgba(0xd3e8f8ff).into()),text: Some(rgba(0x403f53ff).into()),status_bar_background: Some(rgba(0xf0f0f0ff).into()),title_bar_background: Some(rgba(0xf0f0f0ff).into()),diff --git a/crates/theme2/src/themes/noctis.rs b/crates/theme2/src/themes/noctis.rsindex 3a9203c8045..e1497f57aba 100644--- a/crates/theme2/src/themes/noctis.rs+++ b/crates/theme2/src/themes/noctis.rs@@ -33,6 +33,7 @@ pub fn noctis() -> UserThemeFamily {element_selected: Some(rgba(0x0c3f5fff).into()),drop_target_background: Some(rgba(0x002a4dff).into()),ghost_element_hover: Some(rgba(0x00558a65).into()),+ ghost_element_selected: Some(rgba(0x0c3f5fff).into()),text: Some(rgba(0xbecfdaff).into()),status_bar_background: Some(rgba(0x07273bff).into()),title_bar_background: Some(rgba(0x07273bff).into()),@@ -303,6 +304,7 @@ pub fn noctis() -> UserThemeFamily {element_selected: Some(rgba(0x5c2e3e99).into()),drop_target_background: Some(rgba(0x38292eff).into()),ghost_element_hover: Some(rgba(0x533641ff).into()),+ ghost_element_selected: Some(rgba(0x5c2e3e99).into()),text: Some(rgba(0xcbbec2ff).into()),status_bar_background: Some(rgba(0x322a2dff).into()),title_bar_background: Some(rgba(0x322a2dff).into()),@@ -573,6 +575,7 @@ pub fn noctis() -> UserThemeFamily {element_selected: Some(rgba(0xb6e1e7ff).into()),drop_target_background: Some(rgba(0xb2cacdff).into()),ghost_element_hover: Some(rgba(0xd1eafaff).into()),+ ghost_element_selected: Some(rgba(0xb6e1e7ff).into()),text: Some(rgba(0x005661ff).into()),status_bar_background: Some(rgba(0xcaedf2ff).into()),title_bar_background: Some(rgba(0xe7f2f3ff).into()),@@ -843,6 +846,7 @@ pub fn noctis() -> UserThemeFamily {element_selected: Some(rgba(0xbcb6e7ff).into()),drop_target_background: Some(rgba(0xafaad4aa).into()),ghost_element_hover: Some(rgba(0xd2ccffff).into()),+ ghost_element_selected: Some(rgba(0xbcb6e7ff).into()),text: Some(rgba(0x0c006bff).into()),status_bar_background: Some(rgba(0xe2dff6ff).into()),title_bar_background: Some(rgba(0xedecf8ff).into()),@@ -1113,6 +1117,7 @@ pub fn noctis() -> UserThemeFamily {element_selected: Some(rgba(0xb6e1e7ff).into()),drop_target_background: Some(rgba(0xcdcbb2ff).into()),ghost_element_hover: Some(rgba(0xd2f3f9ff).into()),+ ghost_element_selected: Some(rgba(0xb6e1e7ff).into()),text: Some(rgba(0x005661ff).into()),status_bar_background: Some(rgba(0xf0e9d6ff).into()),title_bar_background: Some(rgba(0xf9f1e1ff).into()),@@ -1383,6 +1388,7 @@ pub fn noctis() -> UserThemeFamily {element_selected: Some(rgba(0x2c414eff).into()),drop_target_background: Some(rgba(0x152837ff).into()),ghost_element_hover: Some(rgba(0x00558aff).into()),+ ghost_element_selected: Some(rgba(0x2c414eff).into()),text: Some(rgba(0xc5cdd3ff).into()),status_bar_background: Some(rgba(0x1b2932ff).into()),title_bar_background: Some(rgba(0x1b2932ff).into()),@@ -1653,6 +1659,7 @@ pub fn noctis() -> UserThemeFamily {element_selected: Some(rgba(0x0e6671ff).into()),drop_target_background: Some(rgba(0x00404dff).into()),ghost_element_hover: Some(rgba(0x0b515bff).into()),+ ghost_element_selected: Some(rgba(0x0e6671ff).into()),text: Some(rgba(0xb2cacdff).into()),status_bar_background: Some(rgba(0x041d20ff).into()),title_bar_background: Some(rgba(0x041d20ff).into()),@@ -1923,6 +1930,7 @@ pub fn noctis() -> UserThemeFamily {element_selected: Some(rgba(0x0e6671ff).into()),drop_target_background: Some(rgba(0x00404dff).into()),ghost_element_hover: Some(rgba(0x0b515bff).into()),+ ghost_element_selected: Some(rgba(0x0e6671ff).into()),text: Some(rgba(0xb2cacdff).into()),status_bar_background: Some(rgba(0x031417ff).into()),title_bar_background: Some(rgba(0x031417ff).into()),@@ -2193,6 +2201,7 @@ pub fn noctis() -> UserThemeFamily {element_selected: Some(rgba(0x0e6671ff).into()),drop_target_background: Some(rgba(0x00404dff).into()),ghost_element_hover: Some(rgba(0x0b515bff).into()),+ ghost_element_selected: Some(rgba(0x0e6671ff).into()),text: Some(rgba(0xb2cacdff).into()),status_bar_background: Some(rgba(0x031417ff).into()),title_bar_background: Some(rgba(0x031417ff).into()),@@ -2463,6 +2472,7 @@ pub fn noctis() -> UserThemeFamily {element_selected: Some(rgba(0x332e5cff).into()),drop_target_background: Some(rgba(0x202040ff).into()),ghost_element_hover: Some(rgba(0x383866ff).into()),+ ghost_element_selected: Some(rgba(0x332e5cff).into()),text: Some(rgba(0xc5c2d6ff).into()),status_bar_background: Some(rgba(0x292640ff).into()),title_bar_background: Some(rgba(0x292640ff).into()),@@ -2733,6 +2743,7 @@ pub fn noctis() -> UserThemeFamily {element_selected: Some(rgba(0x472e60ff).into()),drop_target_background: Some(rgba(0x302040ff).into()),ghost_element_hover: Some(rgba(0x6a448dff).into()),+ ghost_element_selected: Some(rgba(0x472e60ff).into()),text: Some(rgba(0xccbfd9ff).into()),status_bar_background: Some(rgba(0x30243dff).into()),title_bar_background: Some(rgba(0x30243dff).into()),diff --git a/crates/theme2/src/themes/nord.rs b/crates/theme2/src/themes/nord.rsindex e8d2bdc8b75..c5634bebcfd 100644--- a/crates/theme2/src/themes/nord.rs+++ b/crates/theme2/src/themes/nord.rs@@ -32,6 +32,7 @@ pub fn nord() -> UserThemeFamily {element_selected: Some(rgba(0x88c0d0ff).into()),drop_target_background: Some(rgba(0x88c0d099).into()),ghost_element_hover: Some(rgba(0x3b4252ff).into()),+ ghost_element_selected: Some(rgba(0x88c0d0ff).into()),text: Some(rgba(0xd8dee9ff).into()),status_bar_background: Some(rgba(0x3b4252ff).into()),title_bar_background: Some(rgba(0x2e3440ff).into()),diff --git a/crates/theme2/src/themes/palenight.rs b/crates/theme2/src/themes/palenight.rsindex 82f8418e0d3..1cebdc83e22 100644--- a/crates/theme2/src/themes/palenight.rs+++ b/crates/theme2/src/themes/palenight.rs@@ -33,6 +33,7 @@ pub fn palenight() -> UserThemeFamily {element_selected: Some(rgba(0x7e57c2ff).into()),drop_target_background: Some(rgba(0x2e3245ff).into()),ghost_element_hover: Some(rgba(0x0000001a).into()),+ ghost_element_selected: Some(rgba(0x7e57c2ff).into()),text: Some(rgba(0xffffffff).into()),status_bar_background: Some(rgba(0x282c3dff).into()),title_bar_background: Some(rgba(0x292d3eff).into()),@@ -312,6 +313,7 @@ pub fn palenight() -> UserThemeFamily {element_selected: Some(rgba(0x7e57c2ff).into()),drop_target_background: Some(rgba(0x2e3245ff).into()),ghost_element_hover: Some(rgba(0x0000001a).into()),+ ghost_element_selected: Some(rgba(0x7e57c2ff).into()),text: Some(rgba(0xffffffff).into()),status_bar_background: Some(rgba(0x282c3dff).into()),title_bar_background: Some(rgba(0x292d3eff).into()),@@ -591,6 +593,7 @@ pub fn palenight() -> UserThemeFamily {element_selected: Some(rgba(0x7e57c2ff).into()),drop_target_background: Some(rgba(0x2e3245ff).into()),ghost_element_hover: Some(rgba(0x0000001a).into()),+ ghost_element_selected: Some(rgba(0x7e57c2ff).into()),text: Some(rgba(0xffffffff).into()),status_bar_background: Some(rgba(0x25293aff).into()),title_bar_background: Some(rgba(0x25293aff).into()),diff --git a/crates/theme2/src/themes/rose_pine.rs b/crates/theme2/src/themes/rose_pine.rsindex d115eca6d31..91b79821c86 100644--- a/crates/theme2/src/themes/rose_pine.rs+++ b/crates/theme2/src/themes/rose_pine.rs@@ -33,6 +33,7 @@ pub fn rose_pine() -> UserThemeFamily {element_selected: Some(rgba(0x6e6a8633).into()),drop_target_background: Some(rgba(0x1f1d2eff).into()),ghost_element_hover: Some(rgba(0x6e6a861a).into()),+ ghost_element_selected: Some(rgba(0x6e6a8633).into()),text: Some(rgba(0xe0def4ff).into()),status_bar_background: Some(rgba(0x191724ff).into()),title_bar_background: Some(rgba(0x191724ff).into()),@@ -284,6 +285,7 @@ pub fn rose_pine() -> UserThemeFamily {element_selected: Some(rgba(0x817c9c26).into()),drop_target_background: Some(rgba(0x2a273fff).into()),ghost_element_hover: Some(rgba(0x817c9c14).into()),+ ghost_element_selected: Some(rgba(0x817c9c26).into()),text: Some(rgba(0xe0def4ff).into()),status_bar_background: Some(rgba(0x232136ff).into()),title_bar_background: Some(rgba(0x232136ff).into()),@@ -535,6 +537,7 @@ pub fn rose_pine() -> UserThemeFamily {element_selected: Some(rgba(0x6e6a8614).into()),drop_target_background: Some(rgba(0xfffaf3ff).into()),ghost_element_hover: Some(rgba(0x6e6a860d).into()),+ ghost_element_selected: Some(rgba(0x6e6a8614).into()),text: Some(rgba(0x575279ff).into()),status_bar_background: Some(rgba(0xfaf4edff).into()),title_bar_background: Some(rgba(0xfaf4edff).into()),diff --git a/crates/theme2/src/themes/solarized.rs b/crates/theme2/src/themes/solarized.rsindex bc4752f7a68..ae2ad900510 100644--- a/crates/theme2/src/themes/solarized.rs+++ b/crates/theme2/src/themes/solarized.rs@@ -32,6 +32,7 @@ pub fn solarized() -> UserThemeFamily {element_selected: Some(rgba(0x005a6fff).into()),drop_target_background: Some(rgba(0x00445488).into()),ghost_element_hover: Some(rgba(0x004454aa).into()),+ ghost_element_selected: Some(rgba(0x005a6fff).into()),text: Some(rgba(0xbbbbbbff).into()),status_bar_background: Some(rgba(0x00212bff).into()),title_bar_background: Some(rgba(0x002c39ff).into()),@@ -295,6 +296,7 @@ pub fn solarized() -> UserThemeFamily {element_hover: Some(rgba(0xdfca8844).into()),element_selected: Some(rgba(0xdfca88ff).into()),ghost_element_hover: Some(rgba(0xdfca8844).into()),+ ghost_element_selected: Some(rgba(0xdfca88ff).into()),text: Some(rgba(0x333333ff).into()),status_bar_background: Some(rgba(0xeee8d5ff).into()),title_bar_background: Some(rgba(0xeee8d5ff).into()),diff --git a/crates/theme2/src/themes/synthwave_84.rs b/crates/theme2/src/themes/synthwave_84.rsindex 51855bdbefa..48d1870147e 100644--- a/crates/theme2/src/themes/synthwave_84.rs+++ b/crates/theme2/src/themes/synthwave_84.rs@@ -26,6 +26,7 @@ pub fn synthwave_84() -> UserThemeFamily {element_selected: Some(rgba(0xffffff20).into()),drop_target_background: Some(rgba(0x34294f66).into()),ghost_element_hover: Some(rgba(0x37294d99).into()),+ ghost_element_selected: Some(rgba(0xffffff20).into()),text: Some(rgba(0xffffffff).into()),status_bar_background: Some(rgba(0x241b2fff).into()),title_bar_background: Some(rgba(0x241b2fff).into()),diff --git a/crates/theme_importer/src/vscode/converter.rs b/crates/theme_importer/src/vscode/converter.rsindex 1980327e015..8a7d27becbe 100644--- a/crates/theme_importer/src/vscode/converter.rs+++ b/crates/theme_importer/src/vscode/converter.rs@@ -185,6 +185,10 @@ impl VsCodeThemeConverter {.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()