Rename color_index to participant_index
Co-authored-by: Conrad <conrad@zed.dev>
This commit is contained in:
parent
545b5e0161
commit
0f39b63801
17 changed files with 97 additions and 80 deletions
|
@ -2256,8 +2256,8 @@ impl Element<Editor> for EditorElement {
|
|||
collaboration_hub.as_ref(),
|
||||
cx,
|
||||
) {
|
||||
let selection_style = if let Some(color_index) = selection.color_index {
|
||||
style.replica_selection_style(color_index)
|
||||
let selection_style = if let Some(participant_index) = selection.participant_index {
|
||||
style.selection_style_for_room_participant(participant_index.0)
|
||||
} else {
|
||||
style.absent_selection
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue