Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Adjust image viewer tab title font (#9903)
Hans659ea7054a8b
diff --git a/crates/image_viewer/src/image_viewer.rs b/crates/image_viewer/src/image_viewer.rsindex d77389098aa..d9a30c9e77f 100644--- a/crates/image_viewer/src/image_viewer.rs+++ b/crates/image_viewer/src/image_viewer.rs@@ -73,14 +73,21 @@ impl Item for ImageView {fn tab_content(&self,_detail: Option<usize>,- _selected: bool,+ selected: bool,_cx: &WindowContext,) -> AnyElement {- self.path+ let title = self+ .path.file_name().unwrap_or_else(|| self.path.as_os_str()).to_string_lossy()- .to_string()+ .to_string();+ Label::new(title)+ .color(if selected {+ Color::Default+ } else {+ Color::Muted+ }).into_any_element()}