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.

Fine-tune status bar left-side spacing (#21306)

Danilo Lealeb2c0b33dff3
diff --git a/crates/diagnostics/src/items.rs b/crates/diagnostics/src/items.rs
index 2c580c44def..495987c5164 100644
--- a/crates/diagnostics/src/items.rs
+++ b/crates/diagnostics/src/items.rs
@@ -1,7 +1,7 @@
use editor::Editor;
use gpui::{
- rems, EventEmitter, IntoElement, ParentElement, Render, Styled, Subscription, View,
- ViewContext, WeakView,
+ EventEmitter, IntoElement, ParentElement, Render, Styled, Subscription, View, ViewContext,
+ WeakView,
};
use language::Diagnostic;
use ui::{h_flex, prelude::*, Button, ButtonLike, Color, Icon, IconName, Label, Tooltip};
@@ -77,8 +77,10 @@ impl Render for DiagnosticIndicator {
};
h_flex()
- .h(rems(1.375))
.gap_2()
+ .pl_1()
+ .border_l_1()
+ .border_color(cx.theme().colors().border)
.child(
ButtonLike::new("diagnostic-indicator")
.child(diagnostic_indicator)
diff --git a/crates/workspace/src/status_bar.rs b/crates/workspace/src/status_bar.rs
index 00a00780329..274aee063c4 100644
--- a/crates/workspace/src/status_bar.rs
+++ b/crates/workspace/src/status_bar.rs
@@ -64,7 +64,7 @@ impl Render for StatusBar {
impl StatusBar {
fn render_left_tools(&self, cx: &mut ViewContext<Self>) -> impl IntoElement {
h_flex()
- .gap(DynamicSpacing::Base08.rems(cx))
+ .gap(DynamicSpacing::Base04.rems(cx))
.overflow_x_hidden()
.children(self.left_items.iter().map(|item| item.to_any()))
}