mirror of
https://github.com/zed-industries/zed.git
synced 2024-10-27 16:57:08 +00:00
Render workspace
This commit is contained in:
parent
e6c7e57711
commit
90e22da930
1 changed files with 50 additions and 50 deletions
|
@ -30,57 +30,57 @@ impl Workspace {
|
|||
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl Element<State = Self> {
|
||||
let theme = rose_pine_dawn();
|
||||
|
||||
div()
|
||||
.size_full()
|
||||
.v_stack()
|
||||
.fill(theme.lowest.base.default.background)
|
||||
.child(Panel::new(ScrollState::default()))
|
||||
.child(
|
||||
div()
|
||||
.size_full()
|
||||
.h_stack()
|
||||
.gap_3()
|
||||
.children((0..4).map(|i| {
|
||||
div().size_full().flex().fill(gpui3::hsla(
|
||||
0. + (i as f32 / 7.),
|
||||
0. + (i as f32 / 5.),
|
||||
0.5,
|
||||
1.,
|
||||
))
|
||||
})),
|
||||
)
|
||||
.child(
|
||||
div()
|
||||
.size_full()
|
||||
.flex()
|
||||
.fill(theme.middle.negative.default.background),
|
||||
)
|
||||
|
||||
// themed(rose_pine_dawn(), cx, |cx| {
|
||||
// div()
|
||||
// .size_full()
|
||||
// .v_stack()
|
||||
// .fill(theme.lowest.base.default.background)
|
||||
// .child(Panel::new(ScrollState::default()))
|
||||
// .child(
|
||||
// div()
|
||||
// .size_full()
|
||||
// .h_stack()
|
||||
// .gap_3()
|
||||
// .children((0..4).map(|i| {
|
||||
// div().size_full().flex().fill(gpui3::hsla(
|
||||
// 0. + (i as f32 / 7.),
|
||||
// 0. + (i as f32 / 5.),
|
||||
// 0.5,
|
||||
// 1.,
|
||||
// ))
|
||||
// })),
|
||||
// )
|
||||
// .child(
|
||||
// div()
|
||||
// .size_full()
|
||||
// .flex()
|
||||
// .flex_col()
|
||||
// .font("Courier")
|
||||
// .gap_0()
|
||||
// .justify_start()
|
||||
// .items_start()
|
||||
// .text_color(theme.lowest.base.default.foreground)
|
||||
// .fill(theme.middle.base.default.background)
|
||||
// .child(titlebar(cx))
|
||||
// .child(
|
||||
// div()
|
||||
// .flex_1()
|
||||
// .w_full()
|
||||
// .flex()
|
||||
// .flex_row()
|
||||
// .overflow_hidden()
|
||||
// .child(self.left_panel.clone())
|
||||
// .child(div().h_full().flex_1())
|
||||
// .child(self.right_panel.clone()),
|
||||
// .fill(theme.middle.negative.default.background),
|
||||
// )
|
||||
// .child(statusbar::statusbar(cx))
|
||||
// })
|
||||
|
||||
themed(rose_pine_dawn(), cx, |cx| {
|
||||
div()
|
||||
.size_full()
|
||||
.flex()
|
||||
.flex_col()
|
||||
.font("Courier")
|
||||
.gap_0()
|
||||
.justify_start()
|
||||
.items_start()
|
||||
.text_color(theme.lowest.base.default.foreground)
|
||||
.fill(theme.middle.base.default.background)
|
||||
.child(titlebar(cx))
|
||||
.child(
|
||||
div()
|
||||
.flex_1()
|
||||
.w_full()
|
||||
.flex()
|
||||
.flex_row()
|
||||
.overflow_hidden()
|
||||
.child(self.left_panel.clone())
|
||||
.child(div().h_full().flex_1())
|
||||
.child(self.right_panel.clone()),
|
||||
)
|
||||
.child(statusbar::statusbar(cx))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue