remote projects per user (#10594)
Release Notes: - Made remote projects per-user instead of per-channel. If you'd like to be part of the remote development alpha, please email hi@zed.dev. --------- Co-authored-by: Bennet Bo Fenner <53836821+bennetbo@users.noreply.github.com> Co-authored-by: Bennet <bennetbo@gmx.de> Co-authored-by: Nate Butler <1714999+iamnbutler@users.noreply.github.com> Co-authored-by: Nate Butler <iamnbutler@gmail.com>
This commit is contained in:
parent
8ae4c3277f
commit
e0c83a1d32
56 changed files with 2807 additions and 1625 deletions
|
@ -11,6 +11,7 @@ pub struct HighlightedText {
|
|||
pub text: String,
|
||||
pub highlight_positions: Vec<usize>,
|
||||
pub char_count: usize,
|
||||
pub color: Color,
|
||||
}
|
||||
|
||||
impl HighlightedText {
|
||||
|
@ -39,13 +40,17 @@ impl HighlightedText {
|
|||
text,
|
||||
highlight_positions,
|
||||
char_count,
|
||||
color: Color::Default,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn color(self, color: Color) -> Self {
|
||||
Self { color, ..self }
|
||||
}
|
||||
}
|
||||
impl RenderOnce for HighlightedText {
|
||||
fn render(self, _cx: &mut WindowContext) -> impl IntoElement {
|
||||
HighlightedLabel::new(self.text, self.highlight_positions)
|
||||
fn render(self, _: &mut WindowContext) -> impl IntoElement {
|
||||
HighlightedLabel::new(self.text, self.highlight_positions).color(self.color)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue