PhotoCraft: An open-source, photo editor written by scratch in pure Rust
Interface: hide the Home screen's recent files (#4382) (#4387)
Valentin Klein12a474d550e1
diff --git a/crates/engine/src/prefs.rs b/crates/engine/src/prefs.rsindex 295870b3c..33b7f1500 100644--- a/crates/engine/src/prefs.rs+++ b/crates/engine/src/prefs.rs@@ -257,6 +257,9 @@ pub struct Interface {/// Show the repeating dot pattern on the canvas surround (including the empty workspace)./// Disable for a uniform background, for example on OLED displays (#2264).pub show_canvas_dots: bool,+ /// List recent files on the Home screen (the empty workspace). Off hides the list; the+ /// recent files themselves are kept and File > Open Recent still shows them.+ pub show_home_recent_files: bool,/// Document border in standard screen mode.pub canvas_border: CanvasBorder,pub ui_scale: UiScale,@@ -298,6 +301,7 @@ impl Default for Interface {canvas_color: CanvasColor::Default,canvas_custom_color: "#282828".into(),show_canvas_dots: true,+ show_home_recent_files: true,canvas_border: CanvasBorder::DropShadow,ui_scale: UiScale::Auto,language: "auto".into(),diff --git a/crates/engine/src/prefs/tests.rs b/crates/engine/src/prefs/tests.rsindex 7f5c863e7..b96f2841e 100644--- a/crates/engine/src/prefs/tests.rs+++ b/crates/engine/src/prefs/tests.rs@@ -49,6 +49,24 @@ fn canvas_dot_grid_can_be_disabled_persisted_and_reset() {assert!(s.prefs().interface.show_canvas_dots);}+/// UI-217-10: the Home screen's recent-files list can be switched off and the choice persists.+#[test]+fn home_recent_files_preference_defaults_on_persists_and_resets() {+ let mut s = Session::new();+ assert!(s.prefs().interface.show_home_recent_files);+ s.execute("prefs.set", json!({"path": "interface.showHomeRecentFiles", "value": false})).unwrap();+ assert!(!s.prefs().interface.show_home_recent_files);+ let mut restored = Session::new();+ restored.load_prefs_json(&s.prefs_to_json()).unwrap();+ assert!(!restored.prefs().interface.show_home_recent_files);+ let mut legacy = Session::new();+ legacy.load_prefs_json(r#"{"interface": {"theme": "studio"}}"#).unwrap();+ assert!(legacy.prefs().interface.show_home_recent_files);+ assert!(s.execute("prefs.set", json!({"path": "interface.showHomeRecentFiles", "value": 3})).is_err());+ s.execute("prefs.reset", json!({"path": "interface.showHomeRecentFiles"})).unwrap();+ assert!(s.prefs().interface.show_home_recent_files);+}+#[test]fn appearance_defaults_and_legacy_theme_migrate() {let p = Preferences::default();diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rsindex 7195620cd..2e56d2528 100644--- a/crates/ui-egui/src/canvas.rs+++ b/crates/ui-egui/src/canvas.rs@@ -2633,7 +2633,9 @@ fn start_screen(app: &mut PhotocraftApp, ui: &mut egui::Ui) {let area = ui.available_rect_before_wrap();paint_dots(ui, area, app.session.prefs().interface.show_canvas_dots);// File › Open Recent, newest first (on the web there are no paths to reopen).- let recent: Vec<String> = if cfg!(target_arch = "wasm32") { Vec::new() } else { app.ui.recent_files.iter().take(HOME_RECENT).cloned().collect() };+ let show_recent = app.session.prefs().interface.show_home_recent_files;+ let recent: Vec<String> =+ if cfg!(target_arch = "wasm32") || !show_recent { Vec::new() } else { app.ui.recent_files.iter().take(HOME_RECENT).cloned().collect() };let recent_h = if recent.is_empty() { 0.0 } else { 34.0 + recent.len() as f32 * HOME_RECENT_ROW };let card = Rect::from_center_size(area.center(), egui::vec2(460.0, 330.0 + recent_h));let new_label = crate::shortcuts::command_label(app, "New document…", "file.new");@@ -6580,6 +6582,30 @@ mod tests {assert!(hint.ends_with(&format!("paste a copied image with {}.", crate::notices::paste_hint(&wayland))), "{hint}");}+ /// #4382: Interface › Show home recent files off hides the Home screen's list, not the recents.+ #[test]+ fn home_recent_list_hides_when_the_preference_is_off() {+ use egui_kittest::kittest::Queryable;+ let mut app = PhotocraftApp::new(photocraft_engine::Session::new(), crate::Services::default());+ app.push_recent("/tmp/photocraft-217/hidden.psd");+ let mut h = egui_kittest::Harness::builder().with_size(egui::vec2(900.0, 760.0)).build_ui_state(+ |ui, (app, ready): &mut (PhotocraftApp, bool)| {+ if *ready {+ egui::CentralPanel::default().frame(egui::Frame::NONE).show(ui, |ui| document_area(app, ui));+ }+ },+ (app, false),+ );+ PhotocraftApp::setup_context(&h.ctx, crate::theme::ThemeKind::default());+ h.state_mut().1 = true;+ h.run_steps(3);+ assert!(h.query_by_label("hidden.psd").is_some(), "listed by default");+ h.state_mut().0.run("prefs.set", serde_json::json!({"values": {"interface.showHomeRecentFiles": false}})).unwrap();+ h.run_steps(3);+ assert!(h.query_by_label("hidden.psd").is_none(), "hidden when off");+ assert_eq!(h.state().0.ui.recent_files.len(), 1, "the list itself is kept");+ }+/// The Home screen's × takes a file off Recent without opening it, and its right-click menu/// removes one entry or clears the list; the preferences keep the change (#2691).#[test]diff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsvindex 01a8b9e4d..76e96e6ea 100644--- a/crates/ui-egui/src/i18n/cs.tsv+++ b/crates/ui-egui/src/i18n/cs.tsv@@ -3717,6 +3717,7 @@ navigator Zoom ZvětšeníRemove after each stroke Odstranit po každém tahuApply the removal ({key}) Použít odstranění ({key})Strokes to remove: {n} (Enter applies, Esc cancels) Tahy k odstranění: {n} (Enter použije, Esc zruší)+ Show home recent files Zobrazit nedávné soubory na úvodní obrazovceClear Brush Controls Obnovit ovládací prvky stopyReset All Locked Settings Obnovit všechna zamknutá nastaveníCopy Texture to Other Tools Kopírovat texturu do jiných nástrojůdiff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsvindex 489647ed2..9f9ec3821 100644--- a/crates/ui-egui/src/i18n/de.tsv+++ b/crates/ui-egui/src/i18n/de.tsv@@ -3107,6 +3107,7 @@ curves Smooth GlättenRemove after each stroke Nach jedem Strich entfernenApply the removal ({key}) Entfernen anwenden ({key})Strokes to remove: {n} (Enter applies, Esc cancels) Striche zum Entfernen: {n} (Eingabe wendet an, Esc bricht ab)+ Show home recent files Zuletzt geöffnete Dateien auf dem Startbildschirm anzeigenClear Brush Controls Pinselsteuerungen löschenReset All Locked Settings Alle gesperrten Einstellungen zurücksetzenCopy Texture to Other Tools Struktur auf andere Werkzeuge kopierendiff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsvindex 410da1a18..ef3a6906c 100644--- a/crates/ui-egui/src/i18n/el.tsv+++ b/crates/ui-egui/src/i18n/el.tsv@@ -3807,6 +3807,7 @@ curves Smooth ΕξομάλυνσηRemove after each stroke Αφαίρεση μετά από κάθε πινελιάApply the removal ({key}) Εφαρμογή της αφαίρεσης ({key})Strokes to remove: {n} (Enter applies, Esc cancels) Πινελιές προς αφαίρεση: {n} (Enter εφαρμόζει, Esc ακυρώνει)+ Show home recent files Εμφάνιση πρόσφατων αρχείων στην αρχική οθόνηClear Brush Controls Απαλοιφή στοιχείων ελέγχου πινέλουReset All Locked Settings Επαναφορά όλων των κλειδωμένων ρυθμίσεωνCopy Texture to Other Tools Αντιγραφή υφής σε άλλα εργαλείαdiff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsvindex b5db4e992..e234ea021 100644--- a/crates/ui-egui/src/i18n/es.tsv+++ b/crates/ui-egui/src/i18n/es.tsv@@ -2794,6 +2794,7 @@ curves Smooth SuavizarRemove after each stroke Eliminar después de cada trazoApply the removal ({key}) Aplicar la eliminación ({key})Strokes to remove: {n} (Enter applies, Esc cancels) Trazos por eliminar: {n} (Intro aplica, Esc cancela)+ Show home recent files Mostrar archivos recientes en la pantalla de inicioClear Brush Controls Borrar controles de pincelReset All Locked Settings Restaurar todos los ajustes bloqueadosCopy Texture to Other Tools Copiar textura en otras herramientasdiff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsvindex ab0cca6f4..55ed8f668 100644--- a/crates/ui-egui/src/i18n/fr.tsv+++ b/crates/ui-egui/src/i18n/fr.tsv@@ -3111,6 +3111,7 @@ curves Smooth LisserRemove after each stroke Supprimer après chaque traitApply the removal ({key}) Appliquer la suppression ({key})Strokes to remove: {n} (Enter applies, Esc cancels) Traits à supprimer : {n} (Entrée applique, Échap annule)+ Show home recent files Afficher les fichiers récents sur l'écran d'accueilClear Brush Controls Effacer les commandes de pinceauReset All Locked Settings Réinitialiser tous les paramètres verrouillésCopy Texture to Other Tools Copier la texture dans d'autres outilsdiff --git a/crates/ui-egui/src/i18n/hu.tsv b/crates/ui-egui/src/i18n/hu.tsvindex 9a7283a5a..9bfc23d3b 100644--- a/crates/ui-egui/src/i18n/hu.tsv+++ b/crates/ui-egui/src/i18n/hu.tsv@@ -4011,7 +4011,8 @@ cameraRaw Yellow SárgaThe layer or its mask changed. Drag the mask onto the Trash again. A réteg vagy a maszkja megváltozott. Húzd újra a maszkot a Kukába.Transform On Drop Átalakítás elengedéskorVanishing Point is not active Az Enyészpont nem aktív- Vanishing Point: click four corners to create a plane Enyészpont: sík létrehozásához kattints a négy sarokra+ Vanishing Point: click four corners to create a plane Enyészpont: sík létrehozásához kattintson a négy sarokra+ Show home recent files Legutóbbi fájlok megjelenítése a kezdőképernyőnClear Brush Controls Ecsetvezérlők törléseReset All Locked Settings Összes zárolt beállítás visszaállításaCopy Texture to Other Tools Textúra másolása más eszközökrediff --git a/crates/ui-egui/src/i18n/id.tsv b/crates/ui-egui/src/i18n/id.tsvindex 6924c4560..887259abc 100644--- a/crates/ui-egui/src/i18n/id.tsv+++ b/crates/ui-egui/src/i18n/id.tsv@@ -3098,6 +3098,7 @@ curves Smooth HaluskanRemove after each stroke Hapus setelah setiap goresanApply the removal ({key}) Terapkan penghapusan ({key})Strokes to remove: {n} (Enter applies, Esc cancels) Goresan untuk dihapus: {n} (Enter menerapkan, Esc membatalkan)+ Show home recent files Tampilkan file terbaru di layar berandaClear Brush Controls Hapus Kontrol KuasReset All Locked Settings Atur Ulang Semua Pengaturan TerkunciCopy Texture to Other Tools Salin Tekstur ke Alat Laindiff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsvindex 2d42c550c..50c381641 100644--- a/crates/ui-egui/src/i18n/it.tsv+++ b/crates/ui-egui/src/i18n/it.tsv@@ -4072,6 +4072,7 @@ navigator Zoom ZoomRemove after each stroke Rimuovi dopo ogni trattoApply the removal ({key}) Applica la rimozione ({key})Strokes to remove: {n} (Enter applies, Esc cancels) Tratti da rimuovere: {n} (Invio applica, Esc annulla)+ Show home recent files Mostra i file recenti nella schermata inizialeClear Brush Controls Cancella controlli pennelloReset All Locked Settings Ripristina tutte le impostazioni bloccateCopy Texture to Other Tools Copia texture su altri strumentidiff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsvindex e05f27d71..3a59fc79c 100644--- a/crates/ui-egui/src/i18n/ja.tsv+++ b/crates/ui-egui/src/i18n/ja.tsv@@ -3718,7 +3718,8 @@ curves Smooth スムーズNo object found there — drag a rectangle around it そこにオブジェクトが見つかりません — 周囲に矩形をドラッグしてくださいRemove after each stroke ストロークごとに削除Apply the removal ({key}) 削除を適用 ({key})- Strokes to remove: {n} (Enter applies, Esc cancels) 削除するストローク: {n} (Enter で適用、Esc で取り消し)+ Strokes to remove: {n} (Enter applies, Esc cancels) 削除するストローク: {n}(Enter で適用、Esc で取り消し)+ Show home recent files ホーム画面に最近使ったファイルを表示# Actions panel: Load/Save Actions (.atn) and kept Photoshop stepsLoad Actions… アクションを読み込み…diff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsvindex 7de9f61f1..faa04b508 100644--- a/crates/ui-egui/src/i18n/ko.tsv+++ b/crates/ui-egui/src/i18n/ko.tsv@@ -3284,6 +3284,7 @@ curves Smooth 매끄럽게Remove after each stroke 획마다 제거Apply the removal ({key}) 제거 적용 ({key})Strokes to remove: {n} (Enter applies, Esc cancels) 제거할 획: {n} (Enter 적용, Esc 취소)+ Show home recent files 홈 화면에 최근 파일 표시Clear Brush Controls 브러시 제어 지우기Reset All Locked Settings 모든 잠긴 설정 재설정Copy Texture to Other Tools 다른 도구로 텍스처 복사diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsvindex 4ed7d8a74..a82976514 100644--- a/crates/ui-egui/src/i18n/nl.tsv+++ b/crates/ui-egui/src/i18n/nl.tsv@@ -3869,6 +3869,7 @@ curves Smooth Vloeiend makenRemove after each stroke Verwijderen na elke streekApply the removal ({key}) Verwijdering toepassen ({key})Strokes to remove: {n} (Enter applies, Esc cancels) Streken om te verwijderen: {n} (Enter past toe, Esc annuleert)+ Show home recent files Recente bestanden tonen op het startschermClear Brush Controls Penseelbesturing wissenReset All Locked Settings Alle vergrendelde instellingen opnieuw instellenCopy Texture to Other Tools Structuur kopiëren naar andere gereedschappendiff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsvindex a27cb4af8..10ce7c681 100644--- a/crates/ui-egui/src/i18n/pl.tsv+++ b/crates/ui-egui/src/i18n/pl.tsv@@ -3707,6 +3707,7 @@ curves Smooth WygładźRemove after each stroke Usuwaj po każdym pociągnięciuApply the removal ({key}) Zastosuj usuwanie ({key})Strokes to remove: {n} (Enter applies, Esc cancels) Pociągnięcia do usunięcia: {n} (Enter stosuje, Esc anuluje)+ Show home recent files Pokaż ostatnie pliki na ekranie głównymClear Brush Controls Wyczyść elementy sterujące pędzlemReset All Locked Settings Resetuj wszystkie zablokowane ustawieniaCopy Texture to Other Tools Kopiuj teksturę do innych narzędzidiff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsvindex 0a6449770..f7e5b5bc1 100644--- a/crates/ui-egui/src/i18n/pt-br.tsv+++ b/crates/ui-egui/src/i18n/pt-br.tsv@@ -3899,6 +3899,7 @@ layerLabel No Color Sem corRemove after each stroke Remover após cada traçoApply the removal ({key}) Aplicar a remoção ({key})Strokes to remove: {n} (Enter applies, Esc cancels) Traços a remover: {n} (Enter aplica, Esc cancela)+ Show home recent files Mostrar arquivos recentes na tela inicialClear Brush Controls Limpar controles de pincelReset All Locked Settings Redefinir todas as configurações bloqueadasCopy Texture to Other Tools Copiar textura para outras ferramentasdiff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsvindex 2dbbf4003..d54764685 100644--- a/crates/ui-egui/src/i18n/ru.tsv+++ b/crates/ui-egui/src/i18n/ru.tsv@@ -3055,6 +3055,7 @@ curves Smooth СгладитьRemove after each stroke Удалять после каждого штрихаApply the removal ({key}) Применить удаление ({key})Strokes to remove: {n} (Enter applies, Esc cancels) Штрихов к удалению: {n} (Enter применяет, Esc отменяет)+ Show home recent files Показывать недавние файлы на домашнем экранеClear Brush Controls Очистить параметры кистиReset All Locked Settings Сбросить все заблокированные параметрыCopy Texture to Other Tools Скопировать текстуру в другие инструментыdiff --git a/crates/ui-egui/src/i18n/sr.tsv b/crates/ui-egui/src/i18n/sr.tsvindex 4a5f7459d..f39333821 100644--- a/crates/ui-egui/src/i18n/sr.tsv+++ b/crates/ui-egui/src/i18n/sr.tsv@@ -4219,3 +4219,4 @@ shape Appearance IzgledInk Characteristics Karakteristike mastilaSolidity: Punoća:Redrawing Ponovno iscrtavanje+ Show home recent files Prikaži nedavne datoteke na početnom ekranudiff --git a/crates/ui-egui/src/i18n/tr.tsv b/crates/ui-egui/src/i18n/tr.tsvindex 01c37a18b..10b5115a1 100644--- a/crates/ui-egui/src/i18n/tr.tsv+++ b/crates/ui-egui/src/i18n/tr.tsv@@ -3823,6 +3823,7 @@ cameraData Lens Lens@plural {n} step|{n} steps {n} adım@plural {warning} (+{n} more brush preset warning)|{warning} (+{n} more brush preset warnings) {warning} (+{n} fırça ön ayarı uyarısı daha)@plural {what} with {n} warning|{what} with {n} warnings {what}, {n} uyarı ile+ Show home recent files Ana ekranda son dosyaları gösterClear Brush Controls Fırça Denetimlerini TemizleReset All Locked Settings Tüm Kilitli Ayarları SıfırlaCopy Texture to Other Tools Dokuyu Diğer Araçlara Kopyaladiff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsvindex 79ebc8df3..efb5cbe26 100644--- a/crates/ui-egui/src/i18n/uk.tsv+++ b/crates/ui-egui/src/i18n/uk.tsv@@ -3808,6 +3808,7 @@ curves Smooth ЗгладитиRemove after each stroke Видаляти після кожного штрихаApply the removal ({key}) Застосувати видалення ({key})Strokes to remove: {n} (Enter applies, Esc cancels) Штрихів для видалення: {n} (Enter застосовує, Esc скасовує)+ Show home recent files Показувати нещодавні файли на головному екраніClear Brush Controls Очистити параметри пензляReset All Locked Settings Скинути всі заблоковані параметриCopy Texture to Other Tools Скопіювати текстуру в інші інструментиdiff --git a/crates/ui-egui/src/i18n/vi.tsv b/crates/ui-egui/src/i18n/vi.tsvindex 1fea5e6b3..8e8792108 100644--- a/crates/ui-egui/src/i18n/vi.tsv+++ b/crates/ui-egui/src/i18n/vi.tsv@@ -3592,6 +3592,7 @@ curves Smooth Làm mượtRemove after each stroke Xóa sau mỗi nét vẽApply the removal ({key}) Áp dụng việc xóa ({key})Strokes to remove: {n} (Enter applies, Esc cancels) Nét vẽ cần xóa: {n} (Enter áp dụng, Esc hủy)+ Show home recent files Hiện tệp gần đây trên màn hình chínhClear Brush Controls Xóa điều khiển cọReset All Locked Settings Đặt lại tất cả cài đặt đã khóaCopy Texture to Other Tools Sao chép họa tiết sang các công cụ khácdiff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsvindex 375b61c40..3e3c572c1 100644--- a/crates/ui-egui/src/i18n/zh-hans.tsv+++ b/crates/ui-egui/src/i18n/zh-hans.tsv@@ -2719,6 +2719,7 @@ curves Smooth 平滑Remove after each stroke 每次描边后移除Apply the removal ({key}) 应用移除 ({key})Strokes to remove: {n} (Enter applies, Esc cancels) 待移除的描边:{n}(Enter 应用,Esc 取消)+ Show home recent files 在主屏幕上显示最近的文件Clear Brush Controls 清除画笔控件Reset All Locked Settings 复位所有锁定的设置Copy Texture to Other Tools 将纹理复制到其他工具diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsvindex de931038d..4d4cbe5c0 100644--- a/crates/ui-egui/src/i18n/zh-hant.tsv+++ b/crates/ui-egui/src/i18n/zh-hant.tsv@@ -2704,6 +2704,7 @@ curves Smooth 平滑Remove after each stroke 每次描邊後移除Apply the removal ({key}) 套用移除 ({key})Strokes to remove: {n} (Enter applies, Esc cancels) 待移除的描邊:{n}(Enter 套用,Esc 取消)+ Show home recent files 在主畫面上顯示最近的檔案Clear Brush Controls 清除筆刷控制項Reset All Locked Settings 重設所有鎖定的設定Copy Texture to Other Tools 複製紋理至其他工具diff --git a/docs/scorecard.md b/docs/scorecard.mdindex 2ee12e28e..a3084020e 100644--- a/docs/scorecard.md+++ b/docs/scorecard.md@@ -9,7 +9,7 @@ Generated by `cargo xtask scorecard` from `perf/budgets.toml`, `perf/baseline.js| [Performance](#performance) | 3 | 22 | 22 | 56 scenarios: 3 within budget, 22 over budget or failing, 9 tracked only, 17 not run, 5 not measurable yet (baseline 2026-10-05) || [File compatibility](#file-compatibility) | 7 | 13 | 7 | io corpus: oracle ≥ 146/170, round trip ≥ 169/170; psd-tools corpus: oracle ≥ 236/309, round trip ≥ 308/309; photoshop oracles: oracle ≥ 147/256, round trip ≥ 258/256 || [Tools](#tools) | 29 | 13 | 1 | |-| [Workspace and UI](#workspace-and-ui) | 13 | 6 | 4 | settings that do nothing: 26 of 157 (target 0) |+| [Workspace and UI](#workspace-and-ui) | 13 | 6 | 4 | settings that do nothing: 26 of 158 (target 0) || [Type](#type) | 4 | 3 | 2 | || [Automation](#automation) | 5 | 2 | 4 | 631 of 631 menu items live (100.0%) || [Reliability](#reliability) | 5 | 2 | 0 | never-crash lints on 28 of 28 crates; panic_hunt present |@@ -176,7 +176,7 @@ Corpus floors (`crates/io/tests/corpus.rs`): the enforced minimums; the corpus t## Workspace and UI-**Settings that do nothing: 26 of 157** (target 0, #204). Counted by the prefs audit (`xtask/src/scorecard.rs`): a `Preferences` field counts as read when code outside the prefs model (`prefs.rs` except its `impl Session` blocks; tests excluded; the schema-driven dialog never names a field) accesses `section.field`, or `.section` and `.field` in the same file, or calls a section method that reads `self.field`. It is a heuristic lower bound: a generic name can look read when it isn't.+**Settings that do nothing: 26 of 158** (target 0, #204). Counted by the prefs audit (`xtask/src/scorecard.rs`): a `Preferences` field counts as read when code outside the prefs model (`prefs.rs` except its `impl Session` blocks; tests excluded; the schema-driven dialog never names a field) accesses `section.field`, or `.section` and `.field` in the same file, or calls a section method that reads `self.field`. It is a heuristic lower bound: a generic name can look read when it isn't.Unread: `general.color_picker`, `general.animated_zoom`, `general.zoom_resizes_windows`, `workspace.auto_show_hidden_panels`, `workspace.enable_floating_document_window_docking`, `file_handling.save_in_background`, `performance.cache_levels`, `performance.legacy_compositing`, `scratch_disks.disks`, `units_and_rulers.column_width`, `units_and_rulers.gutter`, `plug_ins.show_extension_panels`, `plug_ins.allow_scripts_to_connect`, `plug_ins.generator_enabled`, `type_.text_engine`, `type_.recent_fonts`, `enhanced_controls.scrubby_slider_acceleration`, `enhanced_controls.touch_gestures`, `raw_defaults.color_space`, `raw_defaults.bit_depth`, `raw_defaults.resolution`, `raw_defaults.sharpen_for`, `raw_defaults.open_as_smart_object`, `raw_defaults.apply_auto_tone`, `integrations.allow_agent_control`, `integrations.control_port`.@@ -191,7 +191,7 @@ Unread: `general.color_picker`, `general.animated_zoom`, `general.zoom_resizes_w| UI-217-7 | Command palette shows recently run commands on an empty query | done | [#217](https://github.com/storytold/photocraft/issues/217) | palette.rs: note_recent from menus::invoke keeps the last 8 commands (dedup, newest first); an empty query lists them via recent_hits; the_palette_records_and_replays_recent_commands_on_an_empty_query covers record -> empty query -> replay || UI-217-8 | Tool-specific canvas right-click menu; right-click spelling suggestions in text fields | partial | [#217](https://github.com/storytold/photocraft/issues/217) | paint_mouse.rs brush picker and canvas_tool_menu.rs selection actions; text_field_menu.rs gives every text field its right-click Undo/Cut/Copy/Paste/Delete/Select All menu (#2921); other tools missing; the Type tool's edit menu starts with spelling suggestions and Add to Dictionary over a misspelled word (#4370); Ignore / Ignore All, suggestions in the non-editing type menu and in generic text fields are not there yet || UI-217-9 | UI scale presets 100/115/125/150/200 % through zoom_factor, remembered | done | [#217](https://github.com/storytold/photocraft/issues/217) | prefs::UiScale offers Auto plus 75 to 300 percent (13 presets, more than the five this row lists); prefs_ui.rs display_scale resolves it (Auto follows the system scale, fractional and unscaled 4K included, #1072/#1278) and sync_display_scale applies it with ctx.set_zoom_factor. It is a preference, so it is remembered. The zoom_factor assert in input_tests.rs is about canvas zoom not scaling the interface, not about this setting |-| UI-217-10 | Appearance: animation toggle, canvas pattern toggle per theme, start-screen recents | partial | [#217](https://github.com/storytold/photocraft/issues/217) | interface.enableAnimations (prefs_ui.rs sync_animations, #3273) zeroes egui animation_time and scroll animation in both styles; the Home screen lists recent files (canvas.rs home_recent, #2691); no canvas pattern toggle yet (#2264) and no option to hide the Home screen recents |+| UI-217-10 | Appearance: animation toggle, canvas pattern toggle per theme, start-screen recents | partial | [#217](https://github.com/storytold/photocraft/issues/217) | interface.enableAnimations (prefs_ui.rs sync_animations, #3273) zeroes egui animation_time and scroll animation in both styles; the Home screen lists recent files (canvas.rs home_recent, #2691); the canvas dot pattern toggle is interface.showCanvasDots (#2264, global rather than per theme); interface.showHomeRecentFiles hides the Home screen recents (#4382) || UI-217-11 | Soft dark and soft light themes with picker previews; outlined knobs in light themes | partial | [#217](https://github.com/storytold/photocraft/issues/217) | theme.rs ThemeKind has fourteen themes: the twelve earlier ones plus Soft Dark and Soft Light (low-contrast Studio-layout palettes, text at 4.5:1, selectable in Preferences with the existing theme-card previews, ui.set {theme}, Window > Theme); outlined knobs in the light themes are still missing || UI-217-12 | Save custom New Document presets; a real Recent category | done | [#217](https://github.com/storytold/photocraft/issues/217) | document_preset_cmds.rs and new_doc_ui.rs: named presets save/select/delete through preferences; Recent lists Clipboard, the last 20 documents created in the dialog (document.recent.*, persisted with the presets, newest first, deduplicated) and the uncovered defaults (#3131); created_documents_fill_the_recent_category || UI-217-13 | Numeric fields accept arithmetic and units; scrubby labels; double-click resets a slider | done | [#217](https://github.com/storytold/photocraft/issues/217) | widgets::value_field: arithmetic plus units (1in, 5mm, 72pt, 50%) converted at the document resolution (#3099); widgets::scrub_label makes options-bar, slider-row and Character labels scrubby (Shift x10, Alt fine); slider rows with a known default reset on double-click |diff --git a/scorecard/ui.toml b/scorecard/ui.tomlindex 84f071b4a..4ac0ce638 100644--- a/scorecard/ui.toml+++ b/scorecard/ui.toml@@ -73,7 +73,7 @@ id = "UI-217-10"target = "Appearance: animation toggle, canvas pattern toggle per theme, start-screen recents"status = "partial"issue = 217-note = "interface.enableAnimations (prefs_ui.rs sync_animations, #3273) zeroes egui animation_time and scroll animation in both styles; the Home screen lists recent files (canvas.rs home_recent, #2691); no canvas pattern toggle yet (#2264) and no option to hide the Home screen recents"+note = "interface.enableAnimations (prefs_ui.rs sync_animations, #3273) zeroes egui animation_time and scroll animation in both styles; the Home screen lists recent files (canvas.rs home_recent, #2691); the canvas dot pattern toggle is interface.showCanvasDots (#2264, global rather than per theme); interface.showHomeRecentFiles hides the Home screen recents (#4382)"[[item]]id = "UI-217-11"