Skip to content

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

Merge batch 29b (#946, #947, #953, #950)

Claude37b26c56a3e4
diff --cc Cargo.lock
index 3d94582d6,08ca88a21..12f046a3c
--- a/Cargo.lock
+++ b/Cargo.lock
@@@ -3084,8 -3081,8 +3084,9 @@@ dependencies =
"pollster 1.0.1",
"rfd",
"serde_json",
+ "winit",
"winresource",
+ "zbus",
]
[[package]]
diff --cc Cargo.toml
index 465e81d3b,db854caa7..149a5c232
--- a/Cargo.toml
+++ b/Cargo.toml
@@@ -91,10 -91,9 +91,13 @@@ eframe = { version = "0.36", default-fe
egui_kittest = "0.36"
rfd = "0.17"
muda = { version = "0.21", default-features = false } # native menu bar (macOS: objc2/AppKit, pure Rust; no GTK)
+# macOS: the profile of the screen showing the window (safe AppKit bindings; muda and wgpu use the same)
+objc2 = { version = "0.6", default-features = false, features = ["std"] }
+objc2-app-kit = { version = "0.3", default-features = false, features = ["std", "NSApplication", "NSColorSpace", "NSResponder", "NSScreen", "NSWindow"] }
+objc2-foundation = { version = "0.3", default-features = false, features = ["std", "NSArray", "NSData"] }
+ # Linux: the desktop's dark/light setting from the XDG settings portal (Settings ▸ Interface ▸
+ # Appearance Mode ▸ Auto). Pure Rust; the version accesskit already brings in, pinned to it.
+ zbus = "=5.19.0"
web-time = "1"
# web (apps/lightcraft-web)
diff --cc apps/lightcraft/Cargo.toml
index 41e6107e8,345e090d1..bbe495c7d
--- a/apps/lightcraft/Cargo.toml
+++ b/apps/lightcraft/Cargo.toml
@@@ -40,8 -37,8 +40,11 @@@ winit = { version = "0.30", default-fea
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
rfd = { workspace = true }
+ [target.'cfg(target_os = "linux")'.dependencies]
+ zbus = { workspace = true }
+
[target.'cfg(target_os = "macos")'.dependencies]
muda = { workspace = true }
+objc2 = { workspace = true }
+objc2-app-kit = { workspace = true }
+objc2-foundation = { workspace = true }
diff --cc crates/engine/src/lib.rs
index 9769fb807,501dcc9b1..32761a595
--- a/crates/engine/src/lib.rs
+++ b/crates/engine/src/lib.rs
@@@ -108,12 -108,9 +108,13 @@@ pub struct UndoEntry
pub label: String,
pub op: Op,
/// A folder to rename on disk (`from` → `to`) before `op` is applied: Rename / Move Folder
- /// (whose `op` relinks the photos inside). Never overwrites; refused when `to` exists.
+ /// (whose `op` relinks the photos inside). Never overwrites; refused when `to` exists. An
+ /// empty `to` removes the (empty) folder `from`, an empty `from` creates `to` (Create Folder).
pub folder: Option<FolderMove>,
+ /// Inverses of logged path corrections from a partially failed history step.
+ pub(crate) retry_inverse: Vec<Op>,
+ /// Sidecars still separated from their photo after a failed move or rollback.
+ pub(crate) retry_sidecars: Vec<rename::SidecarMove>,
}
/// The one photo an undo step changes, when it changes exactly one through its edit, rating, flag,
@@@ -645,20 -595,10 +646,20 @@@ impl Session
/// imply (all or nothing). Files that can't be moved back after a failure are reported and the
/// library follows them (a logged change outside the undo history), so none goes missing; the
/// folder is only moved back when no file was left behind at its new path.
- fn apply_with_files(&mut self, op: &Op, folder: Option<&FolderMove>) -> Result<Op> {
- let fs = rename::RealFs;
+ fn apply_with_files(&mut self, entry: &mut UndoEntry, fs: &dyn rename::MoveFs) -> Result<Op> {
+ // The entry is detached from self.undo/self.redo: include it before any global
+ // repair can retire, then retry revalidates it before moving its own packets.
+ rename::validate_sidecars(fs, &entry.retry_sidecars).map_err(|e| EngineError::Other(format!("can't move the files back: {e}")))?;
+ // Repair discarded file steps before another path change can stale their exact paths.
+ // Unrelated metadata history must remain usable while a sidecar is still unwritable.
+ if entry.folder.is_some() || !entry.retry_sidecars.is_empty() || !self.file_moves(&entry.op).is_empty() {
+ self.repair_sidecars_with(fs).map_err(|e| EngineError::Other(format!("can't move the files back: {e}")))?;
+ }
+ rename::retry_sidecars(fs, &mut entry.retry_sidecars).map_err(|e| EngineError::Other(format!("can't move the files back: {e}")))?;
+ let op = &entry.op;
+ let folder = entry.folder.as_ref();
if let Some(f) = folder {
- cmd::browse::rename_folder_on_disk(&f.from, &f.to).map_err(|e| EngineError::Other(format!("can't move the folder back: {e}")))?;
+ cmd::browse::folder_on_disk(&f.from, &f.to).map_err(|e| EngineError::Other(format!("can't move the folder back: {e}")))?;
}
let undo_folder = || {
if let Some(f) = folder {
diff --cc crates/engine/src/rename.rs
index 7b6c825ab,b9d49cb0a..199484e14
--- a/crates/engine/src/rename.rs
+++ b/crates/engine/src/rename.rs
@@@ -886,62 -702,15 +938,69 @@@ impl Session
self.apply_rename_with(&RealFs, plans)
}
+ /// Complete retained repairs before a file or folder change can stale their exact paths.
+ pub(crate) fn repair_sidecars_with(&mut self, fs: &dyn MoveFs) -> Result<()> {
+ for repair in self.pending_sidecar_repairs.iter().chain(self.undo.iter().chain(&self.redo).flat_map(|e| &e.retry_sidecars)) {
+ repair.validate_repair(fs).map_err(EngineError::Other)?;
+ }
+ retry_sidecars(fs, &mut self.pending_sidecar_repairs).map_err(EngineError::Other)?;
+ for entry in self.undo.iter_mut().chain(self.redo.iter_mut()) {
+ retry_sidecars(fs, &mut entry.retry_sidecars).map_err(EngineError::Other)?;
+ }
+ Ok(())
+ }
+
+ pub(crate) fn repair_sidecars_for_paths(&mut self, paths: &[PathBuf], fs: &dyn MoveFs) -> Result<()> {
+ self.validate_sidecar_packets_for_paths(paths, fs)?;
+ retry_sidecars_for_paths(fs, &mut self.pending_sidecar_repairs, paths).map_err(EngineError::Other)?;
+ for entry in self.undo.iter_mut().chain(self.redo.iter_mut()) {
+ retry_sidecars_for_paths(fs, &mut entry.retry_sidecars, paths).map_err(EngineError::Other)?;
+ }
+ Ok(())
+ }
+
+ /// A healthy shared packet may be saved while another photo's repair is unavailable.
+ /// Check its retained content too, without forcing that unrelated physical operation.
+ pub(crate) fn validate_sidecar_packets_for_paths(&self, paths: &[PathBuf], fs: &dyn MoveFs) -> Result<()> {
+ for repair in self.pending_sidecar_repairs.iter().chain(self.undo.iter().chain(&self.redo).flat_map(|e| &e.retry_sidecars)) {
+ if paths.iter().any(|path| repair.touches(fs, path)) {
+ repair.validate_repair(fs).map_err(EngineError::Other)?;
+ } else {
+ for packet in &repair.companions {
+ if paths.iter().any(|path| fs.same_file(path, &packet.path)) {
+ packet.validate(fs).map_err(EngineError::Other)?;
+ }
+ }
+ }
+ }
+ Ok(())
+ }
+
+ /// Only a successful application write updates a retained content version. Atomic writes
+ /// replace inodes; aliases that now resolve to the written path observe the new content.
+ pub(crate) fn note_sidecar_write(&mut self, path: &Path, bytes: &[u8]) {
+ let version = PacketVersion::of(bytes);
+ for repair in self.pending_sidecar_repairs.iter_mut().chain(self.undo.iter_mut().chain(&mut self.redo).flat_map(|e| &mut e.retry_sidecars)) {
+ for packet in &mut repair.companions {
+ if RealFs.same_file(path, &packet.path) {
+ packet.version = Some(version);
+ }
+ }
+ }
+ }
+
/// [`Session::apply_rename`] on the file system `fs`.
pub(crate) fn apply_rename_with(&mut self, fs: &dyn MoveFs, plans: &[RenamePlan]) -> Result<usize> {
+ self.apply_file_plans(fs, plans, &|n| format!("Rename {n} Photo{}", if n == 1 { "" } else { "s" }))
+ }
+
+ /// Carry out `plans` (renames or moves to another folder): move the files with their sidecars
+ /// (all or nothing), then commit one undoable op, labelled `label(count)`, that points the
+ /// photos (and their virtual copies) at the new paths. Undo moves the files back.
+ pub(crate) fn apply_file_plans(&mut self, fs: &dyn MoveFs, plans: &[RenamePlan], label: &dyn Fn(usize) -> String) -> Result<usize> {
+ // A partly completed rename can already have the requested photo name. Repair
+ // its sidecars before treating that empty move list as a successful retry.
+ self.repair_sidecars_with(fs)?;
let mut ops = Vec::new();
let by_path: HashMap<&str, &RenamePlan> = plans.iter().filter_map(|p| p.from_path.as_deref().map(|f| (f, p))).collect();
for p in self.catalog.photos() {
@@@ -969,10 -738,10 +1028,10 @@@
})
.collect();
if let Err(e) = move_all(fs, &moves) {
- return Err(EngineError::Other(self.follow_stuck(&op, e, true)));
+ return Err(EngineError::Other(self.follow_stuck(&op, e, true).0));
}
if n > 0
- && let Err(err) = self.commit(&format!("Rename {n} Photo{}", if n == 1 { "" } else { "s" }), op)
+ && let Err(err) = self.commit(&label(n), op)
{
let back: Vec<(String, String)> = moves.iter().rev().map(|(a, b)| (b.clone(), a.clone())).collect();
if let Err(e) = move_all(fs, &back) {
diff --cc crates/ui-egui/locales/de.json
index 4db9e9d15,c1854810c..4a6397632
--- a/crates/ui-egui/locales/de.json
+++ b/crates/ui-egui/locales/de.json
@@@ -2067,12 -2080,21 +2080,29 @@@
"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.",
+ "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"
++ "Move Sidebar Section": "Seitenleistenbereich verschieben",
+ "New Library…": "Neue Bibliothek…",
+ "Open Recent Library": "Zuletzt verwendete Bibliothek öffnen",
+ "Recent Libraries": "Zuletzt verwendete Bibliotheken",
+ "Clear Recent Libraries": "Liste leeren",
+ "No Recent Libraries": "Keine zuletzt verwendeten Bibliotheken",
+ "New Library: Choose Where to Put It": "Neue Bibliothek: Speicherort wählen",
+ "New Library": "Neue Bibliothek",
+ "Library name": "Name der Bibliothek",
+ "New Folder on Disk": "Neuer Ordner auf dem Datenträger",
+ "New Folder on Disk…": "Neuer Ordner auf dem Datenträger…",
+ "Move to Folder": "In Ordner verschieben",
+ "Move to Folder…": "In Ordner verschieben…",
+ "Move Selected Photos Here": "Ausgewählte Fotos hierher verschieben",
+ "Moves the files and their XMP sidecars into this folder; never overwrites": "Verschiebt die Dateien samt XMP-Filialdateien in diesen Ordner; nichts wird überschrieben",
+ "Appearance Settings…": "Erscheinungsbild-Einstellungen…",
+ "Add to favorites": "Zu Favoriten hinzufügen",
+ "Remove from favorites": "Aus Favoriten entfernen"
}
diff --cc crates/ui-egui/locales/es.json
index 5611732e0,792ca4d02..86b42e8b1
--- a/crates/ui-egui/locales/es.json
+++ b/crates/ui-egui/locales/es.json
@@@ -1909,12 -1922,21 +1922,29 @@@
"Relative": "Relativo",
"Simulate Paper & Ink": "Simular papel y tinta",
"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"
++ "Move Sidebar Section": "Mover sección de la barra lateral",
+ "New Library…": "Nueva biblioteca…",
+ "Open Recent Library": "Abrir biblioteca reciente",
+ "Recent Libraries": "Bibliotecas recientes",
+ "Clear Recent Libraries": "Borrar bibliotecas recientes",
+ "No Recent Libraries": "No hay bibliotecas recientes",
+ "New Library: Choose Where to Put It": "Nueva biblioteca: elige dónde guardarla",
+ "New Library": "Nueva biblioteca",
+ "Library name": "Nombre de la biblioteca",
+ "New Folder on Disk": "Nueva carpeta en el disco",
+ "New Folder on Disk…": "Nueva carpeta en el disco…",
+ "Move to Folder": "Mover a carpeta",
+ "Move to Folder…": "Mover a carpeta…",
+ "Move Selected Photos Here": "Mover aquí las fotos seleccionadas",
+ "Moves the files and their XMP sidecars into this folder; never overwrites": "Mueve los archivos y sus archivos XMP auxiliares a esta carpeta; nunca sobrescribe",
+ "Appearance Settings…": "Ajustes de apariencia…",
+ "Add to favorites": "Añadir a favoritos",
+ "Remove from favorites": "Quitar de favoritos"
}
diff --cc crates/ui-egui/locales/fr.json
index 3cacc7b54,2ce42db63..afee27aac
--- a/crates/ui-egui/locales/fr.json
+++ b/crates/ui-egui/locales/fr.json
@@@ -1909,12 -1909,34 +1909,42 @@@
"Relative": "Relatif",
"Simulate Paper & Ink": "Simuler le papier et l'encre",
"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"
++ "Move Sidebar Section": "Déplacer la section de la barre latérale",
+ "New Library…": "Nouvelle bibliothèque…",
+ "Open Recent Library": "Ouvrir une bibliothèque récente",
+ "Recent Libraries": "Bibliothèques récentes",
+ "Clear Recent Libraries": "Effacer les bibliothèques récentes",
+ "No Recent Libraries": "Aucune bibliothèque récente",
+ "New Library: Choose Where to Put It": "Nouvelle bibliothèque : choisir son emplacement",
+ "New Library": "Nouvelle bibliothèque",
+ "Library name": "Nom de la bibliothèque",
+ "New Folder on Disk": "Nouveau dossier sur le disque",
+ "New Folder on Disk…": "Nouveau dossier sur le disque…",
+ "Move to Folder": "Déplacer vers un dossier",
+ "Move to Folder…": "Déplacer vers un dossier…",
+ "Move Selected Photos Here": "Déplacer ici les photos sélectionnées",
+ "Moves the files and their XMP sidecars into this folder; never overwrites": "Déplace les fichiers et leurs fichiers annexes XMP dans ce dossier ; n'écrase jamais rien",
+ "Appearance Settings…": "Réglages d’apparence…",
+ "Add to favorites": "Ajouter aux favoris",
+ "Remove from favorites": "Retirer des favoris",
+ "Appearance": "Apparence",
+ "Appearance Mode": "Mode d’apparence",
+ "Sync with System": "Synchroniser avec le système",
+ "Light Mode": "Mode clair",
+ "Dark Mode": "Mode sombre",
+ "Next Appearance Mode": "Mode d’apparence suivant",
+ "Light Theme": "Thème clair",
+ "Dark Theme": "Thème sombre",
+ "In Use": "Utilisé",
+ "Charcoal": "Anthracite",
+ "Midnight": "Minuit",
+ "Silver": "Argent",
+ "Paper": "Papier"
}
diff --cc crates/ui-egui/locales/ja.json
index 3dbd39e94,f38a87708..b5e21e09c
--- a/crates/ui-egui/locales/ja.json
+++ b/crates/ui-egui/locales/ja.json
@@@ -1911,12 -1924,21 +1924,29 @@@
"Relative": "相対的",
"Simulate Paper & Ink": "紙とインキをシミュレート",
"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 Sidebar Section": "サイドバーのセクションを移動",
+ "New Library…": "新しいライブラリ…",
+ "Open Recent Library": "最近使ったライブラリを開く",
+ "Recent Libraries": "最近使ったライブラリ",
+ "Clear Recent Libraries": "最近使ったライブラリを消去",
+ "No Recent Libraries": "最近使ったライブラリはありません",
+ "New Library: Choose Where to Put It": "新しいライブラリ:保存場所を選択",
+ "New Library": "新しいライブラリ",
+ "Library name": "ライブラリ名",
+ "New Folder on Disk": "ディスクに新規フォルダ",
+ "New Folder on Disk…": "ディスクに新規フォルダ…",
+ "Move to Folder": "フォルダへ移動",
+ "Move to Folder…": "フォルダへ移動…",
+ "Move Selected Photos Here": "選択した写真をここへ移動",
+ "Moves the files and their XMP sidecars into this folder; never overwrites": "ファイルと XMP サイドカーをこのフォルダへ移動します。上書きはしません",
+ "Appearance Settings…": "外観設定…",
+ "Add to favorites": "お気に入りに追加",
+ "Remove from favorites": "お気に入りから削除"
}
diff --cc crates/ui-egui/locales/pt-br.json
index 58c4f48a7,5ab30b05f..217cde981
--- a/crates/ui-egui/locales/pt-br.json
+++ b/crates/ui-egui/locales/pt-br.json
@@@ -1909,12 -1922,21 +1922,29 @@@
"Relative": "Relativo",
"Simulate Paper & Ink": "Simular papel e tinta",
"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"
++ "Move Sidebar Section": "Mover seção da barra lateral",
+ "New Library…": "Nova biblioteca…",
+ "Open Recent Library": "Abrir biblioteca recente",
+ "Recent Libraries": "Bibliotecas recentes",
+ "Clear Recent Libraries": "Limpar bibliotecas recentes",
+ "No Recent Libraries": "Nenhuma biblioteca recente",
+ "New Library: Choose Where to Put It": "Nova biblioteca: escolha onde salvá-la",
+ "New Library": "Nova biblioteca",
+ "Library name": "Nome da biblioteca",
+ "New Folder on Disk": "Nova pasta no disco",
+ "New Folder on Disk…": "Nova pasta no disco…",
+ "Move to Folder": "Mover para pasta",
+ "Move to Folder…": "Mover para pasta…",
+ "Move Selected Photos Here": "Mover as fotos selecionadas para cá",
+ "Moves the files and their XMP sidecars into this folder; never overwrites": "Move os arquivos e seus arquivos XMP auxiliares para esta pasta; nunca sobrescreve",
+ "Appearance Settings…": "Configurações de aparência…",
+ "Add to favorites": "Adicionar aos favoritos",
+ "Remove from favorites": "Remover dos favoritos"
}
diff --cc crates/ui-egui/locales/ru.json
index 477a25d16,d777309c9..8c227f546
--- a/crates/ui-egui/locales/ru.json
+++ b/crates/ui-egui/locales/ru.json
@@@ -1623,14 -1636,21 +1636,31 @@@
"Relative": "Относительный",
"Simulate Paper & Ink": "Имитировать бумагу и краску",
"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": "Переместить вниз"
++ "Move Down": "Переместить вниз",
+ "New Library…": "Новая библиотека…",
+ "Open Recent Library": "Открыть недавнюю библиотеку",
+ "Recent Libraries": "Недавние библиотеки",
+ "Clear Recent Libraries": "Очистить список недавних библиотек",
+ "No Recent Libraries": "Нет недавних библиотек",
+ "New Library: Choose Where to Put It": "Новая библиотека: выберите расположение",
+ "New Library": "Новая библиотека",
+ "Library name": "Название библиотеки",
+ "New Folder on Disk": "Новая папка на диске",
+ "New Folder on Disk…": "Новая папка на диске…",
+ "Move to Folder": "Переместить в папку",
+ "Move to Folder…": "Переместить в папку…",
+ "Move Selected Photos Here": "Переместить выбранные фото сюда",
+ "Moves the files and their XMP sidecars into this folder; never overwrites": "Перемещает файлы и их XMP-файлы в эту папку; ничего не перезаписывает",
+ "Appearance Settings…": "Настройки оформления…",
+ "Add to favorites": "Добавить в избранное",
+ "Remove from favorites": "Удалить из избранного"
}
diff --cc crates/ui-egui/locales/uk.json
index d19e26b2d,61d0218dd..9ca8ac132
--- a/crates/ui-egui/locales/uk.json
+++ b/crates/ui-egui/locales/uk.json
@@@ -2103,12 -2103,34 +2103,42 @@@
"Relative": "Відносний",
"Simulate Paper & Ink": "Імітувати папір і фарбу",
"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 Sidebar Section": "Перемістити розділ бічної панелі",
+ "New Library…": "Нова бібліотека…",
+ "Open Recent Library": "Відкрити нещодавню бібліотеку",
+ "Recent Libraries": "Нещодавні бібліотеки",
+ "Clear Recent Libraries": "Очистити список нещодавніх бібліотек",
+ "No Recent Libraries": "Немає нещодавніх бібліотек",
+ "New Library: Choose Where to Put It": "Нова бібліотека: виберіть розташування",
+ "New Library": "Нова бібліотека",
+ "Library name": "Назва бібліотеки",
+ "New Folder on Disk": "Нова тека на диску",
+ "New Folder on Disk…": "Нова тека на диску…",
+ "Move to Folder": "Перемістити до теки",
+ "Move to Folder…": "Перемістити до теки…",
+ "Move Selected Photos Here": "Перемістити вибрані фото сюди",
+ "Moves the files and their XMP sidecars into this folder; never overwrites": "Переміщує файли та їхні XMP-файли до цієї теки; нічого не перезаписує",
+ "Appearance Settings…": "Налаштування вигляду…",
+ "Add to favorites": "Додати до вибраного",
+ "Remove from favorites": "Видалити з вибраного",
+ "Appearance": "Вигляд",
+ "Appearance Mode": "Режим вигляду",
+ "Sync with System": "Як у системі",
+ "Light Mode": "Світлий режим",
+ "Dark Mode": "Темний режим",
+ "Next Appearance Mode": "Наступний режим вигляду",
+ "Light Theme": "Світла тема",
+ "Dark Theme": "Темна тема",
+ "In Use": "Використовується",
+ "Charcoal": "Графіт",
+ "Midnight": "Опівніч",
+ "Silver": "Срібло",
+ "Paper": "Папір"
}
diff --cc crates/ui-egui/locales/zh-hans.json
index 16e4d6abd,4226c22a1..517e67c25
--- a/crates/ui-egui/locales/zh-hans.json
+++ b/crates/ui-egui/locales/zh-hans.json
@@@ -1909,12 -1922,21 +1922,29 @@@
"Relative": "相对",
"Simulate Paper & Ink": "模拟纸张和油墨",
"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 Sidebar Section": "移动边栏分区",
+ "New Library…": "新建图库…",
+ "Open Recent Library": "打开最近的图库",
+ "Recent Libraries": "最近的图库",
+ "Clear Recent Libraries": "清除最近的图库",
+ "No Recent Libraries": "没有最近的图库",
+ "New Library: Choose Where to Put It": "新建图库:选择存放位置",
+ "New Library": "新建图库",
+ "Library name": "图库名称",
+ "New Folder on Disk": "在磁盘上新建文件夹",
+ "New Folder on Disk…": "在磁盘上新建文件夹…",
+ "Move to Folder": "移动到文件夹",
+ "Move to Folder…": "移动到文件夹…",
+ "Move Selected Photos Here": "将所选照片移到此处",
+ "Moves the files and their XMP sidecars into this folder; never overwrites": "将文件及其 XMP 附属文件移到此文件夹;绝不覆盖",
+ "Appearance Settings…": "外观设置…",
+ "Add to favorites": "添加到收藏",
+ "Remove from favorites": "从收藏中移除"
}
diff --cc crates/ui-egui/locales/zh-hant.json
index 501942ac9,717c1449c..83417ded0
--- a/crates/ui-egui/locales/zh-hant.json
+++ b/crates/ui-egui/locales/zh-hant.json
@@@ -1909,12 -1922,21 +1922,29 @@@
"Relative": "相對",
"Simulate Paper & Ink": "模擬紙張和油墨",
"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 Sidebar Section": "移動側邊欄區段",
+ "New Library…": "新增圖庫…",
+ "Open Recent Library": "開啟最近的圖庫",
+ "Recent Libraries": "最近的圖庫",
+ "Clear Recent Libraries": "清除最近的圖庫",
+ "No Recent Libraries": "沒有最近的圖庫",
+ "New Library: Choose Where to Put It": "新增圖庫:選擇存放位置",
+ "New Library": "新增圖庫",
+ "Library name": "圖庫名稱",
+ "New Folder on Disk": "在磁碟上新增資料夾",
+ "New Folder on Disk…": "在磁碟上新增資料夾…",
+ "Move to Folder": "移至資料夾",
+ "Move to Folder…": "移至資料夾…",
+ "Move Selected Photos Here": "將所選照片移至此處",
+ "Moves the files and their XMP sidecars into this folder; never overwrites": "將檔案及其 XMP 附屬檔案移至此資料夾;絕不覆寫",
+ "Appearance Settings…": "外觀設定…",
+ "Add to favorites": "加入最愛",
+ "Remove from favorites": "從最愛移除"
}
diff --cc crates/ui-egui/src/icons.rs
index f4bd067fb,3441f109e..b82194bbb
--- a/crates/ui-egui/src/icons.rs
+++ b/crates/ui-egui/src/icons.rs
@@@ -83,14 -83,12 +83,20 @@@ pub enum Icon
Chat,
/// Face boxes on/off: four corner brackets round a small face.
FaceBox,
+ /// Colour grading, all three wheels: three small circles.
+ GradeAll,
+ /// Colour grading, shadows wheel: a filled circle.
+ GradeShadows,
+ /// Colour grading, midtones wheel: a half-filled circle.
+ GradeMidtones,
+ /// Colour grading, highlights wheel: an open circle with rays.
+ GradeHighlights,
+ /// Appearance Mode ▸ Auto (follow the system): a monitor on its stand.
+ Monitor,
+ /// Appearance Mode ▸ Light: a sun (a disc with eight rays).
+ Sun,
+ /// Appearance Mode ▸ Dark: a crescent moon.
+ Moon,
}
struct Pen<'a> {
diff --cc crates/ui-egui/src/lib.rs
index b7c7e46e0,dcb6f47cd..8f837a825
--- a/crates/ui-egui/src/lib.rs
+++ b/crates/ui-egui/src/lib.rs
@@@ -58,14 -59,12 +60,14 @@@ mod tests_curve
#[cfg(test)]
mod tests_date_picker;
#[cfg(test)]
- mod tests_dialogs;
- #[cfg(test)]
mod tests_dialog_fit;
#[cfg(test)]
+ mod tests_dialogs;
+ #[cfg(test)]
mod tests_filmstrip;
#[cfg(test)]
+mod tests_grading;
+#[cfg(test)]
mod tests_grid;
#[cfg(test)]
mod tests_info_dialogs;
@@@ -147,9 -142,9 +149,12 @@@ pub type RevealFn = Box<dyn FnMut(&str
pub type OpenUrlFn = Box<dyn FnMut(&str) -> Result<(), String>>;
/// Open a file in an application (`app` = "" for the system's default one).
pub type OpenWithFn = Box<dyn FnMut(&str, &str) -> Result<(), String>>;
+/// The ICC profile of the screen showing the window, as the system colour-manages it (`None`:
+/// not known).
+pub type ScreenProfileFn = Box<dyn FnMut() -> Option<Vec<u8>>>;
+ /// Whether an external editor can be started (its name as in [`Services::open_with`]); the
+ /// error says why not and what to do (e.g. PhotoCraft isn't installed).
+ pub type CheckEditorFn = Box<dyn Fn(&str) -> Result<(), String>>;
/// Something the host does with the session (web: back up or restore the library in browser
/// storage); the work may finish asynchronously.
pub type HostAction = Box<dyn FnMut(&mut Session) -> Result<Value, String>>;
diff --cc crates/ui-egui/src/menubar.rs
index b7b2e7673,8a0cede2d..58bcb390f
--- a/crates/ui-egui/src/menubar.rs
+++ b/crates/ui-egui/src/menubar.rs
@@@ -463,19 -468,29 +469,42 @@@ fn expanded(app: &LightcraftApp, name:
v.push(item("dialog.labelNames", Value::Null, "Edit Label Names…", None, true, None));
v
}
+ "Sidebar Sections" => {
+ // one checkable item per section, in the order the sidebar lists them
+ let layout = &app.ui.sidebar;
+ let mut v: Vec<MenuNode> = layout
+ .sections()
+ .iter()
+ .filter(|s| s.id.available())
+ .map(|s| item("view.sidebarSection", json!({"section": s.id.id()}), s.id.title(), None, true, Some(!s.hidden)))
+ .collect();
+ v.push(MenuNode::Separator);
+ v.push(item("view.sidebarReset", Value::Null, "Reset Sidebar Sections", None, !layout.is_default(), None));
+ v
+ }
+ "Appearance" => {
+ use crate::state::AppearanceMode;
+ use crate::theme::ThemeKind;
+ let s = &app.ui.settings;
+ let mut v: Vec<MenuNode> = [
+ ("auto", "Sync with System", AppearanceMode::Auto),
+ ("light", "Light Mode", AppearanceMode::Light),
+ ("dark", "Dark Mode", AppearanceMode::Dark),
+ ]
+ .into_iter()
+ .map(|(mode, label, m)| item("view.appearance", json!({"mode": mode}), label, None, true, Some(s.appearance_mode == m)))
+ .collect();
+ v.push(item("view.appearance", Value::Null, "Next Appearance Mode", None, true, None));
+ // the saved theme of each family is checked
+ for group in [[ThemeKind::Charcoal, ThemeKind::Midnight], [ThemeKind::Silver, ThemeKind::Paper]] {
+ v.push(MenuNode::Separator);
+ for k in group {
+ let on = if k.is_dark() { s.dark_theme.kind() == k } else { s.light_theme.kind() == k };
+ v.push(item("view.theme", json!({"theme": k.id()}), k.label(), None, true, Some(on)));
+ }
+ }
+ v
+ }
"Grid Info" => ["filename", "exposure", "date"]
.into_iter()
.zip(["File Name", "Exposure (shutter · aperture · ISO)", "Capture Date"])
diff --cc crates/ui-egui/src/menus.rs
index bfe87da9d,8ce9f20be..d5e0ee2f1
--- a/crates/ui-egui/src/menus.rs
+++ b/crates/ui-egui/src/menus.rs
@@@ -271,28 -277,41 +280,63 @@@ 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}")),
+ }
+}
+
+ fn appearance_json(app: &LightcraftApp) -> Value {
+ let s = &app.ui.settings;
+ json!({"mode": s.appearance_mode, "darkTheme": s.dark_theme, "lightTheme": s.light_theme})
+ }
+
+ /// `view.appearance {mode?}`: set Appearance Mode, or step to the next one (Auto, Light, Dark).
+ /// The theme follows on the next frame ([`LightcraftApp::sync_theme`]).
+ fn appearance_command(app: &mut LightcraftApp, p: &Value) -> Result<Value, String> {
+ use crate::state::AppearanceMode;
+ let mode = match p.get("mode") {
+ None | Some(Value::Null) => app.ui.settings.appearance_mode.next(),
+ Some(v) => match v.as_str() {
+ Some("auto") => AppearanceMode::Auto,
+ Some("light") => AppearanceMode::Light,
+ Some("dark") => AppearanceMode::Dark,
+ _ => return Err(format!("view.appearance: unknown mode {v} (auto|light|dark)")),
+ },
+ };
+ app.ui.settings.appearance_mode = mode;
+ Ok(appearance_json(app))
+ }
+
+ /// `view.theme {theme}`: pick a theme; the mode becomes its family's (Dark or Light).
+ fn theme_command(app: &mut LightcraftApp, p: &Value) -> Result<Value, String> {
+ let ids = crate::theme::ThemeKind::ALL.map(|k| k.id()).join("|");
+ let Some(id) = p.get("theme").and_then(Value::as_str) else {
+ return Err(format!("view.theme: `theme` is required ({ids})"));
+ };
+ let Some(kind) = crate::theme::ThemeKind::ALL.into_iter().find(|k| k.id() == id) else {
+ return Err(format!("view.theme: unknown theme `{id}` ({ids})"));
+ };
+ app.ui.settings.select_theme(kind);
+ Ok(appearance_json(app))
+ }
+
/// 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") {
@@@ -356,60 -375,8 +400,62 @@@
app.ui.show_counts = p.get("show").and_then(Value::as_bool).unwrap_or(!app.ui.show_counts);
Ok(json!({"show": app.ui.show_counts}))
}
+ "view.sidebarSection" => {
+ // {section, show?, collapsed?}: show or hide a section of the left sidebar, fold or
+ // unfold it; with neither, a shown section is hidden and a hidden one shown
+ let args = sidebar_section_param(id, p).and_then(|s| Ok((s, bool_param(id, p, "show")?, bool_param(id, p, "collapsed")?)));
+ let (section, show, collapsed) = match args {
+ Ok(args) => args,
+ Err(e) => return Some(Err(e)),
+ };
+ let layout = &mut app.ui.sidebar;
+ match (show, collapsed) {
+ (None, None) => layout.set_hidden(section, !layout.is_hidden(section)),
+ _ => {
+ if let Some(show) = show {
+ layout.set_hidden(section, !show);
+ }
+ if let Some(collapsed) = collapsed {
+ layout.set_collapsed(section, collapsed);
+ }
+ }
+ }
+ Ok(json!({"section": section.id(), "show": !layout.is_hidden(section), "collapsed": layout.is_collapsed(section)}))
+ }
+ "view.sidebarMoveSection" => {
+ // {section, direction: up | down} one place among the shown sections, or
+ // {section, before: <section> | null} just above another section (null: last)
+ let section = match sidebar_section_param(id, p) {
+ Ok(s) => s,
+ Err(e) => return Some(Err(e)),
+ };
+ let layout = &mut app.ui.sidebar;
+ let moved = match (p.get("direction"), p.get("before")) {
+ (Some(d), None) => match d.as_str() {
+ Some("up") => layout.move_by(section, true),
+ Some("down") => layout.move_by(section, false),
+ _ => return Some(Err(format!("{id}: `direction` must be \"up\" or \"down\", not {d}"))),
+ },
+ (None, Some(Value::Null)) => layout.move_before(section, None),
+ (None, Some(b)) => {
+ let before = b.as_str().and_then(crate::sidebar::SidebarSection::from_id);
+ let Some(before) = before else {
+ return Some(Err(format!("{id}: `before` must be a section ({}) or null, not {b}", crate::sidebar::SidebarSection::ids())));
+ };
+ layout.move_before(section, Some(before))
+ }
+ _ => return Some(Err(format!("{id}: give either `direction` (up|down) or `before` (a section, or null for last)"))),
+ };
+ let order: Vec<&str> = layout.sections().iter().map(|s| s.id.id()).collect();
+ Ok(json!({"section": section.id(), "moved": moved, "order": order}))
+ }
+ "view.sidebarReset" => {
+ // every section shown and open, in the usual order
+ app.ui.sidebar = Default::default();
+ Ok(json!({"sidebar": app.ui.sidebar}))
+ }
+ "view.appearance" => appearance_command(app, p),
+ "view.theme" => theme_command(app, p),
"view.gridToggle" => {
app.ui.view = if app.ui.view == ViewMode::PhotoGrid { ViewMode::SquareGrid } else { ViewMode::PhotoGrid };
Ok(Value::Null)
diff --cc crates/ui-egui/src/panels/left.rs
index 8be2aca9c,d4c0457cf..a14332c82
--- a/crates/ui-egui/src/panels/left.rs
+++ b/crates/ui-egui/src/panels/left.rs
@@@ -563,11 -182,24 +563,27 @@@ pub fn show(app: &mut LightcraftApp, ui
let frame = egui::Frame::NONE.fill(t.chrome).stroke(egui::Stroke::new(1.0, t.divider));
frame.show(ui, |ui| {
ui.spacing_mut().item_spacing.y = 0.0;
- let (hr, header) = 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);
+ // the open library's name under the title, so nobody edits in the wrong one (issue #902)
+ let library = crate::panels::settings::open_library_name(app);
+ let title_y = if library.is_some() { hr.center().y - 7.0 } else { hr.center().y };
+ ui.painter().text(pos2(hr.left() + 18.0, title_y), Align2::LEFT_CENTER, crate::i18n::tr("My Photos"), t.semibold(15.0), t.text);
+ if let Some(name) = library {
+ ui.painter().with_clip_rect(hr.shrink2(vec2(18.0, 0.0))).text(
+ pos2(hr.left() + 18.0, hr.center().y + 10.0),
+ Align2::LEFT_CENTER,
+ name,
+ t.font(11.0),
+ t.text_dim,
+ );
+ crate::widgets::register(ui.ctx(), "label:libraryName", hr);
+ if let Some(l) = app.session.library.as_ref() {
- header.on_hover_text(l.dir.display().to_string());
++ title.on_hover_text(l.dir.display().to_string());
+ }
+ }
let counts = app.caches.counts(&app.session.catalog);
let (total, picks, deleted) = (counts.total, counts.picks, counts.deleted);
egui::ScrollArea::both().id_salt("left-scroll").auto_shrink([false, false]).show_viewport(ui, |ui, viewport| {
diff --cc docs/parity-checklist.md
index 8be7e280e,ee6a5e1b2..c752eff93
--- a/docs/parity-checklist.md
+++ b/docs/parity-checklist.md
@@@ -424,13 -424,10 +424,13 @@@ differences and missing bindings are i
| LR-PREF-GENERAL | General settings | P0 | ✅ | `cmd:app.settings`, `cmd:app.openLibrary`, `crates/ui-egui/src/panels/settings.rs`, `crates/ui-egui/src/panels/notices.rs` | General / Import / Performance / Display / Interface tabs; app settings in ui.json (written atomically, saved when the library changes and every few seconds), library settings in prefs.json; a damaged settings file is kept as `.corrupt-<time>` and reported, an unreadable one is not overwritten that session (`library.info` → `settingsWarnings`); quitting with unsaved changes retries, then asks |
| LR-PREF-LOCALSTORAGE | Storage & cache | P1 | ✅ | `cmd:library.preferences`, `cmd:library.clearPreviews`, `cmd:library.compact` | thumbnail cache size + clear in Settings → Performance; library location + Open Library… in General |
| LR-PREF-ACCOUNT | Account | OOS | 🚫 | | |
- | LR-PREF-INTERFACE | Interface options | P1 | ✅ | `cmd:app.settings` | filmstrip names/badges, grid badges (auto/always/never), square-grid names, navigator, info overlay |
+ | LR-PREF-INTERFACE | Interface options | P1 | ✅ | `cmd:app.settings`, `cmd:view.appearance`, `cmd:view.theme` | Appearance Mode (Sync with System / Dark / Light; the top bar button cycles Auto, Light, Dark) with separate dark (Charcoal, Midnight) and light (Silver, Paper) themes previewed in cards; hover stars persist favorite themes, the appearance button context menu opens Interface settings and lists light favorites before dark favorites; filmstrip names/badges, grid badges (auto/always/never), square-grid names, navigator, info overlay |
| LR-PREF-DISPLAY | Monitor (display) colour management | P1 | 🟡 | `cmd:app.displayProfile`, `crates/codecs/src/display.rs`, `crates/engine/src/display.rs`, `crates/ui-egui/src/panels/settings.rs`, `docs/display-profiles.md` | Settings ▸ Display: a monitor ICC profile (matrix/TRC exactly, LUT-based through the CMS) chosen by hand; the loupe, Before, Compare, hover previews and the second window render into the display's primaries (its full gamut, CPU and GPU), thumbnails and stand-ins are converted from sRGB; histogram, preview caches and exports stay sRGB; soft proofing's display gamut warning uses the display's gamut. Missing: picking up the profile the OS assigns (X11 `_ICC_PROFILE`, colord, ColorSync, WCS), per-monitor profiles |
+| LR-PREF-DISPLAY | Monitor (display) colour management | P1 | 🟡 | `cmd:app.displayProfile`, `crates/codecs/src/display.rs`, `crates/engine/src/display.rs`, `crates/ui-egui/src/panels/settings.rs`, `apps/lightcraft/src/screen_profile.rs`, `docs/display-profiles.md` | Settings ▸ Display: a monitor ICC profile (matrix/TRC exactly, LUT-based through the CMS) chosen by hand, or on macOS the profile of the screen showing the window (followed across screens, #787); the loupe, Before, Compare, hover previews and the second window render into the display's primaries (its full gamut, CPU and GPU), thumbnails and stand-ins are converted from sRGB; histogram, preview caches and exports stay sRGB; soft proofing's display gamut warning uses the display's gamut. Missing: picking up the profile the OS assigns on Linux and Windows (X11 `_ICC_PROFILE`, colord, WCS), per-monitor profiles there |
| LR-PREF-PERFORMANCE | GPU / performance | P1 | ✅ | `cmd:app.gpu`, `cmd:app.memoryBudget`, `cmd:app.settings` | GPU on/off (a crash while the GPU device or its kernels are built, issue #250, turns it off for the next launch), preview size (Automatic = the whole-frame loupe render at canvas size, up to 2560 px; or a 1600–5120 px size for it; zoomed views add a window at up to 100 %, issue #323), memory budget (a quarter of it is the idle per-view stage caches' share; the open photo's views are counted and reported, and cut only past four times that, the before side's and the zoom window's first — a Before/After at 1:1 on a 2800 px canvas holds about 1 GB of GPU stages, plus the one 288 MB copy of the original, which `ui.inspect` reports as `sharedSourceBytes`), thumbnail cache size in Settings |
+| LR-PREF-PERFORMANCE | GPU / performance | P1 | ✅ | `cmd:app.gpu`, `cmd:app.memoryBudget`, `cmd:app.settings` | GPU on/off, preview size (Automatic = the whole-frame loupe render at canvas size, up to 2560 px; or a 1600–5120 px size for it; zoomed views add a window at up to 100 %, issue #323), memory budget (a quarter of it is the idle per-view stage caches' share; the open photo's views are counted and reported, and cut only past four times that, the before side's and the zoom window's first — a Before/After at 1:1 on a 2800 px canvas holds about 1 GB of GPU stages, plus the one 288 MB copy of the original, which `ui.inspect` reports as `sharedSourceBytes`), thumbnail cache size in Settings |
| LR-PREF-PEOPLE | Face recognition | P2 | 🟡 | `cmd:faces.enable`, `cmd:faces.models.list`, `cmd:faces.models.inspect`, `cmd:faces.models.install`, `cmd:faces.models.download`, `cmd:faces.models.downloads`, `cmd:faces.models.downloadCancel`, `cmd:faces.models.remove`, `cmd:faces.models.select`, `cmd:dialog.faceModel`, `crates/faces/src/lib.rs`, `crates/ui-egui/src/panels/faces.rs` | Settings ▸ Faces: an off-by-default toggle and the face model list. Models are opt-in and never bundled, the 232 KB YuNet detector included. Press Download (terms first; then a pinned address, size and SHA-256 checked, fetched over pure-Rust https with `lightcraft-fetch`), or add any `.onnx` by picking or dropping it: it is recognised by hash or described from its shape, shows its licence terms and training-data note, runs a self-test, and installs only after an "I accept" box; an installed model is chosen and recognition switched on at once (the newest wins, each model keeps its own embedding cache). Non-commercial models are add-by-file only, never offered for download. Suggestions of names run on the shared pure-Rust CPU interpreter (`crates/faces/src/net.rs`, `crates/faces/src/runtime.rs`; bounded im2col/GEMM, checked ONNX shapes/operators; no external inference runtime; 40 public crops agree within 2.1e-6, one-thread SFace 34–36 ms / AuraFace 233–252 ms, see docs/faces.md) in a background worker and are never applied automatically. Thresholds are starting points calibrated on busts, not yet on live faces; the Recognise faces switch is off until a recognition model is chosen and installed (`faces.enable {enabled: true}` refuses otherwise; removing the last recogniser switches it off), issue #678 |
+| LR-PREF-PEOPLE | Face recognition | P2 | 🟡 | `cmd:faces.enable`, `cmd:faces.models.list`, `cmd:faces.models.inspect`, `cmd:faces.models.install`, `cmd:faces.models.download`, `cmd:faces.models.downloads`, `cmd:faces.models.downloadCancel`, `cmd:faces.models.remove`, `cmd:faces.models.select`, `cmd:dialog.faceModel`, `crates/faces/src/lib.rs`, `crates/ui-egui/src/panels/faces.rs` | Settings ▸ Faces: an off-by-default toggle and the face model list. Models are opt-in and never bundled, the 232 KB YuNet detector included. Press Download (terms first; then a pinned address, size and SHA-256 checked, fetched over pure-Rust https with `lightcraft-fetch`), or add any `.onnx` by picking or dropping it: it is recognised by hash or described from its shape, shows its licence terms and training-data note, runs a self-test, and installs only after an "I accept" box; an installed model is chosen and recognition switched on at once (the newest wins, each model keeps its own embedding cache). Non-commercial models are add-by-file only, never offered for download. Suggestions of names run on the shared pure-Rust CPU interpreter (`crates/faces/src/net.rs`, `crates/faces/src/runtime.rs`; bounded im2col/GEMM, checked ONNX shapes/operators; no external inference runtime; 40 public crops agree within 2.1e-6, one-thread SFace 34–36 ms / AuraFace 233–252 ms, see docs/faces.md) in a background worker and are never applied automatically. Thresholds are starting points calibrated on busts, not yet on live faces
| LR-PREF-WATERMARK | Watermark settings | P1 | ✅ | `cmd:export.savePreset`, `crates/ui-egui/src/panels/dialogs.rs` | set in the Export dialog; kept with Export with Previous and in saved export presets |
| LR-PREF-SHORTCUTS | Shortcut customisation | — | ✅ | `cmd:app.setShortcut`, `cmd:app.resetShortcuts`, `crates/ui-egui/src/panels/keymap.rs` | an extra (the reference app has no keymap editor): Help ▸ Keyboard Shortcuts (⌘/) lists every command; click a shortcut and press the new keys (Esc cancels), × removes, ↺ restores, Reset All; a key another command had moves over; saved in `ui.json`; native menu accelerators follow. Rating/label digits and secondary keys are listed read-only and yield to a key given to a command |
| LR-PREF-TECHPREVIEW | Early-access toggles | P2 | ⬜ | | |
@@@ -691,10 -683,11 +691,11 @@@ From `08-lightroom-classic-extras.md` (
| LRC-LIB-SURVEY | Survey view | P2 | ✅ | `cmd:view.survey` | N |
| LRC-LIB-REFVIEW | Reference view | P2 | ✅ | `cmd:view.reference`, `cmd:photo.setReference`, `crates/ui-egui/src/panels/compare.rs` (`show_reference`) | View ▸ Reference View (⇧R): the reference photo beside the active one (edited with the Edit panel); photo menu ▸ Set as Reference Photo |
| LRC-LIB-CATALOG-PANEL | Catalog sets | P1 | ✅ | `cmd:library.source` (`missing`) | all, recently added, picks, recently deleted, missing photos (when any) |
-| LRC-LIB-CATALOG-IMPORT | Native Lightroom Classic catalog import | P1 | 🟡 | `cmd:library.inspectLightroom`, `cmd:library.importLightroom`, `crates/engine/src/lightroom_catalog.rs`, `docs/lightroom-catalog-import.md` | read-only `.lrcat` plus committed WAL pages, in-tree read-only Rust SQLite B-tree reader; background inspection/import with progress/cancellation, per-open library identity checks; originals in place, ratings/flags/labels, XMP, hierarchical keywords, collection sets/regular collections, virtual copies, mapped develop settings; stable reimport identities, undo, missing-file placeholders, existing edits preserved. Best-effort deduplicated recovery archives retain settings/history/snapshots/collection rules (32 MiB each, eight archives/128 MiB aggregate); archive limits/write failures and optional-table limits warn without blocking photo import; unrelated unsupported tables and opaque SQL BLOBs skipped. Custom white balance on relative-WB raws (`RAW` in Lightroom's terms) stays As Shot and is reported, since the catalog keeps no as-shot white to shift from (issue #510). Adobe rendering, AI data and native history replay remain incomplete; no writes to Lightroom catalogs. Open Library given a Lightroom catalog folder, an `.lrdata` / `.lrcat-data` folder or the `.lrcat` makes no library there and offers this import with the catalog found (`cmd:app.openLibrary`, `crates/engine/src/lightroom_folder.rs`; issue #891) |
+| LRC-LIB-CATALOG-IMPORT | Native Lightroom Classic catalog import | P1 | 🟡 | `cmd:library.inspectLightroom`, `cmd:library.importLightroom`, `crates/engine/src/lightroom_catalog.rs`, `docs/lightroom-catalog-import.md` | read-only `.lrcat` plus committed WAL pages, in-tree read-only Rust SQLite B-tree reader; background inspection/import with progress/cancellation, per-open library identity checks; originals in place, ratings/flags/labels, XMP, hierarchical keywords, collection sets/regular collections, virtual copies, mapped develop settings; stable reimport identities, undo, missing-file placeholders, a root folder not found at its recorded path looked up relative to the catalog (Lightroom's `relativePathFromCatalog`, so a project folder copied from another computer stays linked; reported as a warning), existing edits preserved. Best-effort deduplicated recovery archives retain settings/history/snapshots/collection rules (32 MiB each, eight archives/128 MiB aggregate); archive limits/write failures and optional-table limits warn without blocking photo import; unrelated unsupported tables and opaque SQL BLOBs skipped. Custom white balance on relative-WB raws (`RAW` in Lightroom's terms) stays As Shot and is reported, since the catalog keeps no as-shot white to shift from (issue #510). Adobe rendering, AI data and native history replay remain incomplete; no writes to Lightroom catalogs. Open Library given a Lightroom catalog folder, an `.lrdata` / `.lrcat-data` folder or the `.lrcat` makes no library there and offers this import with the catalog found (`cmd:app.openLibrary`, `crates/engine/src/lightroom_folder.rs`; issue #891) |
| LRC-LIB-CATALOG-LOCK | Catalog open in one program at a time | P1 | ✅ | `cmd:app.openLibrary`, `crates/catalog/src/lock.rs`, `crates/engine/src/library.rs` (`open_library`) | exclusive OS lock on `catalog.lock` for the session (app and `lightcraft-cli --library`); a second opener is refused with who has it (`catalog.lock.owner`: program, process, computer); released by the OS on a crash, so never stale; file systems without locks open unprotected with a warning (the app's notices, `library.info` → `settingsWarnings`, and the CLI's stderr; issue #171); no read-only mode; the browser build (OPFS) has no guard across tabs yet. A library that can't be opened at launch (locked, unreadable, newer format, drive missing) shows a window — Try Again, Choose Another Library…, Continue Without Saving (then a banner; nothing written), Quit — instead of a silent demo session (`crates/ui-egui/src/panels/library_problem.rs`); the lock is released explicitly when the library closes, not by letting its file handle close, so a program another thread is starting at that moment (which holds a copy of every file handle until it is launched) cannot keep the library "already open" for a moment (issue #680) |
+ | LRC-LIB-CATALOG-SWITCH | New / Open Recent catalog, catalog name shown | P1 | ✅ | `cmd:app.newLibrary`, `cmd:app.openLibrary`, `cmd:app.recentLibraries`, `cmd:app.clearRecentLibraries`, `crates/ui-egui/src/panels/settings.rs`, `crates/ui-egui/src/panels/left.rs` | File ▸ New Library… (name, then location), File ▸ Open Recent Library (last 8; missing ones greyed out, dropped when opened; Clear), the open library's name under My Photos and in the window title (issue #902); a library that can't be opened leaves the current one open |
| LRC-LIB-FOLDERS | Disk folder tree | P1 | ✅ | `cmd:library.browse`, `cmd:folder.rename`, `cmd:folder.move`, `crates/ui-egui/src/panels/left.rs` (`local_section`, `folder_tree`) | standard places + the browsed folder + Browse Folder…, each an expandable tree of subfolders, breadcrumb navigation; context menu: Rename Folder…, Move Folder To…, Show in Finder (on disk, photos relinked; one undo step each: undo / redo move the folder back and forth, refused when the destination is taken) |
- | LRC-LIB-LIBFOLDERS | Library folders | P1 | ✅ | `cmd:library.folders`, `cmd:library.source` (`libraryFolder`), `cmd:library.filter` (`libraryFolder`), `cmd:library.removeFolder`, `cmd:folder.rename`, `cmd:folder.move`, `cmd:folder.label`, `cmd:folder.scanChanges`, `cmd:folder.synchronize`, `crates/catalog/src/folders.rs`, `crates/engine/src/sync.rs`, `crates/ui-egui/src/sync.rs`, `crates/ui-egui/src/panels/left.rs` (`folders_section`, `folder_menu_for_library`, `row_menu`), `crates/ui-egui/src/tests_panels.rs` | sidebar Folders: the folders the library's photos were imported from, with photo counts (subfolders included), as another way to explore the library next to By Date and Keywords; Local stays the way to browse any folder on disk. Each disk is a row of its own and starts open: a drive letter, a Windows share (`\\server\share`, `\\?\UNC\…`, `\\wsl$\…`), a macOS share or disk (`/Volumes/tokyo`), a Linux mount (`/media`, `/run/media`, `/mnt`, gvfs `smb-share:…`, `/net/<host>`), NFS (`/Network/Servers/<host>`), else “This Computer” — told apart from the stored paths alone, so an offline share lists like a mounted one and the sidebar never waits on a network. Only folders that hold imported photos are listed (browsed, deleted and demo photos don't count); every folder is a row of its own (`Users` → `me` → `Pictures`), and a folder that holds nothing itself and leads to one folder starts open; every level indents one step more than its parent however deep it goes: the whole sidebar (Albums, Local, By Date, Folders, Keywords) scrolls sideways when its widest row is wider than the panel (rows are measured one frame behind; Create Album and the counts stay at the visible edge); a name that does not fit ends in an ellipsis at the count (the full name on hover; a row asks for room for at most 140 pt of its name, so depth, not one long name, makes the sidebar scroll), as does the grid title; selection and hover bars end at the panel's edge; click makes the folder the source, like an album or a Local folder (its photos and those of the folders inside it fill the grid, titled “photos/travel”; the filter bar narrows it further; `library.source` `libraryFolder` + `path`; kept with the library's view), and its row is always opened into view; the shown folder follows a rename or move and their undo (engine-tested; the sidebar test covers rename), is dropped back to All Photos when it is removed or no longer holds a photo, and a smart album made from the view keeps it, also when its rules are edited (the editor has no folder field). Only a folder that shows exactly its own photos can be shown (not the startup disk, not `/Volumes`-like folders above disks, not an empty one). A row that would cover other disks' photos too (the startup disk, `/Volumes`, `/mnt`…) only opens. Right-click (row or triangle): Rename Folder…, Move Folder To…, Show in Finder (on disk, photos relinked, as in Local), Set Color Label ▸ (the five colours with their custom names, None, Edit Label Names…; `folder.label`, one undo step; the row shows the label's dot before its count and says it with its name; kept in the catalog as a folder record under the folder's identity, so it follows Rename / Move and their undo and redo, the folders inside going along), Synchronize Folder… (the dialog opens at once and scans the folder and the folders inside it on a worker thread — the look for new files beside parallel checks of the library's photos — then offers Import new photos (checked; files only browsed in Local count as new), Relink photos whose file was renamed or moved within the folder (checked; matched by content — a Duplicate's too — or, for a photo with no hash on record such as one from a Lightroom catalog, by file size and dimensions when exactly one file agrees), Remove missing photos from the library (to Recently Deleted) and Read metadata updates from XMP sidecars (saved after the photo came in or was last edited here, and saying something the library doesn't; the sidecar wins), with counts and skipped duplicates / unreadable files; `folder.scanChanges` / `folder.synchronize`, which acts on exactly the scan shown — a scan whose folder's photos changed meanwhile is refused and made again in the background — and is one undo step, also with a full history; a folder that isn't there (an unplugged disk) is reported as such, not as every photo missing; a whole disk or a folder holding disks needs `disk: true`; Esc stops the scan; Synchronize hands everything to a worker thread — the import, the checks that moved and missing files are still as found, the sidecar reads — and commits its steps between frames, shown in the activity stack with ✕ to stop, so no file is touched on the UI thread) and Remove from Library… (asks; moves the folder's photos to Recently Deleted, one undo step, no file touched); a disk row (not the startup disk) offers Set Color Label ▸, Synchronize Folder… and Remove Disk from Library… (the command needs `disk: true` for a whole disk or a folder spanning several). Limits: names are compared as written (macOS `/Volumes/tokyo` vs `/Volumes/TOKYO` are two disks; `/Volumes/Macintosh HD/…` and `/…` two rows); no disk capacity / online status; no “include subfolders” switch (a folder always includes the ones inside it); creating a folder and moving photos between folders are not here; folders can't be filtered or sorted by label, and a label stays with the old path when the folder is moved outside LightCraft (Find Missing relinks photos, not folder records); Synchronize has no “show import dialog first” or “show missing photos” option, and only knows when a photo came in or was last developed here: a rating, label or metadata change made here (auto-write off) after another app saved the sidecar is listed as an update, and reading it restores the sidecar's older value (reading is never the default); the walk for new files isn't cancelled midway and its depth/entry limits are only logged |
+ | LRC-LIB-LIBFOLDERS | Library folders | P1 | ✅ | `cmd:library.folders`, `cmd:library.source` (`libraryFolder`), `cmd:library.filter` (`libraryFolder`), `cmd:library.removeFolder`, `cmd:folder.rename`, `cmd:folder.move`, `cmd:folder.label`, `cmd:folder.create`, `cmd:photo.moveToFolder`, `cmd:folder.scanChanges`, `cmd:folder.synchronize`, `crates/catalog/src/folders.rs`, `crates/engine/src/sync.rs`, `crates/ui-egui/src/sync.rs`, `crates/ui-egui/src/panels/left.rs` (`folders_section`, `folder_menu_for_library`, `row_menu`), `crates/ui-egui/src/tests_panels.rs` | sidebar Folders: the folders the library's photos were imported from, with photo counts (subfolders included), as another way to explore the library next to By Date and Keywords; Local stays the way to browse any folder on disk. Each disk is a row of its own and starts open: a drive letter, a Windows share (`\\server\share`, `\\?\UNC\…`, `\\wsl$\…`), a macOS share or disk (`/Volumes/tokyo`), a Linux mount (`/media`, `/run/media`, `/mnt`, gvfs `smb-share:…`, `/net/<host>`), NFS (`/Network/Servers/<host>`), else “This Computer” — told apart from the stored paths alone, so an offline share lists like a mounted one and the sidebar never waits on a network. Only folders that hold imported photos are listed (browsed, deleted and demo photos don't count); every folder is a row of its own (`Users` → `me` → `Pictures`), and a folder that holds nothing itself and leads to one folder starts open; every level indents one step more than its parent however deep it goes: the whole sidebar (Albums, Local, By Date, Folders, Keywords) scrolls sideways when its widest row is wider than the panel (rows are measured one frame behind; Create Album and the counts stay at the visible edge); a name that does not fit ends in an ellipsis at the count (the full name on hover; a row asks for room for at most 140 pt of its name, so depth, not one long name, makes the sidebar scroll), as does the grid title; selection and hover bars end at the panel's edge; click makes the folder the source, like an album or a Local folder (its photos and those of the folders inside it fill the grid, titled “photos/travel”; the filter bar narrows it further; `library.source` `libraryFolder` + `path`; kept with the library's view), and its row is always opened into view; the shown folder follows a rename or move and their undo (engine-tested; the sidebar test covers rename), is dropped back to All Photos when it is removed or no longer holds a photo, and a smart album made from the view keeps it, also when its rules are edited (the editor has no folder field). Only a folder that shows exactly its own photos can be shown (not the startup disk, not `/Volumes`-like folders above disks, not an empty one). A row that would cover other disks' photos too (the startup disk, `/Volumes`, `/mnt`…) only opens. Right-click (row or triangle): Rename Folder…, Move Folder To…, New Folder on Disk… (`folder.create`; one undo step, undo removes it while empty), Move Selected Photos Here (`photo.moveToFolder`, also *Move to Folder…* in the photo context menu: files and XMP sidecars move, virtual copies follow, across volumes copied and verified before the source goes, a name taken in the destination refuses the whole move, one undo step), Show in Finder (on disk, photos relinked, as in Local), Set Color Label ▸ (the five colours with their custom names, None, Edit Label Names…; `folder.label`, one undo step; the row shows the label's dot before its count and says it with its name; kept in the catalog as a folder record under the folder's identity, so it follows Rename / Move and their undo and redo, the folders inside going along), Synchronize Folder… (the dialog opens at once and scans the folder and the folders inside it on a worker thread — the look for new files beside parallel checks of the library's photos — then offers Import new photos (checked; files only browsed in Local count as new), Relink photos whose file was renamed or moved within the folder (checked; matched by content — a Duplicate's too — or, for a photo with no hash on record such as one from a Lightroom catalog, by file size and dimensions when exactly one file agrees), Remove missing photos from the library (to Recently Deleted) and Read metadata updates from XMP sidecars (saved after the photo came in or was last edited here, and saying something the library doesn't; the sidecar wins), with counts and skipped duplicates / unreadable files; `folder.scanChanges` / `folder.synchronize`, which acts on exactly the scan shown — a scan whose folder's photos changed meanwhile is refused and made again in the background — and is one undo step, also with a full history; a folder that isn't there (an unplugged disk) is reported as such, not as every photo missing; a whole disk or a folder holding disks needs `disk: true`; Esc stops the scan; Synchronize hands everything to a worker thread — the import, the checks that moved and missing files are still as found, the sidecar reads — and commits its steps between frames, shown in the activity stack with ✕ to stop, so no file is touched on the UI thread) and Remove from Library… (asks; moves the folder's photos to Recently Deleted, one undo step, no file touched); a disk row (not the startup disk) offers Set Color Label ▸, Synchronize Folder… and Remove Disk from Library… (the command needs `disk: true` for a whole disk or a folder spanning several). Limits: names are compared as written (macOS `/Volumes/tokyo` vs `/Volumes/TOKYO` are two disks; `/Volumes/Macintosh HD/…` and `/…` two rows); no disk capacity / online status; no “include subfolders” switch (a folder always includes the ones inside it); photos can't yet be dragged onto a folder row (use the menus); a name clash on moving photos is refused rather than renamed -1, -2; folders can't be filtered or sorted by label, and a label stays with the old path when the folder is moved outside LightCraft (Find Missing relinks photos, not folder records); Synchronize has no “show import dialog first” or “show missing photos” option, and only knows when a photo came in or was last developed here: a rating, label or metadata change made here (auto-write off) after another app saved the sidecar is listed as an update, and reading it restores the sidecar's older value (reading is never the default); the walk for new files isn't cancelled midway and its depth/entry limits are only logged |
| LRC-LIB-COLLECTIONS | Collections & sets | P1 | ✅ | `cmd:album.create`, `cmd:album.createSmart`, `cmd:album.toggleTarget`, `cmd:album.setTarget`, `cmd:album.clearQuick` | albums + folders (sets), smart albums (rule editor; rules incl. File Path — the whole string, either separator, case-insensitive), Quick Collection and target album (B in the grids adds / removes the selection; album menu ▸ Set as Target Album; the target is marked +) |
| LRC-LIB-SMARTCOLL | Smart-collection rules | P1 | ✅ | `cmd:album.createSmart`, `cmd:album.setRules`, `cmd:album.ruleFields`, `cmd:dialog.smartAlbum`, `crates/catalog/src/rules.rs`, `crates/ui-egui/src/panels/rules_editor.rs` | rule editor: match all / any / none, nested groups (⌥+ or + Group), 47 fields. The field menu shows Rating, Pick Flag, Color Label and Any Searchable Text, then one submenu per group (`FIELD_GROUPS`; `album.ruleFields` reports each field's `group`): Source (album — a plain or a smart album, so one smart album can include or exclude another; a rule that would make an album include itself, directly or through others, is refused, and a loop saved anyway can't recurse: inside it, the album being evaluated counts as holding no photos, so an "isn't" rule on it matches every photo, and the sidebar marks it ⚠ —, virtual copy, copy name, in a stack), File (filename, extension, file path, type, format, video duration), Date (capture / import / edit), Keywords & People (keywords, keyword count, people on named faces, people count), Description (title, caption, alt text, creator, copyright, copyright status), Camera Info (camera, lens, focal length, aperture, shutter speed as 1/250, ISO), Location (any, city, state / province, country, GPS), Size (long / short edge, aspect ratio and megapixels, all of the photo as shown: oriented and cropped), Develop (has edits, cropped, treatment), Assisted Culling (focus, best of similar shots); text / number / date / in-the-last operators; live match count; also usable as a library filter (`ruleSet`). Missing vs Classic: develop preset, flash, exposure bias, camera serial, colour profile / bit depth, IPTC Job, smart-preview status. Choice values read as words in every language (Public Domain, Black & White; `album.ruleFields` gives `choiceLabels`), while rules store the ids; yes/no fields read Yes / No and take `true`/`false`, `"yes"`/`"no"`, `"true"`/`"false"` or 1/0. Every value is checked against its field (`RuleSet::check`): numbers (rating 0–5), shutter speeds, dates (`2026`, `2026-08`, `2026-08-14`, then `T10`, `T10:00` or `T10:00:00`, a space working as the `T`, and after whole seconds a fraction and a time zone as imported capture times carry them (`.250+02:00`); no 30 February; `rules::rule_date` is the one reading for the check and the matcher; each date field has a calendar picker, `crates/ui-egui/src/date_picker.rs`, that picks a year, a month or a day and keeps a "between" in order), between = two bounds in order, in the last = more than 0 of a known unit, choices (ids, the flag's picked / rejected, a colour label's custom name), text with something to look for, an existing album (plain or smart, not a folder), no empty groups; each problem names its rule (`rule 2.1: no rating 0–5 is 9`), and album.createSmart / setRules / library.filter refuse them. The editor marks each bad rule under its row (inside groups too), keeps OK disabled until they are fixed (and its confirm refuses them before renaming anything), picks an Album rule's album with an album picker (`crates/ui-egui/src/album_picker.rs`: the sidebar's tree with folders, or type part of a name or folder; ↑ / ↓ / Enter; albums that can't be picked shown greyed with the reason) (is / isn't; a folder can't be tested), and drawing it never changes a rule: a rating of 9, "in the last 0 days" or 20,000 days, a "between" that isn't a pair all stay as stored (and are marked where they can't match) until edited. Album rules saved with an old operator (≥, between) are read as the "isn't" they always meant (`RuleSet::upgrade`). Saved smart albums whose rules no longer check are marked ⚠ in the sidebar (tooltip: what to fix; `albums.list` `problems`, `Catalog::smart_album_problems`); the name and rules of an album are saved as one undo step (`album.setRules` `name`). Problems read as the field's name and the issue in the editor's language (“Titel: braucht einen Suchbegriff”; `Problem::issue` / `field`, `Issue::text`, translated in every locale), while commands keep the English `rule 2.1: …` message for agents |
| LRC-LIB-PUBLISH | Publish services | P2 | ⬜ | | |
diff --cc docs/whats-new.md
index f79d265b5,7c8475552..f96328396
--- a/docs/whats-new.md
+++ b/docs/whats-new.md
@@@ -21,45 -40,14 +40,53 @@@
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`.
+
+### Kelvin white balance for raws whose camera has colour matrices
+- Raws from the 52 camera models whose colour matrices LightCraft has measured (Sony ILCE-7M3, ILCE-7M4, ILCE-7RM3,
+ Nikon D850, Canon EOS 5D Mark III and others) now show white balance in Kelvin, as a DNG does and as Lightroom
+ does: As Shot reads the file's white (an ILCE-7M3 sample: 4268 K / +7), the Temp slider runs 2000–50000 K and the
+ Daylight, Cloudy, Shade, Tungsten, Fluorescent and Flash presets set real temperatures (issue #730). The matrices
+ only convert between the camera's multipliers and Kelvin; the colour look is what it was.
+- Nothing already edited changes: a Custom white balance set on the old relative scale renders pixel for pixel as
+ before, and becomes the Kelvin value with the same look the next time it is edited. A photo imported earlier shows
+ its real As Shot temperature once the file is opened (or Reload reads it).
+- Lightroom's `crs:Temperature` for these raws is read as the Kelvin it is (sidecars, Lightroom catalogs, presets);
+ raws of other cameras keep the as-shot shift of issue #510. The two Kelvin scales come from different matrices and
+ differ by about 7–10 % on the ILCE-7M3; which one is off is still open.
+
+### Fujifilm lens corrections
+- Fujifilm RAFs from 59 camera models now get the lens correction the camera stores in the file: distortion (with the
+ camera's own zoom to fill the frame) and vignetting, as with Panasonic and Sony files. The Optics profile controls
+ adjust or switch them off, and DNG export keeps them. Lateral chromatic aberration data is not applied: our
+ demosaic already lines the colour planes up. Details and measurements: `docs/fuji-lens-corrections.md`.
+
+ ### Appearance
+ - Settings ▸ Interface ▸ Appearance Mode: Sync with System, Dark Mode or Light Mode, above a light
+ and a dark theme card, each previewing its theme (dark: Charcoal, the look so far, or Midnight;
+ light: Silver or Paper). New and existing installs stay dark; following the system is opt-in.
+ - The top bar's appearance button cycles Auto, Light, Dark (a monitor, sun or moon), and View ▸
+ Appearance lists the modes and themes. On Linux, Auto follows the desktop portal's colour scheme
+ as it changes, without polling.
+
### Activity stack
- Long-running tasks show in one place, top left under the top bar, as in Lightroom Classic (issue #345): imports and
folder scans, exports (and the contact sheet PDF), Synchronize Folder, Build / Smart Previews, Lightroom catalog import, Photo Merge, model downloads, the face scan,