coder / coder/coder-desktop-windows

Some SVG features aren't supported for SVG app icons

オープン
#92 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C#
スター
26
フォーク
12
平均マージ
6時間 50分
マージ済み PR(30日)
1

説明

### 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.

![Image](https://github.com/user-attachments/assets/4ace5cbd-97ca-4a96-a275-3bcceedfe0a1)

-----

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず、WinUI 3's SvgImageSource を使用した Windows デスクトップアプリの SVG アイコンの読み込みを追跡し、再現ケースとして /icon/cursor.svg と /icon/code.svg を使用します。埋め込み 要素とグラデーションがどのように処理されるかを確認し、その後、影響を受けるアイコンがサイレントな失敗なしに正しくレンダリングされることを検証します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp
領域
desktop
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。