Primitives · Icon::from_path draws an application's SVG with the theme's size and color; a path the asset source lacks fails at render
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2f02c82c6a
commit
2fb505ee98
9 files changed
+145
-17
No files matched your search
@@ -6,14 +6,15 @@ use std::{
|
||||
};
|
||||
|
||||
use anyhow::{Context as _, Result, anyhow, bail};
|
||||
use ely_gpui_component::Assets;
|
||||
use gpui::{Application, AsyncApp, SharedString, WindowHandle};
|
||||
use gpui_web::{CanvasFontFallback, WebBackendPreference, WebPlatform};
|
||||
use wasm_bindgen::prelude::*;
|
||||
use web_sys::UrlSearchParams;
|
||||
|
||||
use crate::{
|
||||
Start, choose, launch, pages,
|
||||
Start,
|
||||
assets::GalleryAssets,
|
||||
choose, launch, pages,
|
||||
shell::{Choice, Gallery},
|
||||
};
|
||||
|
||||
@@ -97,7 +98,7 @@ pub fn start() {
|
||||
let http = Arc::new(platform.fetch_http_client());
|
||||
Application::with_platform(platform)
|
||||
.with_http_client(http)
|
||||
.with_assets(Assets)
|
||||
.with_assets(GalleryAssets)
|
||||
.run(move |cx| {
|
||||
cx.text_system()
|
||||
.add_fonts(vec![Cow::Borrowed(HEBREW)])
|
||||
|
||||
Reference in new issue
Block a user