WIP
This commit is contained in:
parent
40896352ff
commit
a25f962185
90 changed files with 587 additions and 501 deletions
|
@ -2054,7 +2054,7 @@ impl Workspace {
|
|||
self.leader_state.followers.contains(&peer_id)
|
||||
}
|
||||
|
||||
fn render_titlebar(&self, theme: &Theme, cx: &mut ViewContext<Self>) -> ElementBox<Self> {
|
||||
fn render_titlebar(&self, theme: &Theme, cx: &mut ViewContext<Self>) -> Element<Self> {
|
||||
// TODO: There should be a better system in place for this
|
||||
// (https://github.com/zed-industries/zed/issues/1290)
|
||||
let is_fullscreen = cx.window_is_fullscreen();
|
||||
|
@ -2157,7 +2157,7 @@ impl Workspace {
|
|||
fn render_disconnected_overlay(
|
||||
&self,
|
||||
cx: &mut ViewContext<Workspace>,
|
||||
) -> Option<ElementBox<Workspace>> {
|
||||
) -> Option<Element<Workspace>> {
|
||||
if self.project.read(cx).is_read_only() {
|
||||
enum DisconnectedOverlay {}
|
||||
Some(
|
||||
|
@ -2185,7 +2185,7 @@ impl Workspace {
|
|||
&self,
|
||||
theme: &theme::Workspace,
|
||||
cx: &AppContext,
|
||||
) -> Option<ElementBox<Workspace>> {
|
||||
) -> Option<Element<Workspace>> {
|
||||
if self.notifications.is_empty() {
|
||||
None
|
||||
} else {
|
||||
|
@ -2813,7 +2813,7 @@ impl View for Workspace {
|
|||
"Workspace"
|
||||
}
|
||||
|
||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> ElementBox<Self> {
|
||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> Element<Self> {
|
||||
let theme = cx.global::<Settings>().theme.clone();
|
||||
Stack::new()
|
||||
.with_child(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue