LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust
Merge PR #789
Claude6b22c5ca2556
diff --cc crates/ui-egui/locales/de.jsonindex ac376c70c,4b8fe3875..4db9e9d15--- a/crates/ui-egui/locales/de.json+++ b/crates/ui-egui/locales/de.json@@@ -2045,26 -2032,12 +2045,34 @@@"Finding faces": "Gesichter werden gesucht","Synchronizing folder": "Ordner wird synchronisiert","Looking for changes": "Änderungen werden gesucht",+ "This is a Lightroom catalog, not a LightCraft library. Import it into a LightCraft library instead?": "Dies ist ein Lightroom-Katalog, keine LightCraft-Bibliothek. Stattdessen in eine LightCraft-Bibliothek importieren?",+ "The import reads the catalog without changing it and adds its photos, edits, keywords and collections to the library open now.": "Der Import liest den Katalog, ohne ihn zu ändern, und fügt seine Fotos, Bearbeitungen, Stichwörter und Sammlungen der jetzt geöffneten Bibliothek hinzu.",+ "Albums hold library photos: Add to My Photos first": "Alben enthalten Bibliotheksfotos: zuerst zu „Meine Fotos“ hinzufügen",+ "Add to My Photos First": "Zuerst zu „Meine Fotos“ hinzufügen",+ "Fill Location from GPS": "Ort aus GPS ausfüllen",+ "Download Place Names (GeoNames)": "Ortsnamen herunterladen (GeoNames)",+ "Place Names Status": "Status der Ortsnamen",+ "Fill Location": "Ort ausfüllen",+ "Fill empty City, State and Country from GPS (offline GeoNames place names)": "Leere Felder Stadt, Bundesland und Land aus GPS ausfüllen (GeoNames-Ortsnamen, offline)",+ "Looking up places": "Orte werden nachgeschlagen",+ "Downloading place names": "Ortsnamen werden heruntergeladen",+ "Place names downloaded": "Ortsnamen heruntergeladen",+ "Place names download cancelled": "Download der Ortsnamen abgebrochen",+ "Other…": "Andere…",+ "Intent:": "Priorität:",+ "Perceptual": "Perzeptiv",+ "Relative": "Relativ",+ "Simulate Paper & Ink": "Papier und Druckfarbe simulieren",+ "Content-Aware": "Inhaltsbasiert",+ "imported earlier switch over with Photo ▸ Reload from Disk.": "Bereits importierte Fotos wechseln mit Foto → Vom Datenträger neu laden zur RAW-Bearbeitung.",+ "Canon EOS R5 Mark II C-RAW files that opened as \"preview only\" (more than half of them, depending on the": "C-RAW-Dateien der Canon EOS R5 Mark II, die als „Nur Vorschau“ geöffnet wurden (je nach Motiv mehr als die Hälfte),",- "scene) now develop from their sensor data with every editing tool, like the camera's other raws. Photos": "werden jetzt wie die übrigen RAW-Dateien der Kamera aus ihren Sensordaten mit allen Werkzeugen bearbeitet."++ "scene) now develop from their sensor data with every editing tool, like the camera's other raws. Photos": "werden jetzt wie die übrigen RAW-Dateien der Kamera aus ihren Sensordaten mit allen Werkzeugen bearbeitet.",+ "Sidebar Sections": "Seitenleistenbereiche",+ "Reset Sidebar Sections": "Seitenleistenbereiche zurücksetzen",+ "Hide This Section": "Diesen Bereich ausblenden",+ "No folders to browse": "Keine Ordner zum Durchsuchen",+ "No photos yet": "Noch keine Fotos",+ "No imported folders yet": "Noch keine importierten Ordner",+ "Show Sidebar Section": "Seitenleistenbereich anzeigen",+ "Move Sidebar Section": "Seitenleistenbereich verschieben"}diff --cc crates/ui-egui/locales/es.jsonindex bd42ce60c,5e434c565..5611732e0--- a/crates/ui-egui/locales/es.json+++ b/crates/ui-egui/locales/es.json@@@ -1890,23 -1877,12 +1890,31 @@@"Finding faces": "Buscando caras","Synchronizing folder": "Sincronizando carpeta","Looking for changes": "Buscando cambios",+ "This is a Lightroom catalog, not a LightCraft library. Import it into a LightCraft library instead?": "Esto es un catálogo de Lightroom, no una biblioteca de LightCraft. ¿Importarlo a una biblioteca de LightCraft?",+ "The import reads the catalog without changing it and adds its photos, edits, keywords and collections to the library open now.": "La importación lee el catálogo sin modificarlo y añade sus fotos, ediciones, palabras clave y colecciones a la biblioteca abierta ahora.",+ "Albums hold library photos: Add to My Photos first": "Los álbumes contienen fotos de la biblioteca: añádelas primero a Mis fotos",+ "Add to My Photos First": "Añadir primero a Mis fotos",+ "Fill Location from GPS": "Rellenar ubicación desde GPS",+ "Download Place Names (GeoNames)": "Descargar nombres de lugares (GeoNames)",+ "Place Names Status": "Estado de los nombres de lugares",+ "Fill Location": "Rellenar ubicación",+ "Fill empty City, State and Country from GPS (offline GeoNames place names)": "Rellenar Ciudad, Estado y País vacíos desde el GPS (nombres de lugares de GeoNames, sin conexión)",+ "Looking up places": "Buscando lugares",+ "Downloading place names": "Descargando nombres de lugares",+ "Place names downloaded": "Nombres de lugares descargados",+ "Place names download cancelled": "Descarga de nombres de lugares cancelada",+ "Other…": "Otro…",+ "Intent:": "Propósito:",+ "Perceptual": "Perceptual",+ "Relative": "Relativo",+ "Simulate Paper & Ink": "Simular papel y tinta",- "Content-Aware": "Según el contenido"++ "Content-Aware": "Según el contenido",+ "Sidebar Sections": "Secciones de la barra lateral",+ "Reset Sidebar Sections": "Restablecer secciones de la barra lateral",+ "Hide This Section": "Ocultar esta sección",+ "No folders to browse": "No hay carpetas para explorar",+ "No photos yet": "Aún no hay fotos",+ "No imported folders yet": "Aún no hay carpetas importadas",+ "Show Sidebar Section": "Mostrar sección de la barra lateral",+ "Move Sidebar Section": "Mover sección de la barra lateral"}diff --cc crates/ui-egui/locales/fr.jsonindex 44ed46016,7f61cb495..3cacc7b54--- a/crates/ui-egui/locales/fr.json+++ b/crates/ui-egui/locales/fr.json@@@ -1882,31 -1877,12 +1882,39 @@@"Finding faces": "Recherche des visages","Synchronizing folder": "Synchronisation du dossier","Looking for changes": "Recherche des modifications",+ "Arrange Panel": "Arrange Panel",+ "Close panel": "Close panel",+ "Float panel": "Float panel",+ "Move to group": "Move to group",+ "Panels": "Panels",+ "Reset Panel Layout": "Reset Panel Layout",+ "Resize panel window": "Resize panel window",+ "Resize panels": "Resize panels",+ "This is a Lightroom catalog, not a LightCraft library. Import it into a LightCraft library instead?": "Ceci est un catalogue Lightroom, pas une bibliothèque LightCraft. L’importer plutôt dans une bibliothèque LightCraft ?",+ "The import reads the catalog without changing it and adds its photos, edits, keywords and collections to the library open now.": "L’importation lit le catalogue sans le modifier et ajoute ses photos, retouches, mots-clés et collections à la bibliothèque ouverte.",+ "Albums hold library photos: Add to My Photos first": "Les albums contiennent des photos de la bibliothèque : ajoutez-les d’abord à Mes photos",+ "Add to My Photos First": "Ajouter d’abord à Mes photos",+ "Fill Location from GPS": "Remplir le lieu depuis le GPS",+ "Download Place Names (GeoNames)": "Télécharger les noms de lieux (GeoNames)",+ "Place Names Status": "État des noms de lieux",+ "Fill Location": "Remplir le lieu",+ "Fill empty City, State and Country from GPS (offline GeoNames place names)": "Remplir Ville, État et Pays vides depuis le GPS (noms de lieux GeoNames, hors ligne)",+ "Looking up places": "Recherche des lieux",+ "Downloading place names": "Téléchargement des noms de lieux",+ "Place names downloaded": "Noms de lieux téléchargés",+ "Place names download cancelled": "Téléchargement des noms de lieux annulé",+ "Other…": "Autre…",+ "Intent:": "Mode de rendu :",+ "Perceptual": "Perceptif",+ "Relative": "Relatif",+ "Simulate Paper & Ink": "Simuler le papier et l'encre",- "Content-Aware": "Contenu pris en compte"++ "Content-Aware": "Contenu pris en compte",+ "Sidebar Sections": "Sections de la barre latérale",+ "Reset Sidebar Sections": "Réinitialiser les sections de la barre latérale",+ "Hide This Section": "Masquer cette section",+ "No folders to browse": "Aucun dossier à parcourir",+ "No photos yet": "Aucune photo pour l’instant",+ "No imported folders yet": "Aucun dossier importé pour l’instant",+ "Show Sidebar Section": "Afficher la section de la barre latérale",+ "Move Sidebar Section": "Déplacer la section de la barre latérale"}diff --cc crates/ui-egui/locales/ja.jsonindex fad89f09e,11f33756f..3dbd39e94--- a/crates/ui-egui/locales/ja.json+++ b/crates/ui-egui/locales/ja.json@@@ -1892,23 -1879,12 +1892,31 @@@"Finding faces": "顔を検索中","Synchronizing folder": "フォルダを同期中","Looking for changes": "変更を確認中",+ "This is a Lightroom catalog, not a LightCraft library. Import it into a LightCraft library instead?": "これは Lightroom カタログで、LightCraft ライブラリではありません。代わりに LightCraft ライブラリに読み込みますか?",+ "The import reads the catalog without changing it and adds its photos, edits, keywords and collections to the library open now.": "読み込みはカタログを変更せずに読み取り、写真・編集・キーワード・コレクションを現在開いているライブラリに追加します。",+ "Albums hold library photos: Add to My Photos first": "アルバムに入れられるのはライブラリの写真です:先にマイフォトに追加してください",+ "Add to My Photos First": "先にマイフォトに追加",+ "Fill Location from GPS": "GPS から場所を入力",+ "Download Place Names (GeoNames)": "地名データをダウンロード (GeoNames)",+ "Place Names Status": "地名データの状態",+ "Fill Location": "場所を入力",+ "Fill empty City, State and Country from GPS (offline GeoNames place names)": "空の市区町村・都道府県・国を GPS から入力 (GeoNames の地名、オフライン)",+ "Looking up places": "場所を検索中",+ "Downloading place names": "地名データをダウンロード中",+ "Place names downloaded": "地名データをダウンロードしました",+ "Place names download cancelled": "地名データのダウンロードを中止しました",+ "Other…": "その他…",+ "Intent:": "マッチング方法:",+ "Perceptual": "知覚的",+ "Relative": "相対的",+ "Simulate Paper & Ink": "紙とインキをシミュレート",- "Content-Aware": "コンテンツに応じる"++ "Content-Aware": "コンテンツに応じる",+ "Sidebar Sections": "サイドバーのセクション",+ "Reset Sidebar Sections": "サイドバーのセクションをリセット",+ "Hide This Section": "このセクションを隠す",+ "No folders to browse": "参照できるフォルダがありません",+ "No photos yet": "写真はまだありません",+ "No imported folders yet": "読み込んだフォルダはまだありません",+ "Show Sidebar Section": "サイドバーのセクションを表示",+ "Move Sidebar Section": "サイドバーのセクションを移動"}diff --cc crates/ui-egui/locales/pt-br.jsonindex cee2d48fc,c7a380816..58c4f48a7--- a/crates/ui-egui/locales/pt-br.json+++ b/crates/ui-egui/locales/pt-br.json@@@ -1890,23 -1877,12 +1890,31 @@@"Finding faces": "Procurando rostos","Synchronizing folder": "Sincronizando pasta","Looking for changes": "Procurando alterações",+ "This is a Lightroom catalog, not a LightCraft library. Import it into a LightCraft library instead?": "Este é um catálogo do Lightroom, não uma biblioteca do LightCraft. Importá-lo para uma biblioteca do LightCraft?",+ "The import reads the catalog without changing it and adds its photos, edits, keywords and collections to the library open now.": "A importação lê o catálogo sem alterá-lo e adiciona as fotos, edições, palavras-chave e coleções dele à biblioteca aberta agora.",+ "Albums hold library photos: Add to My Photos first": "Álbuns contêm fotos da biblioteca: adicione-as às Minhas fotos primeiro",+ "Add to My Photos First": "Adicionar às Minhas fotos primeiro",+ "Fill Location from GPS": "Preencher local pelo GPS",+ "Download Place Names (GeoNames)": "Baixar nomes de lugares (GeoNames)",+ "Place Names Status": "Status dos nomes de lugares",+ "Fill Location": "Preencher local",+ "Fill empty City, State and Country from GPS (offline GeoNames place names)": "Preencher Cidade, Estado e País vazios pelo GPS (nomes de lugares GeoNames, offline)",+ "Looking up places": "Procurando lugares",+ "Downloading place names": "Baixando nomes de lugares",+ "Place names downloaded": "Nomes de lugares baixados",+ "Place names download cancelled": "Download dos nomes de lugares cancelado",+ "Other…": "Outro…",+ "Intent:": "Tipo de conversão:",+ "Perceptual": "Perceptual",+ "Relative": "Relativo",+ "Simulate Paper & Ink": "Simular papel e tinta",- "Content-Aware": "Sensível ao conteúdo"++ "Content-Aware": "Sensível ao conteúdo",+ "Sidebar Sections": "Seções da barra lateral",+ "Reset Sidebar Sections": "Redefinir seções da barra lateral",+ "Hide This Section": "Ocultar esta seção",+ "No folders to browse": "Nenhuma pasta para navegar",+ "No photos yet": "Ainda não há fotos",+ "No imported folders yet": "Ainda não há pastas importadas",+ "Show Sidebar Section": "Mostrar seção da barra lateral",+ "Move Sidebar Section": "Mover seção da barra lateral"}diff --cc crates/ui-egui/locales/ru.jsonindex 95e0e7b56,d1f5525ad..477a25d16--- a/crates/ui-egui/locales/ru.json+++ b/crates/ui-egui/locales/ru.json@@@ -1604,23 -1591,14 +1604,33 @@@"Quit Anyway": "Всё равно выйти","Synchronizing folder": "Синхронизация папки","Looking for changes": "Поиск изменений",+ "This is a Lightroom catalog, not a LightCraft library. Import it into a LightCraft library instead?": "Это каталог Lightroom, а не библиотека LightCraft. Импортировать его в библиотеку LightCraft?",+ "The import reads the catalog without changing it and adds its photos, edits, keywords and collections to the library open now.": "Импорт читает каталог, не изменяя его, и добавляет его фото, правки, ключевые слова и коллекции в открытую сейчас библиотеку.",+ "Albums hold library photos: Add to My Photos first": "В альбомах только фото из библиотеки: сначала добавьте их в «Мои фото»",+ "Add to My Photos First": "Сначала добавить в «Мои фото»",+ "Fill Location from GPS": "Заполнить место по GPS",+ "Download Place Names (GeoNames)": "Загрузить названия мест (GeoNames)",+ "Place Names Status": "Состояние названий мест",+ "Fill Location": "Заполнить место",+ "Fill empty City, State and Country from GPS (offline GeoNames place names)": "Заполнить пустые поля «Город», «Регион» и «Страна» по GPS (названия мест GeoNames, офлайн)",+ "Looking up places": "Поиск мест",+ "Downloading place names": "Загрузка названий мест",+ "Place names downloaded": "Названия мест загружены",+ "Place names download cancelled": "Загрузка названий мест отменена",+ "Other…": "Другой…",+ "Intent:": "Метод:",+ "Perceptual": "Перцепционный",+ "Relative": "Относительный",+ "Simulate Paper & Ink": "Имитировать бумагу и краску",- "Content-Aware": "С учётом содержимого"++ "Content-Aware": "С учётом содержимого",+ "Sidebar Sections": "Разделы боковой панели",+ "Reset Sidebar Sections": "Сбросить разделы боковой панели",+ "Hide This Section": "Скрыть этот раздел",+ "No folders to browse": "Нет папок для просмотра",+ "No photos yet": "Фотографий пока нет",+ "No imported folders yet": "Импортированных папок пока нет",+ "Show Sidebar Section": "Показать раздел боковой панели",+ "Move Sidebar Section": "Переместить раздел боковой панели",+ "Move Up": "Переместить вверх",+ "Move Down": "Переместить вниз"}diff --cc crates/ui-egui/locales/uk.jsonindex f0c92c417,17a682c18..d19e26b2d--- a/crates/ui-egui/locales/uk.json+++ b/crates/ui-egui/locales/uk.json@@@ -2076,31 -2071,12 +2076,39 @@@"Finding faces": "Пошук облич","Synchronizing folder": "Синхронізація папки","Looking for changes": "Пошук змін",+ "Arrange Panel": "Arrange Panel",+ "Close panel": "Close panel",+ "Float panel": "Float panel",+ "Move to group": "Move to group",+ "Panels": "Panels",+ "Reset Panel Layout": "Reset Panel Layout",+ "Resize panel window": "Resize panel window",+ "Resize panels": "Resize panels",+ "This is a Lightroom catalog, not a LightCraft library. Import it into a LightCraft library instead?": "Це каталог Lightroom, а не бібліотека LightCraft. Імпортувати його до бібліотеки LightCraft?",+ "The import reads the catalog without changing it and adds its photos, edits, keywords and collections to the library open now.": "Імпорт читає каталог, не змінюючи його, і додає його фото, редагування, ключові слова та колекції до відкритої зараз бібліотеки.",+ "Albums hold library photos: Add to My Photos first": "В альбомах лише фото з бібліотеки: спершу додайте їх до моїх фото",+ "Add to My Photos First": "Спершу додати до моїх фото",+ "Fill Location from GPS": "Заповнити місце за GPS",+ "Download Place Names (GeoNames)": "Завантажити назви місць (GeoNames)",+ "Place Names Status": "Стан назв місць",+ "Fill Location": "Заповнити місце",+ "Fill empty City, State and Country from GPS (offline GeoNames place names)": "Заповнити порожні поля «Місто», «Регіон» і «Країна» за GPS (назви місць GeoNames, офлайн)",+ "Looking up places": "Пошук місць",+ "Downloading place names": "Завантаження назв місць",+ "Place names downloaded": "Назви місць завантажено",+ "Place names download cancelled": "Завантаження назв місць скасовано",+ "Other…": "Інший…",+ "Intent:": "Метод:",+ "Perceptual": "Перцепційний",+ "Relative": "Відносний",+ "Simulate Paper & Ink": "Імітувати папір і фарбу",- "Content-Aware": "З урахуванням вмісту"++ "Content-Aware": "З урахуванням вмісту",+ "Sidebar Sections": "Розділи бічної панелі",+ "Reset Sidebar Sections": "Скинути розділи бічної панелі",+ "Hide This Section": "Сховати цей розділ",+ "No folders to browse": "Немає тек для перегляду",+ "No photos yet": "Фотографій ще немає",+ "No imported folders yet": "Імпортованих тек ще немає",+ "Show Sidebar Section": "Показати розділ бічної панелі",+ "Move Sidebar Section": "Перемістити розділ бічної панелі"}diff --cc crates/ui-egui/locales/zh-hans.jsonindex 22916c850,0cba0bbc9..16e4d6abd--- a/crates/ui-egui/locales/zh-hans.json+++ b/crates/ui-egui/locales/zh-hans.json@@@ -1890,23 -1877,12 +1890,31 @@@"Finding faces": "正在查找人脸","Synchronizing folder": "正在同步文件夹","Looking for changes": "正在查找更改",+ "This is a Lightroom catalog, not a LightCraft library. Import it into a LightCraft library instead?": "这是 Lightroom 目录,不是 LightCraft 图库。要改为将其导入 LightCraft 图库吗?",+ "The import reads the catalog without changing it and adds its photos, edits, keywords and collections to the library open now.": "导入只读取目录、不做任何更改,并将其中的照片、编辑、关键字和收藏夹添加到当前打开的图库。",+ "Albums hold library photos: Add to My Photos first": "相册只能收录图库中的照片:请先添加到我的照片",+ "Add to My Photos First": "先添加到我的照片",+ "Fill Location from GPS": "根据 GPS 填写位置",+ "Download Place Names (GeoNames)": "下载地名数据 (GeoNames)",+ "Place Names Status": "地名数据状态",+ "Fill Location": "填写位置",+ "Fill empty City, State and Country from GPS (offline GeoNames place names)": "根据 GPS 填写空白的城市、省/州和国家(GeoNames 地名,离线)",+ "Looking up places": "正在查找地点",+ "Downloading place names": "正在下载地名数据",+ "Place names downloaded": "地名数据已下载",+ "Place names download cancelled": "已取消下载地名数据",+ "Other…": "其他…",+ "Intent:": "方法:",+ "Perceptual": "可感知",+ "Relative": "相对",+ "Simulate Paper & Ink": "模拟纸张和油墨",- "Content-Aware": "内容识别"++ "Content-Aware": "内容识别",+ "Sidebar Sections": "边栏分区",+ "Reset Sidebar Sections": "重置边栏分区",+ "Hide This Section": "隐藏此分区",+ "No folders to browse": "没有可浏览的文件夹",+ "No photos yet": "还没有照片",+ "No imported folders yet": "还没有导入的文件夹",+ "Show Sidebar Section": "显示边栏分区",+ "Move Sidebar Section": "移动边栏分区"}diff --cc crates/ui-egui/locales/zh-hant.jsonindex 21f9927a6,d99f0bbd3..501942ac9--- a/crates/ui-egui/locales/zh-hant.json+++ b/crates/ui-egui/locales/zh-hant.json@@@ -1890,23 -1877,12 +1890,31 @@@"Finding faces": "正在尋找臉孔","Synchronizing folder": "正在同步資料夾","Looking for changes": "正在尋找變更",+ "This is a Lightroom catalog, not a LightCraft library. Import it into a LightCraft library instead?": "這是 Lightroom 目錄,不是 LightCraft 照片庫。要改為將其匯入 LightCraft 照片庫嗎?",+ "The import reads the catalog without changing it and adds its photos, edits, keywords and collections to the library open now.": "匯入只讀取目錄、不做任何變更,並將其中的照片、編輯、關鍵字和收藏夾加入目前開啟的照片庫。",+ "Albums hold library photos: Add to My Photos first": "相簿只能收錄圖庫中的照片:請先加入我的照片",+ "Add to My Photos First": "先加入我的照片",+ "Fill Location from GPS": "根據 GPS 填寫位置",+ "Download Place Names (GeoNames)": "下載地名資料 (GeoNames)",+ "Place Names Status": "地名資料狀態",+ "Fill Location": "填寫位置",+ "Fill empty City, State and Country from GPS (offline GeoNames place names)": "根據 GPS 填寫空白的城市、州/省和國家(GeoNames 地名,離線)",+ "Looking up places": "正在查找地點",+ "Downloading place names": "正在下載地名資料",+ "Place names downloaded": "地名資料已下載",+ "Place names download cancelled": "已取消下載地名資料",+ "Other…": "其他…",+ "Intent:": "方式:",+ "Perceptual": "感知",+ "Relative": "相對",+ "Simulate Paper & Ink": "模擬紙張和油墨",- "Content-Aware": "內容感知"++ "Content-Aware": "內容感知",+ "Sidebar Sections": "側邊欄區段",+ "Reset Sidebar Sections": "重設側邊欄區段",+ "Hide This Section": "隱藏此區段",+ "No folders to browse": "沒有可瀏覽的資料夾",+ "No photos yet": "還沒有照片",+ "No imported folders yet": "還沒有匯入的資料夾",+ "Show Sidebar Section": "顯示側邊欄區段",+ "Move Sidebar Section": "移動側邊欄區段"}diff --cc crates/ui-egui/src/control.rsindex a48e74cd1,3ed20fb6b..360893be8--- a/crates/ui-egui/src/control.rs+++ b/crates/ui-egui/src/control.rs@@@ -320,9 -325,23 +325,26 @@@ pub fn handle(app: &mut LightcraftApp,lightcraft_develop::presets::deep_merge(&mut v, p);match serde_json::from_value::<crate::UiState>(v) {Ok(mut u) => {+ if let Err(error) = crate::docking::set_widths(&mut u, p) {+ return err(error);+ }+ if let Some(sidebar) = sidebar {+ u.sidebar = sidebar;+ }+ // `collapsedSidebar`, as scripts from before `sidebar` set it: the folded sections+ if let Some(ids) = p.get("collapsedSidebar").and_then(Value::as_array) {+ use crate::sidebar::SidebarSection;+ if p.get("sidebar").is_some() {+ return err("ui.set: give `sidebar` or the older `collapsedSidebar`, not both".to_string());+ }+ if let Some(unknown) = ids.iter().find(|id| id.as_str().and_then(SidebarSection::from_id).is_none()) {+ return err(format!("ui.set: `collapsedSidebar`: unknown section {unknown} ({})", SidebarSection::ids()));+ }+ for section in SidebarSection::ALL {+ u.sidebar.set_collapsed(section, ids.iter().any(|id| id.as_str() == Some(section.id())));+ }+ }+ u.collapsed_sidebar.clear();u.toast = app.ui.toast.clone();u.dialog = app.ui.dialog.clone();u.status = app.ui.status.clone();diff --cc crates/ui-egui/src/menus.rsindex 45f8c90f8,9d7231e0e..d1d6c3a16--- a/crates/ui-egui/src/menus.rs+++ b/crates/ui-egui/src/menus.rs@@@ -268,11 -267,30 +271,33 @@@ pub fn parse_rgb(v: &Value) -> Option<[Some([c(0)?, c(1)?, c(2)?])}+ /// The left-sidebar section a `view.sidebar*` command names (`section`), which this build must have.+ fn sidebar_section_param(command: &str, p: &Value) -> Result<crate::sidebar::SidebarSection, String> {+ use crate::sidebar::SidebarSection;+ let Some(name) = p.get("section").and_then(Value::as_str) else {+ return Err(format!("{command}: `section` is needed ({})", SidebarSection::ids()));+ };+ let section = SidebarSection::from_id(name).ok_or_else(|| format!("{command}: unknown section `{name}` ({})", SidebarSection::ids()))?;+ if !section.available() {+ return Err(format!("{command}: there is no `{name}` section here"));+ }+ Ok(section)+ }++ /// An optional true / false parameter: absent or null is `None`, anything else is refused.+ fn bool_param(command: &str, p: &Value, key: &str) -> Result<Option<bool>, String> {+ match p.get(key) {+ None | Some(Value::Null) => Ok(None),+ Some(Value::Bool(b)) => Ok(Some(*b)),+ Some(other) => Err(format!("{command}: `{key}` must be true or false, not {other}")),+ }+ }+/// Handle UI commands; `None` means "not a UI command — send it to the engine".pub fn run_ui_command(app: &mut LightcraftApp, id: &str, p: &Value) -> Option<Result<Value, String>> {+ if matches!(id, "ui.dock" | "ui.dock.reset") {+ return Some(crate::docking::command(app, id == "ui.dock.reset", p));+ }if matches!(id, "library.inspectLightroom" | "library.importLightroom") {// the app's own context: a fresh one's repaints reach no window and its clock starts at zerolet ctx = app.tasks.repaint.clone().unwrap_or_default();diff --cc crates/ui-egui/src/panels/left.rsindex 876018652,82b7a978d..8be2aca9c--- a/crates/ui-egui/src/panels/left.rs+++ b/crates/ui-egui/src/panels/left.rs@@@ -180,9 -561,13 +561,12 @@@ fn new_album_menu(app: &mut LightcraftApub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui) {let t = Tokens::get(ui.ctx());let frame = egui::Frame::NONE.fill(t.chrome).stroke(egui::Stroke::new(1.0, t.divider));- let width = app.ui.left_width;- let resized = super::resizable_side(ui, true, "left_panel", frame, width, crate::state::LEFT_WIDTH, 0.0, |ui| {+ frame.show(ui, |ui| {ui.spacing_mut().item_spacing.y = 0.0;- let (hr, _) = ui.allocate_exact_size(vec2(ui.available_width(), 44.0), Sense::hover());+ // the title offers the sections' menu too: where hidden sections come back from+ let (hr, title) = ui.allocate_exact_size(vec2(ui.available_width(), 44.0), Sense::click());+ register(ui.ctx(), "sidebarTitle", hr);+ title.context_menu(|ui| sections_menu(app, ui, None));ui.painter().text(pos2(hr.left() + 18.0, hr.center().y), Align2::LEFT_CENTER, crate::i18n::tr("My Photos"), t.semibold(15.0), t.text);let counts = app.caches.counts(&app.session.catalog);let (total, picks, deleted) = (counts.total, counts.picks, counts.deleted);@@@ -299,8 -668,43 +667,40 @@@}});});- if let Some(w) = resized {- app.ui.left_width = w;- }}+ /// Albums: the tree of albums and the folders they are sorted into. `reveal`: an album just made,+ /// whose folders open down to it.+ fn albums_rows(app: &mut LightcraftApp, ui: &mut egui::Ui, reveal: Option<u64>) {+ let kids: AlbumKids = app.session.catalog.album_children_by_parent().into_iter().map(|(k, v)| (k, v.into_iter().cloned().collect())).collect();+ let cat = &app.session.catalog;+ let mut open_to = Vec::new();+ let mut cur = reveal.map(AlbumId).and_then(|id| cat.album(id)).and_then(|a| a.parent);+ while let Some(p) = cur.filter(|p| !open_to.contains(p) && open_to.len() < 64) {+ open_to.push(p);+ cur = cat.album(p).and_then(|a| a.parent);+ }+ albums_tree(app, ui, &kids, None, 0.0, &open_to);+ }++ /// By Date: year → month → day; a click filters by that prefix, the triangle opens a level.+ fn date_rows(app: &mut LightcraftApp, ui: &mut egui::Ui) {+ let groups = app.caches.date_groups(&app.session.catalog);+ for g in groups.iter() {+ if date_row(app, ui, &g.year, &crate::i18n::date_group_label(&g.year, true), g.count, 0.0) {+ for (m, n) in &g.months {+ let label = crate::i18n::date_group_label(m, true);+ if date_row(app, ui, m, &label, *n, 16.0) {+ for (d, n) in g.days.iter().filter(|(d, _)| d.starts_with(m.as_str())) {+ let label = crate::i18n::date_group_label(d, true);+ date_row(app, ui, d, &label, *n, 32.0);+ }+ }+ }+ }+ }+ }+/// How many library photos have no file (Local browse records are not checked; see/// `cmd::missing::checked_path`). Checking stats every file, which on a network share takes/// seconds, so it runs on a worker thread: the count shown is the last finished one, refreshed@@@ -771,9 -1178,25 +1174,25 @@@ fn albums_tree(app: &mut LightcraftApp/// Whether the pointer is over `rect` and over what the panel shows of it (a row scrolled out of/// sight is not a drop target).fn pointer_over(ui: &egui::Ui, rect: Rect) -> bool {- ui.input(|i| i.pointer.latest_pos()).is_some_and(|p| rect.contains(p) && ui.clip_rect().contains(p))+ crate::docking::drop_target(ui, rect, ui.input(|i| i.pointer.latest_pos()))}+ /// [`pointer_over`] for a row: a row scrolled beneath the pinned header is covered by it, so the+ /// pointer there is over the header, not over the row.+ fn pointer_over_row(ui: &egui::Ui, rect: Rect) -> bool {+ pointer_over(ui, rect) && !pointer_on_pinned_header(ui)+ }++ /// Where the pinned header was drawn last frame, if one was (rows are laid out before it).+ fn pinned_rect(ui: &egui::Ui) -> Option<Rect> {+ ui.data(|d| d.get_temp::<Option<Rect>>(egui::Id::new("left-pinned-rect"))).flatten()+ }++ fn pointer_on_pinned_header(ui: &egui::Ui) -> bool {+ let pos = ui.input(|i| i.pointer.latest_pos());+ pinned_rect(ui).zip(pos).is_some_and(|(r, p)| r.contains(p))+ }+/// How close to the top or bottom edge of the sidebar (points) a dragged album starts scrolling it.const SCROLL_EDGE: f32 = 36.0;/// The fastest the sidebar scrolls for a drag (points per second).@@@ -1006,20 -1438,8 +1434,21 @@@ pub fn album_drag_feedback(app: &mut Li/// release there adds them.fn drop_target(app: &mut LightcraftApp, ui: &mut egui::Ui, resp: &egui::Response, a: &Album) {let Some(ids) = app.ui.dragging_photos.clone() else { return };- let over = pointer_over(ui, resp.rect);+ // only where the row can be seen: not scrolled out of the sidebar or beneath the pinned header- if !pointer_over_row(ui, resp.rect) {++ let over = pointer_over_row(ui, resp.rect);+ if !over {+ return;+ }+ let released = ui.input(|i| i.pointer.any_released());+ // albums hold library photos (issue #684): Local ones can't be dropped in; the row doesn't+ // light up, and a release says why+ let photos: Vec<lightcraft_catalog::PhotoId> = ids.iter().map(|id| lightcraft_catalog::PhotoId(*id)).collect();+ if super::grid::local_only(app, &photos) {+ ui.ctx().set_cursor_icon(egui::CursorIcon::NotAllowed);+ if released {+ app.toast(ui.ctx(), super::grid::albums_hint());+ app.ui.dragging_photos = None;+ }return;}let t = Tokens::get(ui.ctx());diff --cc docs/parity-checklist.mdindex 0dde9ca6f,7765e3f0d..00f4b4d21--- a/docs/parity-checklist.md+++ b/docs/parity-checklist.md@@@ -463,8 -525,11 +463,12 @@@ differences and missing bindings are i| LR-BEHAV-RENDER-FIDELITY | Rendering matches Lightroom | P1 | 🟡 | `crates/pipeline/src/lib.rs`, `crates/pipeline/src/tone.rs` | every slider exists and works, but the character of the result (tone curve shape, highlight recovery, texture / clarity / dehaze, noise reduction, sharpening, default look) is tuned by eye; there is no systematic side-by-side comparison against Lightroom on the same CC0 raws. Needs a fidelity suite: Lightroom reference renders kept only in the local `plan/` (never committed), compared per slider and preset with a perceptual metric. Tuning that changes how existing settings render ships as a new process version (LRC-DEV-PROCESS, `docs/process-versions.md`) || LR-BEHAV-DRAGDROP | Drag and drop | P1 | ✅ | `crates/ui-egui/src/lib.rs`, `crates/ui-egui/src/panels/grid.rs` (`drag_feedback`), `crates/ui-egui/src/panels/left.rs` (`drop_target`, `album_drag_over`, `top_level_drop_target`, `drag_auto_scroll`) | files → app (import); grid photos → an album row (adds the selection, with a count badge while dragging); sidebar album / folder rows → a folder (moves it; its name follows the pointer); a drag of albums or grid photos near the top or bottom edge of the sidebar scrolls it (faster nearer the edge, only while the pointer is over the sidebar) || LR-BEHAV-TOAST | Toast notifications | P1 | ✅ | `crates/ui-egui/src/panels/mod.rs` | |+| LR-BEHAV-DIALOGS | Dialogs fit the window | P1 | ✅ | `crates/ui-egui/src/panels/dialogs.rs` (`dialog_body`, `list_height`), `crates/ui-egui/src/tests_dialog_fit.rs` | a dialog taller than the window (Export on a 1366×768 screen, issue #781) never runs off it: its options scroll while the title bar and the Cancel / OK row stay on screen; lists that scroll on their own (What's New, All Metadata, shortcuts, smart-album rules, credits) get shorter first; dialogs that fit look as before; Import keeps its own resizable, scrolling window |- | LR-BEHAV-SIDEBAR-COLLAPSE | Collapsible left-sidebar sections | P2 | ✅ | `crates/ui-egui/src/panels/left.rs` (`sidebar_section_header`), `crates/ui-egui/src/state.rs` (`collapsed_sidebar`), `crates/ui-egui/src/tests_panels.rs` | click the Albums, Local, By Date or Keywords header (or drive `ui.clickWidget` `sidebarSection:<albums\|local\|byDate\|keywords>`) to fold or unfold the section; a chevron after the title shows the state; the choice is kept across restarts (`collapsedSidebar` in the UI state). UI-only (no command), like the By Date / Keywords disclosure triangles; photos dropped on a folded Albums section have no target |+ | LR-BEHAV-SIDEBAR-COLLAPSE | Collapsible left-sidebar sections | P2 | ✅ | `crates/ui-egui/src/panels/left.rs` (`section`, `section_header`), `crates/ui-egui/src/sidebar.rs` (`SidebarLayout`), `crates/ui-egui/src/tests_panels.rs` | click the Albums, Local, By Date, Folders or Keywords header (or drive `ui.clickWidget` `sidebarSection:<albums\|local\|byDate\|folders\|keywords>`) to fold or unfold the section; a chevron before the title shows the state; the choice is kept across restarts (`sidebar` in the UI state; the `collapsedSidebar` list of older settings files is still read). the click itself is UI-only, like the By Date / Keywords disclosure triangles, and `cmd:view.sidebarSection` `{section, collapsed}` folds and unfolds for agents; photos dropped on a folded Albums section have no target |+ | LR-BEHAV-SIDEBAR-SECTIONS | Left-sidebar sections share one frame and one arrangement | P2 | ✅ | `crates/ui-egui/src/sidebar.rs` (`SidebarSection`, `SidebarLayout`), `crates/ui-egui/src/panels/left.rs` (`section`, `section_header`, `tree_toggle`), `crates/ui-egui/src/tests_panels.rs` | Albums, Local, By Date, Folders and Keywords are drawn by one `section` frame (the same gap above, header, fold and accessibility name) from one arrangement, `sidebar` in the UI state: a list of `{id, hidden, collapsed}` top to bottom, also settable with `ui.set`. Whatever is read, every section is in it exactly once (unknown and repeated entries are dropped, the rest follow in the usual order), so a damaged or newer settings file never loses the other settings. Rows that open (album folders, Local folders, dates, library folders, keywords) share `tree_toggle`: the same triangle, the same remembered open state, announced as Expand / Collapse. A section with nothing to list (Folders before anything is imported, Keywords before any is added) stays, open, with a one-line note in place of rows (`sidebarEmpty:<id>`) instead of disappearing. `ui.set` reads `sidebar` strictly (`SidebarLayout::parse`): an unknown or repeated section, or a flag that is not true / false, is refused and changes nothing; sections left out follow in the usual order, shown and open; the older `collapsedSidebar` list still folds and unfolds. A section may have one button at the end of its header, declared in one place (`header_button`: an icon, a tooltip, and either an action or a menu): the frame draws it at the visible edge in the header and its pinned copy, keeps its click from folding the section and leaves it room beside a folded section's count. Albums has + (`icon:albumNew`: Create Album / Smart Album / Folder…), Keywords has + (`icon:keywordNew`: Create Keyword Tag, for a keyword inside the default parent, not inside what the Keyword List has picked; once made, Keywords is shown and opened down to it). My Photos (All Photos, Recently Added, Picks, Missing Photos, Recently Deleted) is not a section: it stays on top |+ | LR-BEHAV-SIDEBAR-HIDE | Show and hide left-sidebar sections | P2 | ✅ | `cmd:view.sidebarSection`, `cmd:view.sidebarReset`, `crates/ui-egui/src/sidebar.rs`, `crates/ui-egui/src/panels/left.rs` (`sections_menu`), `crates/ui-egui/src/menubar.rs`, `crates/ui-egui/src/tests_panels.rs` | View ▸ Sidebar Sections lists Albums, Local, By Date, Folders and Keywords in the sidebar's order, each checked while shown; unchecking one takes its header and rows off the sidebar, checking it puts it back where and how it was (still folded if it was). The same list opens with a right-click on any section header (with Hide This Section first; widgets `sidebarMenu:hide`, `sidebarMenu:section:<id>`, `sidebarMenu:reset`) and on the My Photos title (`sidebarTitle`), which is always there, so hidden sections can always come back. Reset Sidebar Sections (enabled once something changed) shows and opens every section in the usual order. `view.sidebarSection` `{section, show?, collapsed?}` flips shown / hidden when neither flag is given and refuses an unknown section or a flag that is not true / false. Hiding the section of what the grid shows (an album, a keyword filter) leaves the grid as it is; an album made while Albums is hidden or folded brings Albums back, open. Kept with the UI state (`sidebar`). My Photos itself can't be hidden |+ | LR-BEHAV-SIDEBAR-REORDER | Reorder left-sidebar sections | P2 | ✅ | `cmd:view.sidebarMoveSection`, `crates/ui-egui/src/sidebar.rs` (`move_before`, `move_by`), `crates/ui-egui/src/panels/left.rs` (`section_drag`, `section_drop_before`, `section_drag_feedback`), `crates/ui-egui/src/tests_panels.rs` | drag a section by its header: its name follows the pointer, a line (`sidebarSectionDrop`) shows the gap it would go to (above the section whose upper half the pointer is over, or below the last), releasing over the sidebar moves it there, Esc or releasing elsewhere leaves it; the sidebar scrolls when the drag nears its top or bottom edge, also over a pinned header (a section picked up by the pinned header scrolls once the pointer has left it). A press on a header's button is never a section drag. A click on the header still folds the section, and an album dragged onto the Albums header is still an album drag. The header's menu has Move Up / Move Down (`sidebarMenu:moveUp` / `moveDown`), one shown section at a time, stepping over hidden ones, disabled at the ends. `view.sidebarMoveSection` `{section, direction: up\|down}` or `{section, before: <section>\|null}` (null: last) answers `{moved, order}`. The order is kept with the UI state (`sidebar`). Recently Deleted is listed with My Photos (below Picks / Missing Photos), not after the sections. Not here: dragging My Photos, or rows from one section into another |+ | LR-BEHAV-SIDEBAR-STICKY | Pinned section header and section look | P2 | ✅ | `crates/ui-egui/src/panels/left.rs` (`pinned_header`, `section_header`, `empty_hint`), `crates/ui-egui/src/tests_panels.rs` | while the rows of an open section are in view but its header has scrolled away, a copy of the header (`sidebarSectionPinned:<id>`, with the section's buttons and menu) stays at the top of the sidebar; the next section's header pushes it out; folding from it brings the section's own header into view. Rows scrolled beneath the pinned header are covered by it: an album or photos dropped on the pinned Albums header go to the top level / nowhere, never to the row under it; folding from it keeps the sideways scroll. Sections are told apart by a hairline in the gap above each; the fold chevron sits in the gutter, in the column of the rows' triangles (`sidebarSectionChevron:<id>`); a header highlights under the pointer; a folded section shows how many top-level rows it holds (`sidebarSectionCount:<id>`, with Show Photo Counts); a count of 0 is fainter. Not here: a height of its own per section (one scroll area serves the whole sidebar), a count for Recently Added, Local's Browse Folder… as a header button || LR-BEHAV-PANEL-RESIZE | Resizable side panels | P1 | ✅ | `crates/ui-egui/src/panels/mod.rs` (`resizable_side`), `crates/ui-egui/src/state.rs` (`LEFT_WIDTH`, `RIGHT_WIDTH`), `crates/ui-egui/src/tests_panels.rs` | drag the left sidebar's right edge (200–480 pt) or the right panel's left edge (250–520 pt); the photo area keeps ≥ 360 pt; widths are kept across panels, views and restarts (`leftWidth` / `rightWidth` in the UI state); the Presets column stays fixed || LR-BEHAV-EMPTY-STATES | Empty states | P1 | ✅ | `crates/ui-egui/src/panels/mod.rs` (`empty_message`) | || LR-BEHAV-TOOLTIPS | Tooltips with shortcuts | P0 | ✅ | `crates/ui-egui/src/panels/bottombar.rs` | |@@@ -541,8 -605,9 +545,9 @@@ visible menu bar yet: the menu model i| MENU-VIEW-SORT | Sort submenu | P0 | ✅ | `cmd:library.sort`, `cmd:library.shuffle` | Random + Reshuffle; no colour-label key || MENU-VIEW-STACKS | Expand/collapse stacks | P1 | ✅ | `cmd:stack.expandAll`, `cmd:stack.collapseAll` | || MENU-VIEW-PHOTOCOUNT | Show photo counts | P2 | ✅ | `cmd:view.photoCounts` | View ▸ Show Photo Counts toggles the left panel's counts |+ | MENU-VIEW-SIDEBARSECTIONS | Sidebar sections | P2 | ✅ | `cmd:view.sidebarSection`, `cmd:view.sidebarReset` | View ▸ Sidebar Sections ▸ a checkable item per left-sidebar section, then Reset Sidebar Sections (see LR-BEHAV-SIDEBAR-HIDE) || MENU-VIEW-HDR | HDR display options | P2 | ⬜ | | |-| MENU-PHOTO-ADDTOALBUM | Add to album | P0 | ✅ | `cmd:album.addPhotos` | |+| MENU-PHOTO-ADDTOALBUM | Add to album | P0 | ✅ | `cmd:album.addPhotos` | off for a Local-only selection, with an Add to My Photos First hint item (issue #684) || MENU-PHOTO-REMOVEFROMALBUM | Remove from album | P0 | ✅ | `cmd:album.removePhotos` | || MENU-PHOTO-RATE | Rate submenu | P0 | ✅ | `cmd:photo.rate` | || MENU-PHOTO-FLAG | Flag submenu | P0 | ✅ | `cmd:photo.flag` | |diff --cc docs/whats-new.mdindex 947d5e6cc,a7cce10e5..9c5821653--- a/docs/whats-new.md+++ b/docs/whats-new.md@@@ -1,32 -1,21 +1,46 @@@# What's new in LightCraft-## October 2026+## 2026-10-11++### Open Library knows a Lightroom catalog+- Choosing a Lightroom Classic catalog folder in File → Open Library… (or one of its `Previews.lrdata` /+ `.lrcat-data` folders, or the `.lrcat`) no longer makes an empty LightCraft library inside it (issue #891). The+ library open now stays, and LightCraft says "This is a Lightroom catalog, not a LightCraft library" and offers+ **Import Lightroom Catalog…** with that catalog, or Cancel. `lightcraft-cli --library` refuses those folders too.++### Canon EOS R5 Mark II+- Canon EOS R5 Mark II C-RAW files that opened as "preview only" (more than half of them, depending on the+ scene) now develop from their sensor data with every editing tool, like the camera's other raws. Photos+ imported earlier switch over with Photo ▸ Reload from Disk.++## 2026-10-10++### Dialogs fit the window+- A dialog taller than the window no longer runs off it (issue #781): on a 1366×768 screen the Export dialog's title+ and its Cancel / OK buttons were off screen, so it couldn't be confirmed. Now its options scroll and the title and+ buttons stay visible. Long lists in dialogs (What's New, All Metadata, Keyboard Shortcuts) get shorter to fit.+ Dialogs that fit look as before.++### Previews match exports on Mac screens+- On macOS, photos are shown through the profile of the screen the window is on while no monitor profile is chosen in+ Settings ▸ Display (issue #787). On P3 screens previews used to look more saturated than the exported files in+ Preview or Photos. Moving the window to another screen is followed; **Use Screen Profile** goes back to it after+ choosing a profile file.+ ### Sidebar sections+ - Arrange the left sidebar your way: drag Albums, Local, By Date, Folders or Keywords by its header to move it (a line+ shows where it will go), or right-click a header for Move Up / Move Down.+ - Hide the sections you don't use: View ▸ Sidebar Sections, or right-click a header ▸ Hide This Section. Right-click+ the My Photos title to bring one back, or choose Reset Sidebar Sections. The arrangement is remembered.+ - In a long section, the header stays at the top of the sidebar while you scroll through its rows, so you always see+ which section you are in and can fold it from there.+ - Sections are easier to tell apart: a hairline between them, the fold chevron in the same column as the rows'+ triangles, a highlight under the pointer. A folded section shows how many rows it holds, counts of 0 are fainter,+ and a section with nothing in it says so instead of disappearing.+ - Recently Deleted is listed with All Photos, Recently Added and Picks under My Photos.+ - Keywords has a + in its header, like Albums: Create Keyword Tag without opening the Keyword List.+ - Agents: `view.sidebarSection`, `view.sidebarMoveSection`, `view.sidebarReset`; `ui.set` takes `sidebar`.+### Activity stack- Long-running tasks show in one place, top left under the top bar, as in Lightroom Classic (issue #345): imports andfolder scans, exports (and the contact sheet PDF), Synchronize Folder, Build / Smart Previews, Lightroom catalog import, Photo Merge, model downloads, the face scan,