Associate collaborator avatars with "ribbons" corresponding to their cursor color

This commit is contained in:
Nathan Sobo
2021-11-28 13:25:05 -07:00
parent a5039cad65
commit fbc307cd5e
6 changed files with 70 additions and 24 deletions
+1 -6
View File
@@ -371,12 +371,7 @@ impl EditorElement {
let content_origin = bounds.origin() + layout.text_offset;
for (replica_id, selections) in &layout.selections {
let style_ix = *replica_id as usize % (style.guest_selections.len() + 1);
let style = if style_ix == 0 {
&style.selection
} else {
&style.guest_selections[style_ix - 1]
};
let style = style.replica_selection_style(*replica_id);
for selection in selections {
if selection.start != selection.end {