//! The icons: the components' own (`Assets`), and the few more the app uses, embedded one by //! one rather than the whole Lucide catalogue. use std::borrow::Cow; use gpui_kit::*; gpui_kit::assets::icon_assets!(Extra, [Shield, Send, Package, Pin, PinOff, RefreshCw, Save, Trash, Plus, Copy, Download, Link, Gauge, Power, Video, FileUp, Route, Lock]); pub struct AppAssets; impl AssetSource for AppAssets { fn load(&self, path: &str) -> Result>> { match Extra.load(path)? { Some(bytes) => Ok(Some(bytes)), None => gpui_kit::assets::Assets.load(path), } } fn list(&self, path: &str) -> Result> { let mut paths = gpui_kit::assets::Assets.list(path)?; paths.extend(Extra.list(path)?); paths.sort(); paths.dedup(); Ok(paths) } }