From ec3d8e50ed698b225a7e4ff21b8eda4350adb26c Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Wed, 12 Feb 2025 14:04:11 +0800 Subject: [PATCH] chore: Update README for icons usage. (#620) Fix #619 --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d1b7b3b0..fe806c21 100644 --- a/README.md +++ b/README.md @@ -57,12 +57,19 @@ GPUI and GPUI Component still in development, so we need add dependency by git. And GPUI Component depends on `gpui` by special version (It keep updated to upstream) for including WebView support. ```toml -gpui = { git = "https://github.com/huacnlee/zed.git", branch = "export-platform-window" } +gpui = { git = "https://github.com/huacnlee/zed.git", branch = "webview" } gpui-component = { git = "https://github.com/longbridge/gpui-component.git" } ``` More usage can be found in [story](https://github.com/longbridge/gpui-component/tree/main/crates/story) directory. +### Icons + +GPUI Component have `Icon` element, but it does not include SVG files by default. + +The example is using [Lucide](https://lucide.dev) icons, but you can use any icons you like, just named the svg files like [IconName](https://github.com/longbridge/gpui-component/blob/main/crates/ui/src/icon.rs#L86) defined the path name. +You can add icons that you need in your project. + ## Demo If you want to see the demo, here is a some demo applications.