coder / coder/coder-desktop-windows

SVG app icons don't load unless the URL ends in .svg

Đang mở
#91 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C#
Star
26
Fork
12
Merge trung bình
6 giờ 50 phút
Pull request đã merge (30 ngày)
1

Mô tả

Since there's no `ImageSource` that can load both `.svg` and bitmap images, and instead there's a separate `SvgImageSource` and `BitmapImage`, we currently only attempt to load SVGs when the URL ends in `.svg`. We don't have much control over the actual downloading/caching operations of these sources.

One potential solution is to do a `HEAD` request first to get the `Content-Type` of the image, but it won't be easy to cache that result.

Another would be to download/cache images ourselves.

Relates to #92

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Start by tracing how URL-based images select between SvgImageSource and BitmapImage, focusing on the current `.svg` suffix check. Review the downloading and caching behavior, then compare the HEAD/Content-Type and application-managed caching options described in the issue. Done means SVG icons load when their URLs do not end in `.svg`, without breaking bitmap image loading.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
csharp
Lĩnh vực
desktop
Loại issue
Lỗi
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.