.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user