diff --git a/crates/gpui/examples/animation.rs b/crates/gpui/examples/animation.rs index 7d7b875f2bdde94a3dc4f5a5fcff206255bf92bb..70bedb53c0914e9e153a2f197af4f4cad64d0db3 100644 --- a/crates/gpui/examples/animation.rs +++ b/crates/gpui/examples/animation.rs @@ -23,6 +23,11 @@ impl AssetSource for Assets { } } +const ARROW_CIRCLE_SVG: &'static str = concat!( + env!("CARGO_MANIFEST_DIR"), + "/examples/image/arrow_circle.svg" +); + struct AnimationExample {} impl Render for AnimationExample { @@ -42,7 +47,7 @@ impl Render for AnimationExample { .child( svg() .size_8() - .path("examples/image/arrow_circle.svg") + .path(ARROW_CIRCLE_SVG) .text_color(black()) .with_animation( "image_circle",