Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix panic in tests

Mikayla Makid2279674a7dd
diff --git a/crates/collab_ui/src/collab_titlebar_item.rs b/crates/collab_ui/src/collab_titlebar_item.rs
index a5c41a669f0..71a62b68ee1 100644
--- a/crates/collab_ui/src/collab_titlebar_item.rs
+++ b/crates/collab_ui/src/collab_titlebar_item.rs
@@ -107,7 +107,7 @@ impl View for CollabTitlebarItem {
.with_child(
Flex::row()
.with_child(right_container.contained().with_background_color(
- theme.workspace.titlebar.container.background_color.unwrap(),
+ theme.workspace.titlebar.container.background_color.unwrap_or_else(|| Color::transparent_black()),
))
.aligned()
.right(),