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.

Add an icon to the terminal view tab

Petros Amoiridis3d6c81584f75
diff --git a/crates/terminal_view/src/terminal_view.rs b/crates/terminal_view/src/terminal_view.rs
index 58caf7d45d7..69535bbd2bf 100644
--- a/crates/terminal_view/src/terminal_view.rs
+++ b/crates/terminal_view/src/terminal_view.rs
@@ -589,11 +589,16 @@ impl Item for TerminalView {
Flex::row()
.with_child(
- Label::new(title, tab_theme.label.clone())
+ gpui::elements::Svg::new("icons/terminal_12.svg")
+ .with_color(tab_theme.label.text.color)
+ .constrained()
+ .with_width(tab_theme.icon_width)
.aligned()
.contained()
+ .with_margin_right(tab_theme.spacing)
.boxed(),
)
+ .with_child(Label::new(title, tab_theme.label.clone()).aligned().boxed())
.boxed()
}