Redesign for the v1 stable release #3

Merged
reya merged 30 commits from v1-redesign into master 2026-02-04 01:43:24 +00:00
2 changed files with 10 additions and 3 deletions
Showing only changes of commit cc7efd2864 - Show all commits

View File

@@ -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)

View File

@@ -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