Rename Drawable::boxed to into_element and make containers generic
Multi-element are now generic over any drawable child, which can be converted into an element. Co-Authored-By: Nathan Sobo <nathan@zed.dev> Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
committed by
Nathan Sobo
co-authored by
Nathan Sobo
Max Brunsfeld
parent
4d433663bd
commit
03619dfa55
@@ -38,7 +38,7 @@ impl View for ToggleDockButton {
|
||||
let workspace = self.workspace.upgrade(cx);
|
||||
|
||||
if workspace.is_none() {
|
||||
return Empty::new().boxed();
|
||||
return Empty::new().into_element();
|
||||
}
|
||||
|
||||
let workspace = workspace.unwrap();
|
||||
@@ -64,7 +64,6 @@ impl View for ToggleDockButton {
|
||||
.with_height(style.icon_size)
|
||||
.contained()
|
||||
.with_style(style.container)
|
||||
.boxed()
|
||||
}
|
||||
})
|
||||
.with_cursor_style(CursorStyle::PointingHand)
|
||||
@@ -98,7 +97,7 @@ impl View for ToggleDockButton {
|
||||
cx,
|
||||
)
|
||||
}
|
||||
.boxed()
|
||||
.into_element()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user