coder / coder/coder-desktop-windows
Some SVG features aren't supported for SVG app icons
- 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ả
### Embedded bitmaps
Some SVG files are actually PNGs masquerading as SVGs.
Take for example `/icon/cursor.svg` in Coder:
```svg
```
WinUI 3's `SvgImageSource` doesn't seem to be able to render `` tags like these in SVGs, so `cursor.svg` shows up as blank.
There's no way to detect that it failed to render as it fails silently.
### VS Code Icon gradient
The VS Code icon `/icon/code.svg` has a weird white gradient over it in the app that doesn't appear when viewing the SVG in a web browser.

-----
We could fix all of the SVGs in Coder and just declare that the desktop app for windows can't render icons like these somewhere in our documentation or something, or we could parse the SVG to look for these tags and try to render as a `BitmapImage` instead.
Relates to #91
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
Bắt đầu bằng cách truy vết việc tải biểu tượng SVG của ứng dụng desktop Windows thông qua WinUI 3's SvgImageSource, sử dụng /icon/cursor.svg và /icon/code.svg làm các trường hợp tái hiện. Kiểm tra cách các phần tử được nhúng và các gradient được xử lý, sau đó xác minh rằng các biểu tượng bị ảnh hưởng được hiển thị chính xác mà không xảy ra lỗi im lặng.
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ó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100