Merge pull request #2202 from zed-industries/petros/z-86-replace-terminal-tab-title-with-an-icon

Replace terminal tab title with an icon
This commit is contained in:
Petros Amoiridis 2023-02-23 11:04:43 +02:00 committed by GitHub
commit 9a729a2e64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 11 deletions

View file

@ -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()
}