Refine naming of element-related types and traits
Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
parent
03619dfa55
commit
fe492eacbf
93 changed files with 661 additions and 656 deletions
|
@ -3,7 +3,7 @@ use std::path::Path;
|
|||
use fuzzy::StringMatch;
|
||||
use gpui::{
|
||||
elements::{Label, LabelStyle},
|
||||
Drawable, Element, View,
|
||||
Element, AnyElement, View,
|
||||
};
|
||||
use workspace::WorkspaceLocation;
|
||||
|
||||
|
@ -42,10 +42,10 @@ impl HighlightedText {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn render<V: View>(self, style: impl Into<LabelStyle>) -> Element<V> {
|
||||
pub fn render<V: View>(self, style: impl Into<LabelStyle>) -> AnyElement<V> {
|
||||
Label::new(self.text, style)
|
||||
.with_highlights(self.highlight_positions)
|
||||
.into_element()
|
||||
.into_any()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue