Skip to content

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.rs
index 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.rs
index 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.rs
index 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.tsv
index 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 tahu
Apply 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í obrazovce
Clear Brush Controls Obnovit ovládací prvky stopy
Reset 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.tsv
index 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ätten
Remove after each stroke Nach jedem Strich entfernen
Apply 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 anzeigen
Clear Brush Controls Pinselsteuerungen löschen
Reset All Locked Settings Alle gesperrten Einstellungen zurücksetzen
Copy Texture to Other Tools Struktur auf andere Werkzeuge kopieren
diff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsv
index 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.tsv
index 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 Suavizar
Remove after each stroke Eliminar después de cada trazo
Apply 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 inicio
Clear Brush Controls Borrar controles de pincel
Reset All Locked Settings Restaurar todos los ajustes bloqueados
Copy Texture to Other Tools Copiar textura en otras herramientas
diff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsv
index 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 Lisser
Remove after each stroke Supprimer après chaque trait
Apply 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'accueil
Clear Brush Controls Effacer les commandes de pinceau
Reset All Locked Settings Réinitialiser tous les paramètres verrouillés
Copy Texture to Other Tools Copier la texture dans d'autres outils
diff --git a/crates/ui-egui/src/i18n/hu.tsv b/crates/ui-egui/src/i18n/hu.tsv
index 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árga
The 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éskor
Vanishing 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őn
Clear Brush Controls Ecsetvezérlők törlése
Reset All Locked Settings Összes zárolt beállítás visszaállítása
Copy Texture to Other Tools Textúra másolása más eszközökre
diff --git a/crates/ui-egui/src/i18n/id.tsv b/crates/ui-egui/src/i18n/id.tsv
index 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 Haluskan
Remove after each stroke Hapus setelah setiap goresan
Apply 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 beranda
Clear Brush Controls Hapus Kontrol Kuas
Reset All Locked Settings Atur Ulang Semua Pengaturan Terkunci
Copy Texture to Other Tools Salin Tekstur ke Alat Lain
diff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsv
index 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 Zoom
Remove after each stroke Rimuovi dopo ogni tratto
Apply 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 iniziale
Clear Brush Controls Cancella controlli pennello
Reset All Locked Settings Ripristina tutte le impostazioni bloccate
Copy Texture to Other Tools Copia texture su altri strumenti
diff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsv
index 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 steps
Load Actions… アクションを読み込み…
diff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsv
index 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.tsv
index 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 maken
Remove after each stroke Verwijderen na elke streek
Apply 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 startscherm
Clear Brush Controls Penseelbesturing wissen
Reset All Locked Settings Alle vergrendelde instellingen opnieuw instellen
Copy Texture to Other Tools Structuur kopiëren naar andere gereedschappen
diff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsv
index 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ęciu
Apply 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łównym
Clear Brush Controls Wyczyść elementy sterujące pędzlem
Reset All Locked Settings Resetuj wszystkie zablokowane ustawienia
Copy Texture to Other Tools Kopiuj teksturę do innych narzędzi
diff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsv
index 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 cor
Remove after each stroke Remover após cada traço
Apply 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 inicial
Clear Brush Controls Limpar controles de pincel
Reset All Locked Settings Redefinir todas as configurações bloqueadas
Copy Texture to Other Tools Copiar textura para outras ferramentas
diff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsv
index 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.tsv
index 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 Izgled
Ink Characteristics Karakteristike mastila
Solidity: Punoća:
Redrawing Ponovno iscrtavanje
+ Show home recent files Prikaži nedavne datoteke na početnom ekranu
diff --git a/crates/ui-egui/src/i18n/tr.tsv b/crates/ui-egui/src/i18n/tr.tsv
index 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öster
Clear Brush Controls Fırça Denetimlerini Temizle
Reset All Locked Settings Tüm Kilitli Ayarları Sıfırla
Copy Texture to Other Tools Dokuyu Diğer Araçlara Kopyala
diff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsv
index 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.tsv
index 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ượt
Remove 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ính
Clear Brush Controls Xóa điều khiển cọ
Reset All Locked Settings Đặt lại tất cả cài đặt đã khóa
Copy Texture to Other Tools Sao chép họa tiết sang các công cụ khác
diff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsv
index 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.tsv
index 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.md
index 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.toml
index 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"