Some SVG features aren't supported for SVG app icons
まだ誰も着手していません。
評価
調査の方向性
まず、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分
- マージ済み PR(30日)
- 2
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
coder/coder-desktop-windows のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
coder/coder-desktop-windows#166 ·
-
CoderVPN Unsigned オープン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
-
core dependencies
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
-
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
-
Down / Waiting for removal
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100