Skip to content

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

Merge branch 'main' into feat/loupe-info-briefly

dotCooCoo2d5ce5382b47
diff --cc crates/ui-egui/locales/it.json
index 4726742de,a75448fbb..33abc600c
--- a/crates/ui-egui/locales/it.json
+++ b/crates/ui-egui/locales/it.json
@@@ -2344,7 -2336,25 +2336,26 @@@
"Loupe Info 1": "Info lente 1",
"Loupe Info 2": "Info lente 2",
"Use Defaults": "Usa predefiniti",
+ "Show briefly when photo changes": "Mostra brevemente al cambio di foto",
"Camera & Lens": "Fotocamera e obiettivo",
- "View → View Options chooses the lines Info 1 and Info 2 show.": "Visualizza → Opzioni di visualizzazione sceglie le righe di Info 1 e Info 2."
+ "View → View Options chooses the lines Info 1 and Info 2 show.": "Visualizza → Opzioni di visualizzazione sceglie le righe di Info 1 e Info 2.",
+ "Before/After Side by Side": "Prima/Dopo affiancati",
+ "Clipping": "Tagli tonali",
+ "Mask Overlay": "Sovrapposizione maschera",
+ "Mask Pins": "Punti delle maschere",
+ "Photo Counts": "Numero di foto",
+ "Focus Point": "Punto di messa a fuoco",
+ "All Mask Overlays": "Tutte le sovrapposizioni maschera",
+ "Layout Image": "Immagine di layout",
+ "Detail View": "Vista dettaglio",
+ "Edit Panel": "Pannello Modifica",
+ "Close the open dialog, then drop the files again": "Chiudi la finestra di dialogo aperta, poi rilascia di nuovo i file",
+ "Close the open dialog to drop files here": "Chiudi la finestra di dialogo aperta per rilasciare qui i file",
+ "Drop to open the face model": "Rilascia per aprire il modello dei volti",
+ "Drop to import": "Rilascia per importare",
+ "Dropped Files": "File rilasciati",
+ "Import dropped files without review": "Importa i file rilasciati senza revisione",
+ "An import is running": "Un'importazione è in corso",
+ "An import is running. Drop photos when it has finished": "Un'importazione è in corso. Trascina le foto quando è finita",
+ "Finish Lightroom catalog import before adding photos": "Termina l'importazione del catalogo Lightroom prima di aggiungere foto"
}
diff --cc crates/ui-egui/src/panels/detail.rs
index 20a39a2fa,444ef7e73..509a1c4f1
--- a/crates/ui-egui/src/panels/detail.rs
+++ b/crates/ui-egui/src/panels/detail.rs
@@@ -340,32 -361,16 +361,35 @@@ fn animated_rect(ctx: &egui::Context, a
r
}
+/// View Options' Show Briefly When Photo Changes: note when the loupe changes to photo `id`, and
+/// whether the brief info overlay shows this frame (until [`BRIEF_INFO_SECS`] have passed; a
+/// repaint is asked for then, so it hides without input).
+///
+/// [`BRIEF_INFO_SECS`]: crate::state::BRIEF_INFO_SECS
+fn brief_info(app: &mut LightcraftApp, ctx: &egui::Context, id: PhotoId) {
+ let now = ctx.input(|i| i.time);
+ let brief = &mut app.ui.brief_info;
+ if brief.photo != Some(id) {
+ brief.photo = Some(id);
+ brief.since = now;
+ }
+ let left = crate::state::BRIEF_INFO_SECS - (now - brief.since);
+ brief.shown = app.ui.settings.loupe_info.briefly != crate::state::InfoOverlay::Off && left > 0.0;
+ if brief.shown {
+ ctx.request_repaint_after(std::time::Duration::from_secs_f64(left));
+ }
+}
+
- /// Whether an overlay can be rendered on a region tile without changing what the tile means.
- /// Mask overlays (one mask, or every visible mask at once) are evaluated from the same mask
- /// alphas as the full render; the other diagnostic overlays either need whole-frame context or
- /// deliberately replace the loupe.
+ /// Whether an overlay can be rendered on a region tile without changing what the tile means. Mask (one or all)
+ /// overlays are evaluated from the same mask alpha as the full render; Point Color range and Visualize
+ /// HDR act pixel by pixel (the HDR rendition is rendered for the same window); Visualize Spots' high
+ /// pass reads about 3σ = 1.8 % of the long edge, inside the window's margin
+ /// ([`crate::region::margin_for`]: 4.5 %). Each is tested equal to the whole-frame render's pixels.
pub(crate) fn overlay_supports_window(overlay: lightcraft_pipeline::Overlay) -> bool {
- use lightcraft_pipeline::Overlay;
- matches!(overlay, Overlay::None | Overlay::Mask { .. } | Overlay::AllMasks { .. })
+ use lightcraft_pipeline::Overlay as O;
+ match overlay {
+ O::None | O::Mask { .. } | O::AllMasks { .. } | O::PointColorRange(_) | O::HdrRange | O::Spots(_) => true,
+ }
}
/// What a window render of the loupe needs to know about the view it belongs to.
diff --cc docs/parity-checklist.md
index ed14924fa,d059494ce..5d71b3b80
--- a/docs/parity-checklist.md
+++ b/docs/parity-checklist.md
@@@ -730,9 -730,10 +730,10 @@@ From `08-lightroom-classic-extras.md` (
| LRC-DEV-TAT | Targeted adjustment tools | P1 | ✅ | `cmd:develop.targeted` (`target`: curve / hue / sat / lum) | |
| LRC-DEV-DEFAULTS | Per-camera raw defaults | P1 | ✅ | `cmd:library.preferences` (`camera`, `import.perCamera`), `crates/ui-egui/src/panels/settings.rs` | Settings → Import: raw default and per-camera presets |
| LRC-DEV-PROCESS | Process versions, Update to Current Process | P1 | ✅ | `cmd:develop.updateProcess`, `cmd:develop.reset`, `cmd:develop.get`, `crates/develop/src/settings.rs`, `crates/pipeline/src/finish.rs`, `docs/process-versions.md` | each photo records the rendering process its settings are interpreted by: settings saved before this existed load as V1, new photos and Reset get the latest, virtual copies inherit, copy / paste / sync / presets keep each photo's own; Photo ▸ Update to Current Process (one undo step, enabled while a selected photo is on an older process); a number from a newer LightCraft is kept and renders with the newest known process. Only V1 exists so far: this is what lets a retuned default tone (#146) or stronger Light sliders (#196) ship without changing existing edits |
-| LRC-DEV-VIEWOPTIONS | Develop view options | P2 | 🟡 | `cmd:view.viewOptions`, `crates/ui-egui/src/panels/settings.rs` (`view_options`) | View ▸ View Options… (⌘J), the Loupe View part: Show Info Overlay with Info 1 / Info 2, and the three lines of each (none, file name, capture date, dimensions, exposure, camera, lens, camera + lens) with Use Defaults; applied as they change, saved with the app settings; `view.viewOptions {info1, info2}` sets them for agents. Not yet: the Grid View tab, more fields (ratings, metadata, copy name), "show briefly when the photo changes", the loading-message and video-frame options |
+| LRC-DEV-VIEWOPTIONS | Develop view options | P2 | 🟡 | `cmd:view.viewOptions`, `crates/ui-egui/src/panels/settings.rs` (`view_options`) | View ▸ View Options… (⌘J), the Loupe View part: Show Info Overlay with Info 1 / Info 2, and the three lines of each (none, file name, capture date, dimensions, exposure, camera, lens, camera + lens) with Use Defaults; Show Briefly When Photo Changes under each Info (one at most): with the overlay off, that Info shows for 3 s each time the loupe changes photo; applied as they change, saved with the app settings; `view.viewOptions {info1, info2, briefly}` sets them for agents. Not yet: the Grid View tab, more fields (ratings, metadata, copy name), the loading-message and video-frame options |
| LRC-DEV-LOUPEOVERLAY | Loupe overlay: layout image | P2 | 🟡 | `cmd:view.chooseLayoutImage`, `cmd:view.layoutImage`, `cmd:view.layoutImageOpacity`, `cmd:view.layoutImageMatte`, `crates/ui-egui/src/panels/layout_overlay.rs` | View ▸ Loupe Overlay: a PNG with transparency (a cover layout, a banner's safe areas) fitted and centred over the loupe photo, following zoom and pan; opacity and matte (the photo darkened outside the graphic's box) in steps; ⌥⌘O shows / hides it; read off the UI thread; saved with the UI state. Not yet: the Grid and Guides overlays, moving and resizing the layout with ⌘ held, free opacity / matte sliders |
| LRC-DEV-VIDEO | Video frame capture | P2 | ⬜ | | |
+ | LRC-DEV-HISTOGRAM-DRAG | Drag on the histogram to adjust tone regions | P2 | ✅ | `crates/ui-egui/src/panels/histogram.rs`, `crates/ui-egui/src/panels/edit.rs`, `crates/develop/src/controls.rs`, `crates/ui-egui/src/tests_histogram_drag.rs`, `cmd:develop.set`, `cmd:develop.beginInteraction`, `cmd:develop.endInteraction`, `ctl:light.blacks`, `ctl:light.shadows`, `ctl:light.exposure`, `ctl:light.highlights`, `ctl:light.whites` | five zones across the plot's width, each moving the Basic control it names: Blacks 0.00–0.15, Shadows 0.15–0.35, Exposure 0.35–0.65, Highlights 0.65–0.85, Whites 0.85–1.00; every step is a `develop.set` between `develop.beginInteraction` and `develop.endInteraction` (the sliders' own path), so the draft render follows the drag live and the whole drag lands as one undo step; the zone the press landed in stays locked for the drag, so dragging across the others changes nothing; sideways travel of the plot's width sweeps that control's whole range (Shift a tenth, as on the sliders), clamped to its spec; hovering a zone tints it and shows its value in the strip under the plot ("Exposure: +0.45 EV"), with the sideways-resize cursor; a double-click resets that zone's control to its default in one undo step; the strip under the plot (readout / EXIF) and the clipping buttons in the plot's top corners are not zones |
| LRC-MAP-VIEW | Map view | P2 | ⬜ | | |
| LRC-MAP-GEOTAG | Drag photos onto the map | P2 | ⬜ | | |
| LRC-MAP-LOCATIONS | Saved locations | P2 | ⬜ | | |