fix window rounded on linux
Some checks failed
Rust / build (ubuntu-latest, stable) (push) Failing after 1m39s
Rust / build (ubuntu-latest, stable) (pull_request) Failing after 1m28s
Some checks failed
Rust / build (ubuntu-latest, stable) (push) Failing after 1m39s
Rust / build (ubuntu-latest, stable) (pull_request) Failing after 1m28s
This commit is contained in:
@@ -1,12 +1,13 @@
|
|||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
|
use gpui::prelude::FluentBuilder;
|
||||||
use gpui::{
|
use gpui::{
|
||||||
App, AppContext, Axis, Context, DismissEvent, Entity, EventEmitter, FocusHandle, Focusable,
|
App, AppContext, Axis, Context, DismissEvent, Entity, EventEmitter, FocusHandle, Focusable,
|
||||||
IntoElement, ParentElement, Pixels, Render, SharedString, Styled, Subscription, WeakEntity,
|
IntoElement, ParentElement, Pixels, Render, SharedString, Styled, Subscription, WeakEntity,
|
||||||
Window,
|
Window,
|
||||||
};
|
};
|
||||||
use smallvec::SmallVec;
|
use smallvec::SmallVec;
|
||||||
use theme::ActiveTheme;
|
use theme::{ActiveTheme, CLIENT_SIDE_DECORATION_ROUNDING};
|
||||||
use ui::{h_flex, AxisExt as _, Placement};
|
use ui::{h_flex, AxisExt as _, Placement};
|
||||||
|
|
||||||
use super::{DockArea, PanelEvent};
|
use super::{DockArea, PanelEvent};
|
||||||
@@ -386,7 +387,10 @@ impl Render for StackPanel {
|
|||||||
h_flex()
|
h_flex()
|
||||||
.size_full()
|
.size_full()
|
||||||
.overflow_hidden()
|
.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(
|
.child(
|
||||||
ResizablePanelGroup::new("stack-panel-group")
|
ResizablePanelGroup::new("stack-panel-group")
|
||||||
.with_state(&self.state)
|
.with_state(&self.state)
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ use gpui::{
|
|||||||
MouseButton, ParentElement, Pixels, Render, ScrollHandle, SharedString,
|
MouseButton, ParentElement, Pixels, Render, ScrollHandle, SharedString,
|
||||||
StatefulInteractiveElement, Styled, WeakEntity, Window,
|
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::button::{Button, ButtonVariants as _};
|
||||||
use ui::popup_menu::{PopupMenu, PopupMenuExt};
|
use ui::popup_menu::{PopupMenu, PopupMenuExt};
|
||||||
use ui::{h_flex, v_flex, AxisExt, IconName, Placement, Selectable, Sizable, StyledExt};
|
use ui::{h_flex, v_flex, AxisExt, IconName, Placement, Selectable, Sizable, StyledExt};
|
||||||
@@ -792,6 +792,9 @@ impl TabPanel {
|
|||||||
div()
|
div()
|
||||||
.size_full()
|
.size_full()
|
||||||
.bg(cx.theme().panel_background)
|
.bg(cx.theme().panel_background)
|
||||||
|
.when(cx.theme().platform.is_linux(), |this| {
|
||||||
|
this.rounded_b(CLIENT_SIDE_DECORATION_ROUNDING)
|
||||||
|
})
|
||||||
.overflow_hidden()
|
.overflow_hidden()
|
||||||
.child(
|
.child(
|
||||||
active_panel
|
active_panel
|
||||||
|
|||||||
Reference in New Issue
Block a user