From 3d6c81584f751ace64af15d8caa01b9a00434e27 Mon Sep 17 00:00:00 2001 From: Petros Amoiridis Date: Wed, 22 Feb 2023 20:30:44 +0200 Subject: [PATCH] Add an icon to the terminal view tab The terminal icon already existed in `assets/icons` Co-Authored-By: Julia <30666851+ForLoveOfCats@users.noreply.github.com> --- crates/terminal_view/src/terminal_view.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/terminal_view/src/terminal_view.rs b/crates/terminal_view/src/terminal_view.rs index 58caf7d45d..69535bbd2b 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() }