Skip to content

LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust

Merge slideshow-titles into slideshow-templates (origin/main: batch 31; open_session keeps both the slide templates dir and main's apple_photos_background, formats locales merged, whats-new keeps main's Reliability entry, parity summary refreshed)

Jason Baldwin54c1048b5757
diff --cc apps/lightcraft/src/main.rs
index 6e4973b69,cc71cc06d..c6bdb7cba
--- a/apps/lightcraft/src/main.rs
+++ b/apps/lightcraft/src/main.rs
@@@ -614,7 -595,8 +614,9 @@@ fn services(cc: &eframe::CreationContex
fn open_session(in_memory: bool, dir: Option<std::path::PathBuf>, seed_demo: bool) -> (Session, Option<LibraryProblem>) {
let (mut s, problem) = open_library_session(in_memory, dir, seed_demo);
s.face_models_dir = lightcraft_engine::config::default_face_models_dir();
+ s.slide_templates_dir = lightcraft_engine::config::config_dir().map(|d| d.join(lightcraft_engine::slide_template::DIR_NAME));
+ // Control requests are answered on the UI thread: Add to Apple Photos must not wait there
+ s.apple_photos_background = true;
(s, problem)
}
diff --cc crates/ui-egui/locales/de-formats.json
index 484752fb6,7bcaf9f20..9b9cf51a3
--- a/crates/ui-egui/locales/de-formats.json
+++ b/crates/ui-egui/locales/de-formats.json
@@@ -234,13 -241,8 +241,17 @@@
"{n} Local photo{} skipped: albums hold library photos (Add to My Photos first)": "Übersprungen: {n} lokale Fotos{0:.0} – Alben enthalten Bibliotheksfotos (zuerst zu „Meine Fotos“ hinzufügen)",
"New Folder in “{name}”": "Neuer Ordner in „{name}“",
"Moved {} photo(s)": "{} Foto(s) verschoben",
+ "not added to Apple Photos: {e}": "nicht zu Apple Fotos hinzugefügt: {e}",
+ "{n} added to Apple Photos album “{album}”": "{n} zum Apple-Fotos-Album „{album}“ hinzugefügt",
+ "{n} added to Apple Photos": "{n} zu Apple Fotos hinzugefügt",
- "{n} photos opened for editing; each is stacked with its original": "{n} Fotos zur Bearbeitung geöffnet; jedes ist mit seinem Original gestapelt"
++ "{n} photos opened for editing; each is stacked with its original": "{n} Fotos zur Bearbeitung geöffnet; jedes ist mit seinem Original gestapelt",
+ "Applied {name}": "{name} angewendet",
+ "Delete “{name}”?": "„{name}“ löschen?",
+ "Updated {name}": "{name} aktualisiert",
+ "Exported to {path}": "Exportiert nach {path}",
+ "Saved template {name}": "Vorlage {name} gespeichert",
+ "Imported {name}": "{name} importiert",
+ "Skipped {problem}": "Übersprungen: {problem}",
+ "…and {more} more": "…und {more} weitere",
+ "Template preview: {name}": "Vorlagenvorschau: {name}"
}
diff --cc crates/ui-egui/locales/es-formats.json
index b55db9157,3dd94a934..8756384d0
--- a/crates/ui-egui/locales/es-formats.json
+++ b/crates/ui-egui/locales/es-formats.json
@@@ -234,13 -241,8 +241,17 @@@
"{n} Local photo{} skipped: albums hold library photos (Add to My Photos first)": "Fotos locales omitidas: {n}{0:.0} — los álbumes contienen fotos de la biblioteca (añádelas primero a Mis fotos)",
"New Folder in “{name}”": "Nueva carpeta en «{name}»",
"Moved {} photo(s)": "{} foto(s) movida(s)",
+ "not added to Apple Photos: {e}": "no se añadieron a Fotos de Apple: {e}",
+ "{n} added to Apple Photos album “{album}”": "{n} añadidas al álbum “{album}” de Fotos de Apple",
+ "{n} added to Apple Photos": "{n} añadidas a Fotos de Apple",
- "{n} photos opened for editing; each is stacked with its original": "{n} fotos abiertas para editar; cada una está apilada con su original"
++ "{n} photos opened for editing; each is stacked with its original": "{n} fotos abiertas para editar; cada una está apilada con su original",
+ "Applied {name}": "Se aplicó {name}",
+ "Delete “{name}”?": "¿Eliminar «{name}»?",
+ "Updated {name}": "Se actualizó {name}",
+ "Exported to {path}": "Exportado a {path}",
+ "Saved template {name}": "Plantilla {name} guardada",
+ "Imported {name}": "Se importó {name}",
+ "Skipped {problem}": "Omitido: {problem}",
+ "…and {more} more": "…y {more} más",
+ "Template preview: {name}": "Vista previa de la plantilla: {name}"
}
diff --cc crates/ui-egui/locales/fr-formats.json
index a350f4caa,65cf97311..e30fd95a3
--- a/crates/ui-egui/locales/fr-formats.json
+++ b/crates/ui-egui/locales/fr-formats.json
@@@ -234,13 -241,8 +241,17 @@@
"{n} Local photo{} skipped: albums hold library photos (Add to My Photos first)": "Photos locales ignorées : {n}{0:.0} — les albums contiennent des photos de la bibliothèque (ajoutez-les d’abord à Mes photos)",
"New Folder in “{name}”": "Nouveau dossier dans « {name} »",
"Moved {} photo(s)": "{} photo(s) déplacée(s)",
+ "not added to Apple Photos: {e}": "non ajouté à Apple Photos : {e}",
+ "{n} added to Apple Photos album “{album}”": "{n} ajouté(s) à l'album Apple Photos « {album} »",
+ "{n} added to Apple Photos": "{n} ajouté(s) à Apple Photos",
- "{n} photos opened for editing; each is stacked with its original": "{n} photos ouvertes pour modification ; chacune est empilée avec son original"
++ "{n} photos opened for editing; each is stacked with its original": "{n} photos ouvertes pour modification ; chacune est empilée avec son original",
+ "Applied {name}": "{name} appliqué",
+ "Delete “{name}”?": "Supprimer « {name} » ?",
+ "Updated {name}": "{name} mis à jour",
+ "Exported to {path}": "Exporté vers {path}",
+ "Saved template {name}": "Modèle {name} enregistré",
+ "Imported {name}": "{name} importé",
+ "Skipped {problem}": "Ignoré : {problem}",
+ "…and {more} more": "…et {more} de plus",
+ "Template preview: {name}": "Aperçu du modèle : {name}"
}
diff --cc crates/ui-egui/locales/ja-formats.json
index 817592216,ca286386d..0d35ac851
--- a/crates/ui-egui/locales/ja-formats.json
+++ b/crates/ui-egui/locales/ja-formats.json
@@@ -234,13 -241,8 +241,17 @@@
"{n} Local photo{} skipped: albums hold library photos (Add to My Photos first)": "ローカル写真{n}枚をスキップしました{0:.0}:アルバムに入れられるのはライブラリの写真です(先にマイフォトに追加してください)",
"New Folder in “{name}”": "「{name}」に新規フォルダ",
"Moved {} photo(s)": "{} 枚の写真を移動しました",
+ "not added to Apple Photos: {e}": "Appleの写真に追加されませんでした:{e}",
+ "{n} added to Apple Photos album “{album}”": "{n}件をAppleの写真のアルバム「{album}」に追加しました",
+ "{n} added to Apple Photos": "{n}件をAppleの写真に追加しました",
- "{n} photos opened for editing; each is stacked with its original": "{n}枚の写真を編集用に開きました。それぞれ元の写真とスタックされています"
++ "{n} photos opened for editing; each is stacked with its original": "{n}枚の写真を編集用に開きました。それぞれ元の写真とスタックされています",
+ "Applied {name}": "{name} を適用しました",
+ "Delete “{name}”?": "「{name}」を削除しますか?",
+ "Updated {name}": "{name} を更新しました",
+ "Exported to {path}": "{path} に書き出しました",
+ "Saved template {name}": "テンプレート {name} を保存しました",
+ "Imported {name}": "{name} を読み込みました",
+ "Skipped {problem}": "スキップ: {problem}",
+ "…and {more} more": "…ほか {more} 件",
+ "Template preview: {name}": "テンプレートのプレビュー: {name}"
}
diff --cc crates/ui-egui/locales/pt-br-formats.json
index 90df29fbc,0b3ebe80d..6850e8f4c
--- a/crates/ui-egui/locales/pt-br-formats.json
+++ b/crates/ui-egui/locales/pt-br-formats.json
@@@ -234,13 -241,8 +241,17 @@@
"{n} Local photo{} skipped: albums hold library photos (Add to My Photos first)": "Fotos locais ignoradas: {n}{0:.0} — álbuns contêm fotos da biblioteca (adicione-as às Minhas fotos primeiro)",
"New Folder in “{name}”": "Nova pasta em “{name}”",
"Moved {} photo(s)": "{} foto(s) movida(s)",
+ "not added to Apple Photos: {e}": "não adicionadas ao Fotos da Apple: {e}",
+ "{n} added to Apple Photos album “{album}”": "{n} adicionadas ao álbum “{album}” do Fotos da Apple",
+ "{n} added to Apple Photos": "{n} adicionadas ao Fotos da Apple",
- "{n} photos opened for editing; each is stacked with its original": "{n} fotos abertas para edição; cada uma está empilhada com a original"
++ "{n} photos opened for editing; each is stacked with its original": "{n} fotos abertas para edição; cada uma está empilhada com a original",
+ "Applied {name}": "{name} aplicado",
+ "Delete “{name}”?": "Excluir “{name}”?",
+ "Updated {name}": "{name} atualizado",
+ "Exported to {path}": "Exportado para {path}",
+ "Saved template {name}": "Modelo {name} salvo",
+ "Imported {name}": "{name} importado",
+ "Skipped {problem}": "Ignorado: {problem}",
+ "…and {more} more": "…e mais {more}",
+ "Template preview: {name}": "Prévia do modelo: {name}"
}
diff --cc crates/ui-egui/locales/ru-formats.json
index ee8b6aaa4,11651aaa0..e814d8246
--- a/crates/ui-egui/locales/ru-formats.json
+++ b/crates/ui-egui/locales/ru-formats.json
@@@ -234,13 -241,8 +241,17 @@@
"{n} Local photo{} skipped: albums hold library photos (Add to My Photos first)": "Пропущено локальных фото: {n}{0:.0} — в альбомах только фото из библиотеки (сначала добавьте их в «Мои фото»)",
"New Folder in “{name}”": "Новая папка в «{name}»",
"Moved {} photo(s)": "Перемещено фото: {}",
+ "not added to Apple Photos: {e}": "не добавлено в Apple Фото: {e}",
+ "{n} added to Apple Photos album “{album}”": "Добавлено в альбом «{album}» Apple Фото: {n}",
+ "{n} added to Apple Photos": "Добавлено в Apple Фото: {n}",
- "{n} photos opened for editing; each is stacked with its original": "Открыто для редактирования фото: {n}; каждое объединено в стопку с оригиналом"
++ "{n} photos opened for editing; each is stacked with its original": "Открыто для редактирования фото: {n}; каждое объединено в стопку с оригиналом",
+ "Applied {name}": "Применено: {name}",
+ "Delete “{name}”?": "Удалить «{name}»?",
+ "Updated {name}": "Обновлено: {name}",
+ "Exported to {path}": "Экспортировано в {path}",
+ "Saved template {name}": "Шаблон {name} сохранён",
+ "Imported {name}": "Импортировано: {name}",
+ "Skipped {problem}": "Пропущено: {problem}",
+ "…and {more} more": "…и ещё {more}",
+ "Template preview: {name}": "Просмотр шаблона: {name}"
}
diff --cc crates/ui-egui/locales/uk-formats.json
index 65abda2b4,7aca485e0..c5c1446e0
--- a/crates/ui-egui/locales/uk-formats.json
+++ b/crates/ui-egui/locales/uk-formats.json
@@@ -234,13 -241,8 +241,17 @@@
"{n} Local photo{} skipped: albums hold library photos (Add to My Photos first)": "Пропущено локальних фото: {n}{0:.0} — в альбомах лише фото з бібліотеки (спершу додайте їх до моїх фото)",
"New Folder in “{name}”": "Нова тека в «{name}»",
"Moved {} photo(s)": "Переміщено фото: {}",
+ "not added to Apple Photos: {e}": "не додано до Apple Фото: {e}",
+ "{n} added to Apple Photos album “{album}”": "Додано до альбому Apple Фото «{album}»: {n}",
+ "{n} added to Apple Photos": "Додано до Apple Фото: {n}",
- "{n} photos opened for editing; each is stacked with its original": "Відкрито для редагування фото: {n}; кожне об’єднано в стос з оригіналом"
++ "{n} photos opened for editing; each is stacked with its original": "Відкрито для редагування фото: {n}; кожне об’єднано в стос з оригіналом",
+ "Applied {name}": "Застосовано: {name}",
+ "Delete “{name}”?": "Видалити «{name}»?",
+ "Updated {name}": "Оновлено: {name}",
+ "Exported to {path}": "Експортовано до {path}",
+ "Saved template {name}": "Шаблон {name} збережено",
+ "Imported {name}": "Імпортовано: {name}",
+ "Skipped {problem}": "Пропущено: {problem}",
+ "…and {more} more": "…і ще {more}",
+ "Template preview: {name}": "Перегляд шаблону: {name}"
}
diff --cc crates/ui-egui/locales/zh-hans-formats.json
index e58415aca,bf27ca6b2..f69f17377
--- a/crates/ui-egui/locales/zh-hans-formats.json
+++ b/crates/ui-egui/locales/zh-hans-formats.json
@@@ -234,13 -241,8 +241,17 @@@
"{n} Local photo{} skipped: albums hold library photos (Add to My Photos first)": "已跳过 {n} 张本地照片{0:.0}:相册只能收录图库中的照片(请先添加到我的照片)",
"New Folder in “{name}”": "在“{name}”中新建文件夹",
"Moved {} photo(s)": "已移动 {} 张照片",
+ "not added to Apple Photos: {e}": "未添加到 Apple 照片:{e}",
+ "{n} added to Apple Photos album “{album}”": "已将 {n} 个添加到 Apple 照片相册“{album}”",
+ "{n} added to Apple Photos": "已将 {n} 个添加到 Apple 照片",
- "{n} photos opened for editing; each is stacked with its original": "已打开 {n} 张照片进行编辑;每张都与其原片堆叠在一起"
++ "{n} photos opened for editing; each is stacked with its original": "已打开 {n} 张照片进行编辑;每张都与其原片堆叠在一起",
+ "Applied {name}": "已应用 {name}",
+ "Delete “{name}”?": "删除“{name}”?",
+ "Updated {name}": "已更新 {name}",
+ "Exported to {path}": "已导出到 {path}",
+ "Saved template {name}": "已保存模板 {name}",
+ "Imported {name}": "已导入 {name}",
+ "Skipped {problem}": "已跳过:{problem}",
+ "…and {more} more": "…还有 {more} 个",
+ "Template preview: {name}": "模板预览:{name}"
}
diff --cc crates/ui-egui/locales/zh-hant-formats.json
index 5b021a9e5,37b2db2ba..388c7a2b3
--- a/crates/ui-egui/locales/zh-hant-formats.json
+++ b/crates/ui-egui/locales/zh-hant-formats.json
@@@ -234,13 -241,8 +241,17 @@@
"{n} Local photo{} skipped: albums hold library photos (Add to My Photos first)": "已略過 {n} 張本機照片{0:.0}:相簿只能收錄圖庫中的照片(請先加入我的照片)",
"New Folder in “{name}”": "在「{name}」中新增資料夾",
"Moved {} photo(s)": "已移動 {} 張照片",
+ "not added to Apple Photos: {e}": "未加入 Apple 照片:{e}",
+ "{n} added to Apple Photos album “{album}”": "已將 {n} 個加入 Apple 照片相簿「{album}」",
+ "{n} added to Apple Photos": "已將 {n} 個加入 Apple 照片",
- "{n} photos opened for editing; each is stacked with its original": "已開啟 {n} 張相片進行編輯;每張都與其原始相片堆疊在一起"
++ "{n} photos opened for editing; each is stacked with its original": "已開啟 {n} 張相片進行編輯;每張都與其原始相片堆疊在一起",
+ "Applied {name}": "已套用 {name}",
+ "Delete “{name}”?": "刪除「{name}」?",
+ "Updated {name}": "已更新 {name}",
+ "Exported to {path}": "已匯出到 {path}",
+ "Saved template {name}": "已儲存範本 {name}",
+ "Imported {name}": "已匯入 {name}",
+ "Skipped {problem}": "已略過:{problem}",
+ "…and {more} more": "…還有 {more} 個",
+ "Template preview: {name}": "範本預覽:{name}"
}
diff --cc docs/parity-checklist.md
index bca6695ce,e72439391..5f87c658b
--- a/docs/parity-checklist.md
+++ b/docs/parity-checklist.md
@@@ -52,10 -52,10 +52,10 @@@ cited here still exists. Formerly docs/
| X. Cross-cutting behaviours (BEHAV) | 23 | 6 | 1 | 1 | 8/8 (100%) | 7/10 (70%) |
| Y. Menus | 84 | 0 | 4 | 8 | 47/47 (100%) | 23/23 (100%) |
| Z. Keyboard shortcuts (desktop) | 76 | 3 | 3 | 1 | 49/52 (94%) | 23/24 (96%) |
-| Lightroom Classic extras | 36 | 18 | 31 | 8 | — | 24/26 (92%) |
-| **Total** | 410 | 53 | 68 | 35 | 193/201 (96%) | 145/157 (92%) |
+| Lightroom Classic extras | 36 | 21 | 28 | 8 | — | 24/26 (92%) |
- | **Total** | 409 | 55 | 66 | 35 | 192/200 (96%) | 145/157 (92%) |
++| **Total** | 410 | 56 | 65 | 35 | 193/201 (96%) | 145/157 (92%) |
- Weighted completion (✅ = 1, 🟡 = ½, 🚫 left out): **82.4%** of 530 in-scope rows — P0 98.0% of 200 · P1 95.2% of 157 · P2 52.3% of 172.
-Weighted completion (✅ = 1, 🟡 = ½, 🚫 left out): **82.2%** of 531 in-scope rows — P0 98.0% of 201 · P1 95.2% of 157 · P2 51.7% of 172.
++Weighted completion (✅ = 1, 🟡 = ½, 🚫 left out): **82.5%** of 531 in-scope rows — P0 98.0% of 201 · P1 95.2% of 157 · P2 52.6% of 172.
<!-- /parity:summary -->
## Top gaps and shortcut notes
diff --cc docs/whats-new.md
index 2d4bff106,dd2feff2c..197184d9d
--- a/docs/whats-new.md
+++ b/docs/whats-new.md
@@@ -32,25 -41,11 +41,30 @@@
the other editor (Edit in Other Editor, now ⌥⌘E), and where PhotoCraft is if you use a portable copy.
- Export can write PSD too (flat, 8- or 16-bit).
+ ### Reliability
+ - Upgrading from a Windows installer older than 0.6 (such as 0.5.0) keeps LightCraft in the folder it was installed
+ in, instead of moving it back to Program Files (issue #399). If that folder has been deleted since, the upgrade
+ installs to Program Files.
+
+### Slideshow templates
+- Settings ▸ Slideshow now opens with a template browser, like Lightroom Classic's Template Browser. A template holds
+ everything about how a slideshow looks and plays: the playback timing and fades, the layout, options and backdrop,
+ the overlays and the intro and ending screens. Click one to apply it; point at one to see it on the selected photo in
+ the preview beside it without changing anything.
+- Five built-in templates of our own: Plain Black (the photo on black), Gallery Wall (a light wall, a white mat and a
+ soft shadow, with the caption and rating under the photo), Edge to Edge (photos cropped to fill the screen), Cinema
+ Wide (16:9 with black bars, the title in the corner, fades through black and a closing card) and Shooting Data (the
+ exposure, ISO, focal length, camera and lens under each photo on a dark backdrop).
+- Save the current settings as a template of your own; right-click it to update it with the current settings, rename,
+ export or delete it, and import templates others share with you. Your templates are `.json` files in the settings
+ folder's `slideshow-templates` folder, shared by all your libraries.
+- Applying a template can't be undone with Edit ▸ Undo (slideshow settings are library preferences), so the settings it
+ replaced are listed as "Previous settings" until you quit: click that to go back.
+- A template file that can't be used (damaged, from a newer LightCraft, too large) is listed as skipped instead of
+ stopping the others, and a template whose identity plate image or background photo isn't there still applies, with a
+ note saying what is missing. Agents use `slideshow.templates.*`, and `slideshow.preview {template}` renders a template
+ without applying it.
+
### Slideshow intro and ending screens
- A slideshow can now open with an intro screen and close with an ending screen, like Lightroom Classic's Titles
panel. Each is switched on on its own and has a background colour and, centred on it, your identity plate (the one