diff --git a/crates/title_bar/src/title_bar.rs b/crates/title_bar/src/title_bar.rs index 59854ab57228f692db3e5478f81ab3cf8a7f88d5..4926ec51bcd17e5ff6b0aec9a1463e797980f8dc 100644 --- a/crates/title_bar/src/title_bar.rs +++ b/crates/title_bar/src/title_bar.rs @@ -99,6 +99,10 @@ impl Render for TitleBar { el.rounded_tr(theme::CLIENT_SIDE_DECORATION_ROUNDING) }) .when(!(tiling.top || tiling.left), |el| el.rounded_tl(theme::CLIENT_SIDE_DECORATION_ROUNDING)) + // this border is to avoid a transparent gap in the rounded corners + .mt(px(-1.)) + .border(px(1.)) + .border_color(cx.theme().colors().title_bar_background), } }) .bg(cx.theme().colors().title_bar_background) diff --git a/crates/workspace/src/status_bar.rs b/crates/workspace/src/status_bar.rs index f2d2b73854e06764680b47f5799c0642b21bb377..ea92451bf0243c17cb1c4e0c41d82705ff10ce20 100644 --- a/crates/workspace/src/status_bar.rs +++ b/crates/workspace/src/status_bar.rs @@ -50,7 +50,11 @@ impl Render for StatusBar { }) .when(!(tiling.bottom || tiling.left), |el| { el.rounded_bl(CLIENT_SIDE_DECORATION_ROUNDING) - }), + }) + // This border is to avoid a transparent gap in the rounded corners + .mb(px(-1.)) + .border_b(px(1.0)) + .border_color(cx.theme().colors().status_bar_background), }) .child(self.render_left_tools(cx)) .child(self.render_right_tools(cx)) diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rs index e60fb88d7b6a4b7a5cb8da4c5ad7fdbf4484eb89..5b6847dabab924c6d440f0cf11bf2217a764c885 100644 --- a/crates/workspace/src/workspace.rs +++ b/crates/workspace/src/workspace.rs @@ -6596,7 +6596,6 @@ pub fn client_side_decorations(element: impl IntoElement, cx: &mut WindowContext .on_mouse_move(|_e, cx| { cx.stop_propagation(); }) - .bg(cx.theme().colors().border) .size_full() .child(element), )