Skip to content

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

Merge PR #1761 (rebased)

Brandon Thomas7c5f36bd8c65
diff --cc crates/ui-egui/src/panels/right.rs
index 685f4bc33,69a35ab1f..02fc8b670
--- a/crates/ui-egui/src/panels/right.rs
+++ b/crates/ui-egui/src/panels/right.rs
@@@ -32,23 -30,15 +32,28 @@@ pub fn show(app: &mut LightcraftApp, ui
return;
}
let r = ui.max_rect();
- super::empty_message(ui, r, "No photo selected", "Select a photo to edit");
+ // every tab (Edit, Info, Versions…) says it: nothing to show until photos come in
+ if super::empty_library::shown(&app.session) {
+ super::empty_message(ui, r, "No photos yet", "Import photos to get started");
+ } else {
+ super::empty_message(ui, r, "No photo selected", "Select a photo to edit");
+ }
return;
};
- egui::ScrollArea::vertical().id_salt("right-scroll").auto_shrink([false, false]).show(ui, |ui| {
+ let mut area = egui::ScrollArea::vertical().id_salt("right-scroll").auto_shrink([false, false]);
+ if let Some(offset) = held {
+ area = area.vertical_scroll_offset(offset);
+ }
+ // (where the pass starts: by its end egui may have pulled a shrunken panel's offset back)
+ let area_id = ui.data(|d| d.get_temp::<egui::Id>(egui::Id::new(AREA)));
+ let start = held.or_else(|| area_id.and_then(|a| egui::scroll_area::State::load(ui.ctx(), a)).map(|s| s.offset.y));
+ ui.data_mut(|d| match start {
+ Some(o) => {
+ d.insert_temp(egui::Id::new(OFFSET), o);
+ }
+ None => d.remove::<f32>(egui::Id::new(OFFSET)),
+ });
+ let scrolled = area.show(ui, |ui| {
ui.spacing_mut().item_spacing.y = 0.0;
match app.ui.right {
RightPanel::Edit => super::edit::show(app, ui, id),
diff --cc docs/whats-new.md
index 3404dc978,81c4a5b5f..847cd6c71
--- a/docs/whats-new.md
+++ b/docs/whats-new.md
@@@ -111,13 -117,13 +111,20 @@@
"Canon CRX adaptive QP value 172" or "175". They now decode from the sensor data. Photos imported before this
switch over with Photo ▸ Reload from Disk.
+### Nikon raws without coloured edge bars
+- Raws from older Nikon bodies no longer show a thin coloured or dark bar along one edge (the right edge, or the top
+ of a portrait photo): masked sensor columns were being developed as part of the picture (issues #976, #914,
+ #1236). The D7000, D5100, D800, D800E, Df, D4, D3, D3S, D700, D300, D300S, D600, D610, D810, D4S, D5600,
+ Coolpix A, D3000, D40X, D60, D80, D2Xs, D200, D3200, D3100, D5000, D40, D50, D70, D70s and Nikon 1 V1 now show
+ the area the camera itself frames, a few pixels smaller than before.
+
+ ### An empty library leads to Import
+ - A library with no photos now opens on the Photo Grid with the sidebar (Square Grid stays as it is), instead of a
+ Detail view that pointed at an empty grid. The grid and Detail view offer Import Photos… and, in the desktop app,
+ Import Lightroom Catalog… as buttons, and say that photos (and, in the desktop app, folders) can be dropped into
+ the window. The shortcut they show is the one Import Photos… has now.
+ - The top bar has an Import button, beside Export, in every library.
+
### Hard-edged Heal and Clone spots
- A spot with Feather at 0 no longer draws black pixels exactly on its radius. This also fixes spots at 0% Opacity
changing pixels along their edge. The hard edge now leaves pixels on the radius unchanged.