commit
24ba47e75d
6 changed files with 10 additions and 6 deletions
|
@ -253,7 +253,7 @@ impl Item for ProjectSearchView {
|
|||
Svg::new("icons/magnifying_glass_12.svg")
|
||||
.with_color(tab_theme.label.text.color)
|
||||
.constrained()
|
||||
.with_width(tab_theme.icon_width)
|
||||
.with_width(tab_theme.type_icon_width)
|
||||
.aligned()
|
||||
.contained()
|
||||
.with_margin_right(tab_theme.spacing)
|
||||
|
|
|
@ -585,7 +585,7 @@ impl Item for TerminalView {
|
|||
gpui::elements::Svg::new("icons/terminal_12.svg")
|
||||
.with_color(tab_theme.label.text.color)
|
||||
.constrained()
|
||||
.with_width(tab_theme.icon_width)
|
||||
.with_width(tab_theme.type_icon_width)
|
||||
.aligned()
|
||||
.contained()
|
||||
.with_margin_right(tab_theme.spacing)
|
||||
|
|
|
@ -215,7 +215,8 @@ pub struct Tab {
|
|||
pub label: LabelStyle,
|
||||
pub description: ContainedText,
|
||||
pub spacing: f32,
|
||||
pub icon_width: f32,
|
||||
pub close_icon_width: f32,
|
||||
pub type_icon_width: f32,
|
||||
pub icon_close: Color,
|
||||
pub icon_close_active: Color,
|
||||
pub icon_dirty: Color,
|
||||
|
|
|
@ -1355,7 +1355,7 @@ impl Pane {
|
|||
} else {
|
||||
Empty::new().boxed()
|
||||
})
|
||||
.with_width(tab_style.icon_width)
|
||||
.with_width(tab_style.close_icon_width)
|
||||
.boxed(),
|
||||
)
|
||||
.boxed(),
|
||||
|
|
|
@ -108,7 +108,7 @@ impl Item for SharedScreen {
|
|||
Svg::new("icons/disable_screen_sharing_12.svg")
|
||||
.with_color(style.label.text.color)
|
||||
.constrained()
|
||||
.with_width(style.icon_width)
|
||||
.with_width(style.type_icon_width)
|
||||
.aligned()
|
||||
.contained()
|
||||
.with_margin_right(style.spacing)
|
||||
|
|
|
@ -23,8 +23,11 @@ export default function tabBar(colorScheme: ColorScheme) {
|
|||
},
|
||||
spacing: 8,
|
||||
|
||||
// Tab type icons (e.g. Project Search)
|
||||
typeIconWidth: 14,
|
||||
|
||||
// Close icons
|
||||
iconWidth: 14,
|
||||
closeIconWidth: 8,
|
||||
iconClose: foreground(layer, "variant"),
|
||||
iconCloseActive: foreground(layer, "hovered"),
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue