Some SVG features aren't supported for SVG app icons
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
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.
Mô tả
Embedded bitmaps
Some SVG files are actually PNGs masquerading as SVGs.
Take for example /icon/cursor.svg in Coder:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="36" height="36" fill="none">
<path fill="url(#a)" d="M0 0h36v36H0z"/>
<defs>
<pattern id="a" width="1" height="1" patternContentUnits="objectBoundingBox">
<use xlink:href="#b" transform="scale(.0005)"/>
</pattern>
<image xlink:href="data:image/png;base64,iVBOR..." id="b" width="2000" height="2000"/>
</defs>
</svg>
WinUI 3's SvgImageSource doesn't seem to be able to render <image> 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
- Ngôn ngữ chính
- C#
- Star
- 29
- Fork
- 12
- Merge trung bình
- 4 giờ 15 phút
- Pull request đã merge (30 ngày)
- 2
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
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của coder/coder-desktop-windows
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
coder/coder-desktop-windows#166 ·
-
CoderVPN Unsigned Đang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
coder/coder-desktop-windows#179 · 3 bình luận ·
-
bug coder-desktop networking
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
coder/coder-desktop-windows#177 · 2 bình luận ·
-
bug coder-desktop
coder/coder-desktop-windows#171 · 1 bình luận · 1 người được giao ·
-
bug github-sync
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
coder/coder-desktop-windows#170 ·
Tất cả issue của coder/coder-desktop-windows
Issue tương tự
-
core dependencies
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
-
bug frontend good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
NavigationViewItemAutomationPeer implements IInvokeProvider but never advertises the Invoke pattern Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
unoplatform/uno#24629 ·
-
agentic-workflows Needs: Triage :mag: State: In-PR
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Down / Waiting for removal
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100