Make read only buffers feel more read only
This commit is contained in:
parent
84171787a5
commit
6877bd4969
4 changed files with 29 additions and 4 deletions
|
@ -1901,7 +1901,13 @@ impl EditorElement {
|
|||
layouts.push(layout);
|
||||
}
|
||||
|
||||
selections.push((style.local_player, layouts));
|
||||
let player = if editor.read_only(cx) {
|
||||
cx.theme().players().read_only()
|
||||
} else {
|
||||
style.local_player
|
||||
};
|
||||
|
||||
selections.push((player, layouts));
|
||||
}
|
||||
|
||||
if let Some(collaboration_hub) = &editor.collaboration_hub {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue