A Store package shows a different icon in its row and on its page

オープン 初心者向け
#818 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
macos, swift
領域
frontend

調査の方向性

Sources/StableBar/PackagesView.swiftの362~365行目付近と、Sources/StableBar/PackageDetailView.swiftの102行目および442行目付近を読んでください。パッケージ行でウィジェットのシンボルとテーマのプレビューをどのように表示しているかを、詳細ヘッダーのPackageIconと比較します。そのうえで、ヘッダーを行と同じ表示に更新し、PackageIconが使われていなければ削除してください。ウィジェットのヘッダーがインデックスのシンボルまたはフォールバックのshippingboxを使い、テーマのヘッダーがテーマのプレビューを表示すれば完了です。

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

説明

enhancement

Problem

In Settings → Store, a widget package's row shows the SF Symbol the Store index gives it: the symbol in stablebar-packages' listing.json, such as a gauge for Status ring. Open the package and its page shows a different icon: a white letter on a color hashed from the package ID, such as a green S. A theme's row shows a small preview of the theme, and its page the same kind of letter tile.

So a package changes its look once you open it, and the tile's color means nothing. The Store now has three pictures for one package: the row's symbol, the page's letter and the page's screenshot.

Proposal

The page's header shows what the package's row shows:

  • A widget package: the index's symbol in the row's tile, or shippingbox when no source gives one (a local folder, a private source without symbols).
  • A theme: the row's small preview.

PackageIcon then has no other use and can go.

Possible today

No. The row draws RowIcon(symbol: entry.symbol ?? "shippingbox") (Sources/StableBar/PackagesView.swift:365), and themes PackageListPreview (:362). The page's header draws PackageIcon(id:name:) (Sources/StableBar/PackageDetailView.swift:102, defined at :442), which ignores symbol. Checked on origin/main at da7455a.

Related

  • #711 added category and symbol to the index and the rows' icons, and kept the page's letter tile.
  • #144 / #152 put previews in the package list. #711 replaced them with symbols for widget packages and kept them for themes.

Triaged by Claude Code (Claude Opus 5.5).

主要言語
Swift
スター
184
フォーク
12
平均マージ
3時間 50分
マージ済み PR(30日)
387

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Seb-GRAF/StableBar のほかの issue

Seb-GRAF/StableBar の issue をすべて見る

似ている issue

Swift の issue をもっと見る

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

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