diff --git a/examples/assets/mark.svg b/examples/assets/mark.svg
new file mode 100644
index 0000000..bbaec46
--- /dev/null
+++ b/examples/assets/mark.svg
@@ -0,0 +1,4 @@
+
diff --git a/examples/docs/icons.rs b/examples/docs/icons.rs
index 7c59cd0..a8b2694 100644
--- a/examples/docs/icons.rs
+++ b/examples/docs/icons.rs
@@ -1,4 +1,4 @@
-use std::f32::consts::FRAC_PI_4;
+use std::{borrow::Cow, f32::consts::FRAC_PI_4};
use ely_gpui_component::{
Assets,
@@ -7,10 +7,31 @@ use ely_gpui_component::{
theme::{ActiveTheme, IconSize},
};
use gpui::{
- App, AppContext, Context, FocusHandle, IntoElement, ParentElement, Radians, Render, Styled,
- Window, WindowOptions, div,
+ App, AppContext, AssetSource, Context, FocusHandle, IntoElement, ParentElement, Radians,
+ Render, SharedString, Styled, Window, WindowOptions, div,
};
+const CUSTOM_ICON: &str = "app-icons/mark.svg";
+
+struct AppAssets;
+
+impl AssetSource for AppAssets {
+ fn load(&self, path: &str) -> gpui::Result