Buttons in Settings › Storage have three different sizes

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

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

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

評価

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

調査の方向性

ボタンのサイズやスタイルに一貫性がないと issue が指摘している SetupPackSection.swift、SyncFolderSection.swift、StorageSettingsSection.swift から始めてください。docs/conventions.md を読み、.small を使っている既存の Settings 行を確認してください。次に、指摘されたデフォルト設定について SettingsDetail、WallpaperThumbnailChooser、NativeWallpaperSourceControl を確認してください。Settings 行のボタンの高さとパネルの見た目が統一されれば完了です。

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

説明

area: settings bug Haiku review: no-score ui
Area

Settings

Wallpaper

Any

What you did

Open Settings › Storage.

What went wrong

The row buttons come in three sizes and two looks:

  • Scan library…, Pull & Review… and the backup Export… are 20 pt (.panelPrimary(size: .small)).
  • Setup Pack Export… and Import…, Choose folder… and Push now are 28 pt. They use .panelSecondary, which defaults to .regular.
  • Choose backup… has no panel style, so it's a system button that ignores the panel's colours.

You see it most where Push now (28 pt) sits next to Pull & Review… (20 pt). StorageSettingsSection sets .controlSize(.small) with the comment "Row buttons and switches share one size across Settings", and docs/conventions.md says a .panelSecondary beside a .panelPrimary uses the same size. Most other Settings rows already use .small.

Suggested fix: Use .panelSecondary(size: .small) in SetupPackSection.swift (Export…, Import…) and SyncFolderSection.swift (Choose folder…, Clear, Push now), and give Choose backup… (StorageSettingsSection.swift) the same style. SettingsDetail, WallpaperThumbnailChooser and NativeWallpaperSourceControl also use the default size and may need the same change.

What you expected

All row buttons in Settings are the same height.

Diagnostics report
screenshot
Details from the app

No response

App version

1.18.0 (71) (macOS 27.2.1)

主要言語
Swift
スター
1.3k
フォーク
41
平均マージ
4時間 46分
マージ済み PR(30日)
86

環境構築

はじめの一歩

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

MMFoundation/WallpaperMachine のほかの issue

MMFoundation/WallpaperMachine の issue をすべて見る

似ている issue

Swift の issue をもっと見る

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

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