diff --git a/crates/gpui/Cargo.toml b/crates/gpui/Cargo.toml index 715ce36be705ab0ea753df5503a6116959dff044..dcb309eb064f3e8b19bdb27add09afceca9d31da 100644 --- a/crates/gpui/Cargo.toml +++ b/crates/gpui/Cargo.toml @@ -122,8 +122,4 @@ path = "examples/hello_world.rs" [[example]] name = "image" -path = "examples/image.rs" - -[[example]] -name = "ownership_post" -path = "examples/ownership_post.rs" +path = "examples/image/image.rs" diff --git a/crates/gpui/examples/image/app-icon.png b/crates/gpui/examples/image/app-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..08b6d8afa0d1088e50f1e9697e01407c9c623f6d Binary files /dev/null and b/crates/gpui/examples/image/app-icon.png differ diff --git a/crates/gpui/examples/image.rs b/crates/gpui/examples/image/image.rs similarity index 91% rename from crates/gpui/examples/image.rs rename to crates/gpui/examples/image/image.rs index 48cc39df58006e14c5d98f1b90deab1fd1da19c2..d6002888c9e8a2d16f70eb7dd599392d0c6a1a5a 100644 --- a/crates/gpui/examples/image.rs +++ b/crates/gpui/examples/image/image.rs @@ -64,9 +64,8 @@ fn main() { App::new().run(|cx: &mut AppContext| { cx.open_window(WindowOptions::default(), |cx| { cx.new_view(|_cx| ImageShowcase { - local_resource: Arc::new( - PathBuf::from_str("crates/zed/resources/app-icon.png").unwrap(), - ), + // Relative path to your root project path + local_resource: Arc::new(PathBuf::from_str("examples/image/app-icon.png").unwrap()), remote_resource: "https://picsum.photos/512/512".into(), }) });