Checkpoint
This commit is contained in:
parent
e2da2b232e
commit
47b64a5074
11 changed files with 197 additions and 61 deletions
|
@ -1,8 +1,8 @@
|
|||
use crate::theme::{theme, Theme};
|
||||
use gpui3::{
|
||||
div, img, svg, view, AppContext, Context, Element, ElementId, IntoAnyElement, MouseButton,
|
||||
ParentElement, ScrollState, SharedString, StyleHelpers, Styled, View, ViewContext,
|
||||
WindowContext,
|
||||
div, img, svg, view, AppContext, Context, Element, ElementId, IdentifiedElement,
|
||||
IntoAnyElement, ParentElement, ScrollState, SharedString, StyleHelpers, Styled, View,
|
||||
ViewContext, WindowContext,
|
||||
};
|
||||
|
||||
pub struct CollabPanel {
|
||||
|
@ -45,7 +45,8 @@ impl CollabPanel {
|
|||
// List Container
|
||||
.child(
|
||||
div()
|
||||
.on_click(MouseButton::Left, |_, _, _| {
|
||||
.id(0)
|
||||
.on_click(|_, _, _| {
|
||||
dbg!("click!");
|
||||
})
|
||||
.fill(theme.lowest.base.default.background)
|
||||
|
|
|
@ -147,6 +147,10 @@ impl<E: Element> Element for Themed<E> {
|
|||
type ViewState = E::ViewState;
|
||||
type ElementState = E::ElementState;
|
||||
|
||||
fn element_id(&self) -> Option<gpui3::ElementId> {
|
||||
None
|
||||
}
|
||||
|
||||
fn layout(
|
||||
&mut self,
|
||||
state: &mut E::ViewState,
|
||||
|
|
|
@ -47,8 +47,7 @@ impl Workspace {
|
|||
.flex_row()
|
||||
.overflow_hidden()
|
||||
.child(self.left_panel.clone())
|
||||
.child(div().h_full().flex_1())
|
||||
.child(self.right_panel.clone()),
|
||||
.child(div().h_full().flex_1()), // .child(self.right_panel.clone()),
|
||||
)
|
||||
.child(statusbar::statusbar(cx))
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue