Merge branch 'main' into editor2-rendering
This commit is contained in:
@@ -1377,13 +1377,13 @@ impl Pane {
|
||||
let (text_color, tab_bg, tab_hover_bg, tab_active_bg) = match ix == self.active_item_index {
|
||||
false => (
|
||||
cx.theme().colors().text_muted,
|
||||
cx.theme().colors().tab_inactive,
|
||||
cx.theme().colors().tab_inactive_background,
|
||||
cx.theme().colors().ghost_element_hover,
|
||||
cx.theme().colors().ghost_element_active,
|
||||
),
|
||||
true => (
|
||||
cx.theme().colors().text,
|
||||
cx.theme().colors().tab_active,
|
||||
cx.theme().colors().tab_active_background,
|
||||
cx.theme().colors().element_hover,
|
||||
cx.theme().colors().element_active,
|
||||
),
|
||||
@@ -1453,7 +1453,7 @@ impl Pane {
|
||||
.id("tab_bar")
|
||||
.w_full()
|
||||
.flex()
|
||||
.bg(cx.theme().colors().tab_bar)
|
||||
.bg(cx.theme().colors().tab_bar_background)
|
||||
// Left Side
|
||||
.child(
|
||||
div()
|
||||
|
||||
@@ -45,7 +45,7 @@ impl Render for StatusBar {
|
||||
.justify_between()
|
||||
.w_full()
|
||||
.h_8()
|
||||
.bg(cx.theme().colors().status_bar)
|
||||
.bg(cx.theme().colors().status_bar_background)
|
||||
.child(self.render_left_tools(cx))
|
||||
.child(self.render_right_tools(cx))
|
||||
}
|
||||
|
||||
@@ -544,6 +544,7 @@ impl DelayedDebouncedEditAction {
|
||||
pub enum Event {
|
||||
PaneAdded(View<Pane>),
|
||||
ContactRequestedJoin(u64),
|
||||
WorkspaceCreated(WeakView<Workspace>),
|
||||
}
|
||||
|
||||
pub struct Workspace {
|
||||
@@ -698,8 +699,7 @@ impl Workspace {
|
||||
Ok(())
|
||||
});
|
||||
|
||||
// todo!("replace with a different mechanism")
|
||||
// cx.emit_global(WorkspaceCreated(weak_handle.clone()));
|
||||
cx.emit(Event::WorkspaceCreated(weak_handle.clone()));
|
||||
|
||||
let left_dock = cx.build_view(|_| Dock::new(DockPosition::Left));
|
||||
let bottom_dock = cx.build_view(|_| Dock::new(DockPosition::Bottom));
|
||||
@@ -2697,7 +2697,7 @@ impl Workspace {
|
||||
|
||||
fn render_titlebar(&self, cx: &mut ViewContext<Self>) -> impl Component<Self> {
|
||||
div()
|
||||
.bg(cx.theme().colors().title_bar)
|
||||
.bg(cx.theme().colors().title_bar_background)
|
||||
.when(
|
||||
!matches!(cx.window_bounds(), WindowBounds::Fullscreen),
|
||||
|s| s.pl_20(),
|
||||
@@ -4253,7 +4253,7 @@ impl ViewId {
|
||||
// }
|
||||
// }
|
||||
|
||||
// pub struct WorkspaceCreated(pub WeakView<Workspace>);
|
||||
pub struct WorkspaceCreated(pub WeakView<Workspace>);
|
||||
|
||||
pub fn activate_workspace_for_project(
|
||||
cx: &mut AppContext,
|
||||
|
||||
Reference in New Issue
Block a user