diff --git a/crates/dock/src/stack_panel.rs b/crates/dock/src/stack_panel.rs index fe03f29..2a2dd19 100644 --- a/crates/dock/src/stack_panel.rs +++ b/crates/dock/src/stack_panel.rs @@ -1,12 +1,13 @@ use std::sync::Arc; +use gpui::prelude::FluentBuilder; use gpui::{ App, AppContext, Axis, Context, DismissEvent, Entity, EventEmitter, FocusHandle, Focusable, IntoElement, ParentElement, Pixels, Render, SharedString, Styled, Subscription, WeakEntity, Window, }; use smallvec::SmallVec; -use theme::ActiveTheme; +use theme::{ActiveTheme, CLIENT_SIDE_DECORATION_ROUNDING}; use ui::{h_flex, AxisExt as _, Placement}; use super::{DockArea, PanelEvent}; @@ -386,7 +387,10 @@ impl Render for StackPanel { h_flex() .size_full() .overflow_hidden() - .bg(cx.theme().elevated_surface_background) + .bg(cx.theme().panel_background) + .when(cx.theme().platform.is_linux(), |this| { + this.rounded_br(CLIENT_SIDE_DECORATION_ROUNDING) + }) .child( ResizablePanelGroup::new("stack-panel-group") .with_state(&self.state) diff --git a/crates/dock/src/tab_panel.rs b/crates/dock/src/tab_panel.rs index b62e5a0..94d829c 100644 --- a/crates/dock/src/tab_panel.rs +++ b/crates/dock/src/tab_panel.rs @@ -7,7 +7,7 @@ use gpui::{ MouseButton, ParentElement, Pixels, Render, ScrollHandle, SharedString, StatefulInteractiveElement, Styled, WeakEntity, Window, }; -use theme::{ActiveTheme, TABBAR_HEIGHT}; +use theme::{ActiveTheme, CLIENT_SIDE_DECORATION_ROUNDING, TABBAR_HEIGHT}; use ui::button::{Button, ButtonVariants as _}; use ui::popup_menu::{PopupMenu, PopupMenuExt}; use ui::{h_flex, v_flex, AxisExt, IconName, Placement, Selectable, Sizable, StyledExt}; @@ -792,6 +792,9 @@ impl TabPanel { div() .size_full() .bg(cx.theme().panel_background) + .when(cx.theme().platform.is_linux(), |this| { + this.rounded_b(CLIENT_SIDE_DECORATION_ROUNDING) + }) .overflow_hidden() .child( active_panel