Some SVG features aren't supported for SVG app icons
还没有人认领这个 Issue。
评估
调研方向
首先,通过 WinUI 3's SvgImageSource 跟踪 Windows 桌面应用的 SVG 图标加载过程,并使用 /icon/cursor.svg 和 /icon/code.svg 作为复现案例。检查嵌入的 元素和渐变的处理方式,然后验证受影响的图标能够正确渲染,且不会静默失败。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- C#
- 星标
- 29
- 派生
- 12
- 平均合并
- 4 小时 15 分钟
- 30 天内合并 PR
- 2
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
coder/coder-desktop-windows 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 65/100
coder/coder-desktop-windows#166 ·
-
bug
难度 3/5 1-2 天 新手友好度 52/100
coder/coder-desktop-windows#179 · 3 条评论 ·
-
bug coder-desktop networking
难度 4/5 3-5 天 新手友好度 48/100
coder/coder-desktop-windows#177 · 2 条评论 ·
-
bug coder-desktop
coder/coder-desktop-windows#171 · 1 条评论 · 已指派 1 人 ·
-
bug github-sync
难度 4/5 3-5 天 新手友好度 38/100
coder/coder-desktop-windows#170 ·
查看 coder/coder-desktop-windows 的全部 Issue
相似的 Issue
-
bug frontend good first issue
难度 2/5 1-3 小时 新手友好度 75/100
-
NavigationViewItemAutomationPeer implements IInvokeProvider but never advertises the Invoke pattern 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
unoplatform/uno#24629 ·
-
agentic-workflows Needs: Triage :mag: State: In-PR
难度 2/5 1-3 小时 新手友好度 70/100
-
bug
难度 1/5 1 小时以内 新手友好度 90/100
-
Type: enhancement
难度 2/5 1-3 小时 新手友好度 65/100
apache/arrow-adbc#4809 ·