Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add dock borders
Nate Butler3223e21d9fcf
diff --git a/crates/workspace2/src/dock.rs b/crates/workspace2/src/dock.rsindex 8e7f08252c8..ee45ca862c9 100644--- a/crates/workspace2/src/dock.rs+++ b/crates/workspace2/src/dock.rs@@ -7,6 +7,7 @@ use gpui::{use schemars::JsonSchema;use serde::{Deserialize, Serialize};use std::sync::Arc;+use theme2::ActiveTheme;use ui::{h_stack, IconButton, InteractionState, Tooltip};pub enum PanelEvent {@@ -443,10 +444,16 @@ impl Render for Dock {let size = entry.panel.size(cx);div()+ .border_color(cx.theme().colors().border).map(|this| match self.position().axis() {Axis::Horizontal => this.w(px(size)).h_full(),Axis::Vertical => this.h(px(size)).w_full(),})+ .map(|this| match self.position() {+ DockPosition::Left => this.border_r(),+ DockPosition::Right => this.border_l(),+ DockPosition::Bottom => this.border_t(),+ }).child(entry.panel.to_any())} else {div()@@ -675,7 +682,7 @@ impl Render for PanelButtons {Some(button)});- h_stack().children(buttons)+ h_stack().gap_0p5().children(buttons)}}