Buttons in Settings › Storage have three different sizes

Aperta Adatta ai principianti
#346 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
swift
Ambito
design, desktop

Direzione di ricerca

Inizia da SetupPackSection.swift, SyncFolderSection.swift e StorageSettingsSection.swift, dove l’issue indica i pulsanti con dimensioni o stili incoerenti. Leggi docs/conventions.md e controlla le righe di Settings esistenti che usano .small; poi esamina SettingsDetail, WallpaperThumbnailChooser e NativeWallpaperSourceControl per le impostazioni predefinite indicate. Il lavoro è completato quando i pulsanti delle righe di Settings hanno un’altezza e un aspetto del pannello coerenti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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)

Lingua principale
Swift
Stelle
1.3k
Fork
41
Merge medio
4h 46m
PR unite (30g)
86

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MMFoundation/WallpaperMachine

Tutte le issue di MMFoundation/WallpaperMachine

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.