gpui: Update asset paths for more examples (#24646)

This PR updates the asset paths used in more GPUI examples such that
they work when run from the repository root or from within
`crates/gpui`.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-02-11 09:37:55 -05:00 committed by GitHub
parent 22e2b8e832
commit 7b45901d96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 7 additions and 12 deletions

View file

@ -29,7 +29,7 @@ impl AssetSource for Assets {
}
}
const IMAGE: &str = "examples/image/app-icon.png";
const IMAGE: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/examples/image/app-icon.png");
#[derive(Copy, Clone, Hash)]
struct LoadImageParameters {