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>
This commit is contained in:
Petros Amoiridis 2023-02-22 20:30:44 +02:00
parent 81ece4fd44
commit 3d6c81584f
No known key found for this signature in database

View file

@ -589,11 +589,16 @@ impl Item for TerminalView {
Flex::row() Flex::row()
.with_child( .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() .aligned()
.contained() .contained()
.with_margin_right(tab_theme.spacing)
.boxed(), .boxed(),
) )
.with_child(Label::new(title, tab_theme.label.clone()).aligned().boxed())
.boxed() .boxed()
} }