Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Style fold control

Nate Butlere71f2b49e8a9
diff --git a/crates/editor2/src/element.rs b/crates/editor2/src/element.rs
index a6d4bc20b15..20012ae41d2 100644
--- a/crates/editor2/src/element.rs
+++ b/crates/editor2/src/element.rs
@@ -939,11 +939,11 @@ impl EditorElement {
cx,
|fold_element_state, cx| {
if fold_element_state.is_active() {
- gpui::blue()
+ cx.theme().colors().ghost_element_active
} else if fold_bounds.contains(&cx.mouse_position()) {
- gpui::black()
+ cx.theme().colors().ghost_element_hover
} else {
- gpui::red()
+ cx.theme().colors().ghost_element_background
}
},
)