From 065fdcb86b72ac2e3bf0125d8bab2d15989c9e57 Mon Sep 17 00:00:00 2001
From: Caleb! <48127194+kaf-lamed-beyt@users.noreply.github.com>
Date: Sun, 9 Feb 2025 16:54:14 +0100
Subject: [PATCH] language_tools: Add background color to syntax tree view
(#24524)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Closes #22830
@jansol, please take a look. I don't know if this is correct as I
couldn't really tell the difference. I just added the active theme's
background color to the main container of the tree view.
Release Notes:
- Added an explicit background color to the syntax tree view.
cc: @iamnbutler
---------
Co-authored-by: Marshall Bowers
---
crates/language_tools/src/syntax_tree_view.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crates/language_tools/src/syntax_tree_view.rs b/crates/language_tools/src/syntax_tree_view.rs
index 9db4a97fa9e3b998fc7052b36e2f4fda420ef829..3dbdfa2b9125d686816345c225adadf7ce1c6e0f 100644
--- a/crates/language_tools/src/syntax_tree_view.rs
+++ b/crates/language_tools/src/syntax_tree_view.rs
@@ -293,7 +293,7 @@ impl SyntaxTreeView {
impl Render for SyntaxTreeView {
fn render(&mut self, _: &mut Window, cx: &mut Context) -> impl IntoElement {
- let mut rendered = div().flex_1();
+ let mut rendered = div().flex_1().bg(cx.theme().colors().editor_background);
if let Some(layer) = self
.editor