Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Merge branch 'main' into collab_ui-zed2
Piotr Osiewicz390ecb5b0cb0
diff --cc crates/gpui2/src/elements/img.rsindex c28f0dca309,f7dcd7ab82b..2aece17b470--- a/crates/gpui2/src/elements/img.rs+++ b/crates/gpui2/src/elements/img.rs@@@ -1,8 -1,6 +1,8 @@@+use std::sync::Arc;+use crate::{- Bounds, Element, InteractiveElement, InteractiveElementState, Interactivity, IntoElement,- LayoutId, Pixels, SharedString, StyleRefinement, Styled, WindowContext,+ Bounds, Element, ImageData, InteractiveElement, InteractiveElementState, Interactivity,- LayoutId, Pixels, RenderOnce, SharedString, StyleRefinement, Styled, WindowContext,++ IntoElement, LayoutId, Pixels, SharedString, StyleRefinement, Styled, WindowContext,};use futures::FutureExt;use util::ResultExt;diff --cc crates/ui2/src/components/avatar.rsindex 872d62fa129,976243365cc..0ea7702f520--- a/crates/ui2/src/components/avatar.rs+++ b/crates/ui2/src/components/avatar.rs@@@ -1,5 -1,5 +1,5 @@@use crate::prelude::*;- use gpui::{img, ImageSource, Img, RenderOnce};-use gpui::{img, Img, IntoElement};++use gpui::{img, ImageSource, Img, IntoElement};#[derive(Debug, Default, PartialEq, Clone)]pub enum Shape {@@@ -8,9 -8,9 +8,9 @@@RoundedRectangle,}- #[derive(RenderOnce)]+ #[derive(IntoElement)]pub struct Avatar {- src: SharedString,+ src: ImageSource,shape: Shape,}