This commit is contained in:
2026-08-05 17:07:50 +07:00
parent 6b13d8a8f7
commit a97dfac23f
4 changed files with 200 additions and 108 deletions
+14 -16
View File
@@ -1,7 +1,7 @@
use gpui::prelude::*;
use gpui::{Context, Entity, Render, SharedString, Subscription, Window, div, px};
use gpui_component::dock::{DockArea, DockItem};
use gpui_component::{ActiveTheme, Root, StyledExt, TitleBar, v_flex};
use gpui_component::{ActiveTheme, Root, StyledExt, TitleBar, h_flex, v_flex};
use signed_state::{Backend, BackendEvent};
use crate::views::SidebarPanel;
@@ -78,24 +78,22 @@ impl Render for Workspace {
v_flex()
.size_full()
// Title Bar
.child(TitleBar::new())
// Dock Area
.child(self.dock.clone())
// Status Bar
.child(
div()
.h_flex()
.px_4()
.py_1()
.border_t(px(1.))
.border_color(cx.theme().border)
TitleBar::new()
// Left
.child(div())
// Right
.child(
div()
.text_xs()
.text_color(cx.theme().muted_foreground)
.child(self.status.clone()),
h_flex().px_2().child(
div()
.text_xs()
.text_color(cx.theme().muted_foreground)
.child(self.status.clone()),
),
),
),
)
// Dock Area
.child(self.dock.clone()),
)
// Notifications
.children(notification_layer)