From 79fcab8e3c84d6f04e35e4e0bfe113c400680f6a Mon Sep 17 00:00:00 2001 From: Bruno-Alumn <171815746+Bruno-Alumn@users.noreply.github.com> Date: Wed, 4 Nov 2026 19:08:12 +0100 Subject: [PATCH 1/9] LR-PKG-FLATPAK: the Flatpak finds the host's cursor themes, so the pointer comes back on GNOME Wayland (#1657) Without the cursor-shape protocol (mutter 46) winit loads the pointer from an Xcursor theme itself. Inside the sandbox XCURSOR_PATH is unset and the runtime ships no cursor themes, so once a tool hides the pointer (CursorIcon::None in Crop, the brushes, the colour wheels) no pointer is ever set again. Both manifests now pass --env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons, the host's themes as Flatpak mounts them, as storytold/vectorcraft#2502 did. check-app-specific.sh asserts it next to the a11y talk-name. --- docs/whats-new.md | 5 +++++ packaging/check-app-specific.sh | 2 ++ packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml | 5 +++++ packaging/linux/flatpak/ai.storyteller.lightcraft.yml | 5 +++++ 4 files changed, 17 insertions(+) diff --git a/docs/whats-new.md b/docs/whats-new.md index ba7c55b843..aa95596361 100644 --- a/docs/whats-new.md +++ b/docs/whats-new.md @@ -2,6 +2,11 @@ ## 2026-10-30 +### The pointer stays visible in the Flatpak on GNOME Wayland +- In the Flatpak on a Wayland desktop without the cursor-shape protocol (GNOME 46, for one), the mouse pointer could + vanish for good after Crop & Rotate or a brush hid it: the sandbox couldn't see any cursor theme. The Flatpak now + points at the host's cursor themes, as VectorCraft's does (issue #1657). + ### Lens distortion correction for the Sony A7 III - Raws from the Sony A7 III (ILCE-7M3) now get the camera's own distortion correction, read from the file, like the A7R IVA's: straight lines stay straight at wide angles (the FE 16–35 F4 ZA at 16 mm shifts detail near the diff --git a/packaging/check-app-specific.sh b/packaging/check-app-specific.sh index df88fa0b5c..5a12abd338 100644 --- a/packaging/check-app-specific.sh +++ b/packaging/check-app-specific.sh @@ -19,6 +19,8 @@ for name in ("ai.storyteller.lightcraft.yml", "ai.storyteller.lightcraft.bundle. assert manifest["id"] == "ai.storyteller.lightcraft" and manifest["command"] == "lightcraft", name # Without this talk-name the sandbox hides the accessibility bus and Orca cannot see the app. assert "--talk-name=org.a11y.Bus" in manifest["finish-args"], f"{name} lost --talk-name=org.a11y.Bus" + # Without the host's cursor themes the pointer vanishes on Wayland once a tool hides it (#1657). + assert any(a.startswith("--env=XCURSOR_PATH=") and "/run/host/share/icons" in a for a in manifest["finish-args"]), f"{name} lost XCURSOR_PATH" manifests.append(manifest) for key in ("runtime", "runtime-version", "sdk", "finish-args"): assert manifests[0][key] == manifests[1][key], f"Flatpak manifests disagree on {key}" diff --git a/packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml b/packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml index 00edc2f3b6..0668038bec 100644 --- a/packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml +++ b/packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml @@ -21,6 +21,11 @@ finish-args: # Display: Wayland first; X11 only when no Wayland compositor is running. - --socket=wayland - --socket=fallback-x11 + # Cursor theme: without the cursor-shape protocol (GNOME 46, for one) winit loads the pointer + # from an Xcursor theme itself. The sandbox sets no XCURSOR_PATH and the runtime ships no cursor + # themes, so once a tool hides the pointer (Crop, brushes) it never comes back. The host's themes + # are mounted under /run/host (#1657; the same fix as storytold/vectorcraft#2502). + - --env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons # X11 shared memory (MIT-SHM). Without it the X11 fallback is slow or fails. - --share=ipc # GPU access for the wgpu renderer (Vulkan, or GL as a fallback). diff --git a/packaging/linux/flatpak/ai.storyteller.lightcraft.yml b/packaging/linux/flatpak/ai.storyteller.lightcraft.yml index 7b959e3ec7..8b0ff5599b 100644 --- a/packaging/linux/flatpak/ai.storyteller.lightcraft.yml +++ b/packaging/linux/flatpak/ai.storyteller.lightcraft.yml @@ -27,6 +27,11 @@ finish-args: # Display: Wayland first; X11 only when no Wayland compositor is running. - --socket=wayland - --socket=fallback-x11 + # Cursor theme: without the cursor-shape protocol (GNOME 46, for one) winit loads the pointer + # from an Xcursor theme itself. The sandbox sets no XCURSOR_PATH and the runtime ships no cursor + # themes, so once a tool hides the pointer (Crop, brushes) it never comes back. The host's themes + # are mounted under /run/host (#1657; the same fix as storytold/vectorcraft#2502). + - --env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons # X11 shared memory (MIT-SHM). Without it the X11 fallback is slow or fails. - --share=ipc # GPU access for the wgpu renderer (Vulkan, or GL as a fallback). From 107fca97f896c44d1a3fe5fcf6ee0c9a557b5cb2 Mon Sep 17 00:00:00 2001 From: Bruno-Alumn <171815746+Bruno-Alumn@users.noreply.github.com> Date: Fri, 6 Nov 2026 15:26:01 +0100 Subject: [PATCH 2/9] Flatpak cursor: note the Ubuntu symlinked-theme case, assert the exact XCURSOR_PATH (review) --- docs/whats-new.md | 4 +++- packaging/check-app-specific.sh | 3 ++- packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml | 2 ++ packaging/linux/flatpak/ai.storyteller.lightcraft.yml | 2 ++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/whats-new.md b/docs/whats-new.md index c0cf54db99..acfff129f0 100644 --- a/docs/whats-new.md +++ b/docs/whats-new.md @@ -71,7 +71,9 @@ ### The pointer stays visible in the Flatpak on GNOME Wayland - In the Flatpak on a Wayland desktop without the cursor-shape protocol (GNOME 46, for one), the mouse pointer could vanish for good after Crop & Rotate or a brush hid it: the sandbox couldn't see any cursor theme. The Flatpak now - points at the host's cursor themes, as VectorCraft's does (issue #1657). + points at the host's cursor themes, as VectorCraft's does (issue #1657). Where the host's default theme is a + symlink the sandbox can't follow (Ubuntu's `/etc/alternatives`), name a theme once: + `flatpak override --user --env=XCURSOR_THEME=Adwaita ai.storyteller.lightcraft`. ### Lightroom catalogs with a print inside a collection import their collections - Lightroom Classic can keep a saved print, book, slideshow or web gallery inside a plain collection, but a diff --git a/packaging/check-app-specific.sh b/packaging/check-app-specific.sh index 5a12abd338..e9b93c05c4 100644 --- a/packaging/check-app-specific.sh +++ b/packaging/check-app-specific.sh @@ -20,7 +20,8 @@ for name in ("ai.storyteller.lightcraft.yml", "ai.storyteller.lightcraft.bundle. # Without this talk-name the sandbox hides the accessibility bus and Orca cannot see the app. assert "--talk-name=org.a11y.Bus" in manifest["finish-args"], f"{name} lost --talk-name=org.a11y.Bus" # Without the host's cursor themes the pointer vanishes on Wayland once a tool hides it (#1657). - assert any(a.startswith("--env=XCURSOR_PATH=") and "/run/host/share/icons" in a for a in manifest["finish-args"]), f"{name} lost XCURSOR_PATH" + xcursor = [a for a in manifest["finish-args"] if a.startswith("--env=XCURSOR_PATH=")] + assert xcursor == ["--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons"], f"{name}: XCURSOR_PATH is {xcursor}" manifests.append(manifest) for key in ("runtime", "runtime-version", "sdk", "finish-args"): assert manifests[0][key] == manifests[1][key], f"Flatpak manifests disagree on {key}" diff --git a/packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml b/packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml index 0668038bec..d7faeae902 100644 --- a/packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml +++ b/packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml @@ -25,6 +25,8 @@ finish-args: # from an Xcursor theme itself. The sandbox sets no XCURSOR_PATH and the runtime ships no cursor # themes, so once a tool hides the pointer (Crop, brushes) it never comes back. The host's themes # are mounted under /run/host (#1657; the same fix as storytold/vectorcraft#2502). + # A host whose default theme is a symlink out of /usr/share/icons (Ubuntu's /etc/alternatives) + # still needs a theme named: flatpak override --user --env=XCURSOR_THEME=Adwaita ai.storyteller.lightcraft - --env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons # X11 shared memory (MIT-SHM). Without it the X11 fallback is slow or fails. - --share=ipc diff --git a/packaging/linux/flatpak/ai.storyteller.lightcraft.yml b/packaging/linux/flatpak/ai.storyteller.lightcraft.yml index 8b0ff5599b..ebe9bb3ade 100644 --- a/packaging/linux/flatpak/ai.storyteller.lightcraft.yml +++ b/packaging/linux/flatpak/ai.storyteller.lightcraft.yml @@ -31,6 +31,8 @@ finish-args: # from an Xcursor theme itself. The sandbox sets no XCURSOR_PATH and the runtime ships no cursor # themes, so once a tool hides the pointer (Crop, brushes) it never comes back. The host's themes # are mounted under /run/host (#1657; the same fix as storytold/vectorcraft#2502). + # A host whose default theme is a symlink out of /usr/share/icons (Ubuntu's /etc/alternatives) + # still needs a theme named: flatpak override --user --env=XCURSOR_THEME=Adwaita ai.storyteller.lightcraft - --env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons # X11 shared memory (MIT-SHM). Without it the X11 fallback is slow or fails. - --share=ipc From d980f1dcb62aaf4d5020d03c11740e26e94eeb38 Mon Sep 17 00:00:00 2001 From: Bruno-Alumn <171815746+Bruno-Alumn@users.noreply.github.com> Date: Tue, 10 Nov 2026 01:29:56 +0100 Subject: [PATCH 3/9] Flatpak cursor: keep ~/.icons in XCURSOR_PATH; say which theme to name (review) XCURSOR_PATH replaces xcursor's default list, which starts with ~/.icons, so a theme there was no longer looked for even when that folder is granted. It is first again (xcursor expands ~). The changelog says any theme installed on the host can stand in for Adwaita, and how to grant ~/.icons. --- docs/whats-new.md | 4 +++- packaging/check-app-specific.sh | 2 +- packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml | 4 +++- packaging/linux/flatpak/ai.storyteller.lightcraft.yml | 4 +++- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/whats-new.md b/docs/whats-new.md index acfff129f0..331f6bbe9c 100644 --- a/docs/whats-new.md +++ b/docs/whats-new.md @@ -73,7 +73,9 @@ vanish for good after Crop & Rotate or a brush hid it: the sandbox couldn't see any cursor theme. The Flatpak now points at the host's cursor themes, as VectorCraft's does (issue #1657). Where the host's default theme is a symlink the sandbox can't follow (Ubuntu's `/etc/alternatives`), name a theme once: - `flatpak override --user --env=XCURSOR_THEME=Adwaita ai.storyteller.lightcraft`. + `flatpak override --user --env=XCURSOR_THEME=Adwaita ai.storyteller.lightcraft`, with in place of `Adwaita` any + cursor theme installed in `/usr/share/icons` or `~/.local/share/icons` (a theme in `~/.icons` also needs + `flatpak override --user --filesystem=~/.icons:ro ai.storyteller.lightcraft`). ### Lightroom catalogs with a print inside a collection import their collections - Lightroom Classic can keep a saved print, book, slideshow or web gallery inside a plain collection, but a diff --git a/packaging/check-app-specific.sh b/packaging/check-app-specific.sh index e9b93c05c4..ffb409eb62 100644 --- a/packaging/check-app-specific.sh +++ b/packaging/check-app-specific.sh @@ -21,7 +21,7 @@ for name in ("ai.storyteller.lightcraft.yml", "ai.storyteller.lightcraft.bundle. assert "--talk-name=org.a11y.Bus" in manifest["finish-args"], f"{name} lost --talk-name=org.a11y.Bus" # Without the host's cursor themes the pointer vanishes on Wayland once a tool hides it (#1657). xcursor = [a for a in manifest["finish-args"] if a.startswith("--env=XCURSOR_PATH=")] - assert xcursor == ["--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons"], f"{name}: XCURSOR_PATH is {xcursor}" + assert xcursor == ["--env=XCURSOR_PATH=~/.icons:/run/host/user-share/icons:/run/host/share/icons"], f"{name}: XCURSOR_PATH is {xcursor}" manifests.append(manifest) for key in ("runtime", "runtime-version", "sdk", "finish-args"): assert manifests[0][key] == manifests[1][key], f"Flatpak manifests disagree on {key}" diff --git a/packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml b/packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml index d7faeae902..d4c88f3f30 100644 --- a/packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml +++ b/packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml @@ -27,7 +27,9 @@ finish-args: # are mounted under /run/host (#1657; the same fix as storytold/vectorcraft#2502). # A host whose default theme is a symlink out of /usr/share/icons (Ubuntu's /etc/alternatives) # still needs a theme named: flatpak override --user --env=XCURSOR_THEME=Adwaita ai.storyteller.lightcraft - - --env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons + # ~/.icons stays first, as in the default search path: a theme there is found once that folder is + # granted (flatpak override --user --filesystem=~/.icons:ro ai.storyteller.lightcraft). + - --env=XCURSOR_PATH=~/.icons:/run/host/user-share/icons:/run/host/share/icons # X11 shared memory (MIT-SHM). Without it the X11 fallback is slow or fails. - --share=ipc # GPU access for the wgpu renderer (Vulkan, or GL as a fallback). diff --git a/packaging/linux/flatpak/ai.storyteller.lightcraft.yml b/packaging/linux/flatpak/ai.storyteller.lightcraft.yml index ebe9bb3ade..dbdbd0e50b 100644 --- a/packaging/linux/flatpak/ai.storyteller.lightcraft.yml +++ b/packaging/linux/flatpak/ai.storyteller.lightcraft.yml @@ -33,7 +33,9 @@ finish-args: # are mounted under /run/host (#1657; the same fix as storytold/vectorcraft#2502). # A host whose default theme is a symlink out of /usr/share/icons (Ubuntu's /etc/alternatives) # still needs a theme named: flatpak override --user --env=XCURSOR_THEME=Adwaita ai.storyteller.lightcraft - - --env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons + # ~/.icons stays first, as in the default search path: a theme there is found once that folder is + # granted (flatpak override --user --filesystem=~/.icons:ro ai.storyteller.lightcraft). + - --env=XCURSOR_PATH=~/.icons:/run/host/user-share/icons:/run/host/share/icons # X11 shared memory (MIT-SHM). Without it the X11 fallback is slow or fails. - --share=ipc # GPU access for the wgpu renderer (Vulkan, or GL as a fallback). From cee888605df0f2cb561294b0ccf1f887d69a9cfb Mon Sep 17 00:00:00 2001 From: Bruno-Alumn <171815746+Bruno-Alumn@users.noreply.github.com> Date: Tue, 10 Nov 2026 01:48:03 +0100 Subject: [PATCH 4/9] Flatpak cursor: keep the sandbox's own icon folders (app, runtime, Icontheme extensions) in XCURSOR_PATH (review) --- packaging/check-app-specific.sh | 2 +- packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml | 5 +++-- packaging/linux/flatpak/ai.storyteller.lightcraft.yml | 5 +++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/packaging/check-app-specific.sh b/packaging/check-app-specific.sh index ffb409eb62..a5d4a93380 100644 --- a/packaging/check-app-specific.sh +++ b/packaging/check-app-specific.sh @@ -21,7 +21,7 @@ for name in ("ai.storyteller.lightcraft.yml", "ai.storyteller.lightcraft.bundle. assert "--talk-name=org.a11y.Bus" in manifest["finish-args"], f"{name} lost --talk-name=org.a11y.Bus" # Without the host's cursor themes the pointer vanishes on Wayland once a tool hides it (#1657). xcursor = [a for a in manifest["finish-args"] if a.startswith("--env=XCURSOR_PATH=")] - assert xcursor == ["--env=XCURSOR_PATH=~/.icons:/run/host/user-share/icons:/run/host/share/icons"], f"{name}: XCURSOR_PATH is {xcursor}" + assert xcursor == ["--env=XCURSOR_PATH=~/.icons:/run/host/user-share/icons:/run/host/share/icons:/app/share/icons:/usr/share/icons:/usr/share/runtime/share/icons"], f"{name}: XCURSOR_PATH is {xcursor}" manifests.append(manifest) for key in ("runtime", "runtime-version", "sdk", "finish-args"): assert manifests[0][key] == manifests[1][key], f"Flatpak manifests disagree on {key}" diff --git a/packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml b/packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml index d4c88f3f30..571d7ab637 100644 --- a/packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml +++ b/packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml @@ -28,8 +28,9 @@ finish-args: # A host whose default theme is a symlink out of /usr/share/icons (Ubuntu's /etc/alternatives) # still needs a theme named: flatpak override --user --env=XCURSOR_THEME=Adwaita ai.storyteller.lightcraft # ~/.icons stays first, as in the default search path: a theme there is found once that folder is - # granted (flatpak override --user --filesystem=~/.icons:ro ai.storyteller.lightcraft). - - --env=XCURSOR_PATH=~/.icons:/run/host/user-share/icons:/run/host/share/icons + # granted (flatpak override --user --filesystem=~/.icons:ro ai.storyteller.lightcraft). The + # sandbox's own folders (the app's, the runtime's, an Icontheme extension's) stay searched last. + - --env=XCURSOR_PATH=~/.icons:/run/host/user-share/icons:/run/host/share/icons:/app/share/icons:/usr/share/icons:/usr/share/runtime/share/icons # X11 shared memory (MIT-SHM). Without it the X11 fallback is slow or fails. - --share=ipc # GPU access for the wgpu renderer (Vulkan, or GL as a fallback). diff --git a/packaging/linux/flatpak/ai.storyteller.lightcraft.yml b/packaging/linux/flatpak/ai.storyteller.lightcraft.yml index dbdbd0e50b..c427d4aab1 100644 --- a/packaging/linux/flatpak/ai.storyteller.lightcraft.yml +++ b/packaging/linux/flatpak/ai.storyteller.lightcraft.yml @@ -34,8 +34,9 @@ finish-args: # A host whose default theme is a symlink out of /usr/share/icons (Ubuntu's /etc/alternatives) # still needs a theme named: flatpak override --user --env=XCURSOR_THEME=Adwaita ai.storyteller.lightcraft # ~/.icons stays first, as in the default search path: a theme there is found once that folder is - # granted (flatpak override --user --filesystem=~/.icons:ro ai.storyteller.lightcraft). - - --env=XCURSOR_PATH=~/.icons:/run/host/user-share/icons:/run/host/share/icons + # granted (flatpak override --user --filesystem=~/.icons:ro ai.storyteller.lightcraft). The + # sandbox's own folders (the app's, the runtime's, an Icontheme extension's) stay searched last. + - --env=XCURSOR_PATH=~/.icons:/run/host/user-share/icons:/run/host/share/icons:/app/share/icons:/usr/share/icons:/usr/share/runtime/share/icons # X11 shared memory (MIT-SHM). Without it the X11 fallback is slow or fails. - --share=ipc # GPU access for the wgpu renderer (Vulkan, or GL as a fallback). From 2bbf8eccef4ce397af8e04756e589ee017847dc6 Mon Sep 17 00:00:00 2001 From: Bruno-Alumn <171815746+Bruno-Alumn@users.noreply.github.com> Date: Tue, 17 Nov 2026 17:47:25 +0100 Subject: [PATCH 5/9] KEY-TOGGLEZOOM: Space in the grid opens the active photo in Detail (#4417) --- crates/ui-egui/src/shortcuts.rs | 6 ++++ crates/ui-egui/src/shortcuts/tests.rs | 45 +++++++++++++++++++++++++++ docs/parity-checklist.md | 2 +- docs/whats-new.md | 4 +++ 4 files changed, 56 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/shortcuts.rs b/crates/ui-egui/src/shortcuts.rs index 9ab12fe079..f7d4d3e58c 100644 --- a/crates/ui-egui/src/shortcuts.rs +++ b/crates/ui-egui/src/shortcuts.rs @@ -534,6 +534,12 @@ fn fire_alias(app: &mut LightcraftApp, ctx: &egui::Context, id: &str, params: se } return; } + // in the library grid, Space opens the active photo in Detail, as in Lightroom Classic (issue + // #4417); there it toggles the zoom again. Z, Toggle Zoom's own key, keeps toggling. + if id == "view.zoomToggle" && library_grid(app) && !app.ui.fullscreen && app.session.active().is_some() { + fire_command(app, ctx, "view.detail", false); + return; + } // over a tool on the photo, held Space is the view's hand; a tap toggles on its release if id == "view.zoomToggle" && crate::space_hand::begin(app, ctx) { return; diff --git a/crates/ui-egui/src/shortcuts/tests.rs b/crates/ui-egui/src/shortcuts/tests.rs index a6fbb13332..d04d9e6704 100644 --- a/crates/ui-egui/src/shortcuts/tests.rs +++ b/crates/ui-egui/src/shortcuts/tests.rs @@ -700,3 +700,48 @@ mod issue1771 { assert_eq!(h.app.session.selection.ids.len(), 3); } } + +/// Space in the library grid opens the active photo in Detail, as in Lightroom Classic (issue #4417). +mod issue4417 { + use super::*; + use crate::state::{ViewMode, Zoom}; + use lightcraft_catalog::PhotoId; + + fn grid(view: ViewMode) -> crate::headless::Headless { + let mut h = library(); + h.app.ui.view = view; + h.app.session.execute("library.select", &json!({"ids": [1, 2, 3], "active": 2})).unwrap(); + for _ in 0..3 { + h.step(); + } + h + } + + /// Given a grid with a multi-selection, when Space is pressed, then the active photo opens in Detail at Fit with + /// the selection kept; a second Space there toggles the zoom, as before, and stays in Detail. + #[test] + fn space_in_the_grid_opens_the_active_photo_then_toggles_the_zoom() { + for view in [ViewMode::PhotoGrid, ViewMode::SquareGrid] { + let mut h = grid(view); + key(&mut h, "Space", false); + assert_eq!(h.app.ui.view, ViewMode::Detail, "Space from {view:?}"); + assert_eq!(h.app.session.active(), Some(PhotoId(2))); + assert_eq!(h.app.session.selection.ids, vec![PhotoId(1), PhotoId(2), PhotoId(3)]); + assert_eq!(h.app.ui.zoom, Zoom::Fit, "opens fitted to the window"); + key(&mut h, "Space", false); + assert_eq!(h.app.ui.view, ViewMode::Detail, "second Space stays in Detail"); + assert_ne!(h.app.ui.zoom, Zoom::Fit, "and toggles the zoom"); + } + } + + /// Given a grid with nothing selected, when Space is pressed, then the grid stays. + #[test] + fn space_in_the_grid_without_a_photo_does_nothing() { + for view in [ViewMode::PhotoGrid, ViewMode::SquareGrid] { + let mut h = grid(view); + h.app.session.selection = Default::default(); + key(&mut h, "Space", false); + assert_eq!(h.app.ui.view, view); + } + } +} diff --git a/docs/parity-checklist.md b/docs/parity-checklist.md index baa3bb7fe5..2536c7296b 100644 --- a/docs/parity-checklist.md +++ b/docs/parity-checklist.md @@ -631,7 +631,7 @@ From `06-shortcuts.md` part 1. Evidence is our binding; conflicts are explained | KEY-WB | White-balance selector — W | P0 | ✅ | `cmd:tool.wbPicker` | | | KEY-FILMSTRIP | Filmstrip — / | P0 | ✅ | `cmd:view.filmstrip` | | | KEY-SHOWORIGINAL | Show original — \ | P0 | ✅ | `cmd:view.showOriginal` | | -| KEY-TOGGLEZOOM | Toggle zoom — Space | P0 | ✅ | `cmd:view.zoomToggle`, `crates/ui-egui/src/space_hand.rs`, `crates/ui-egui/src/tests/space_hand.rs` | Space is a secondary binding (primary Z); held, it toggles once (the key's auto-repeat no longer flips the zoom back and forth). With a tool on the photo (Crop, Masking, Remove, Red Eye, the white-balance / colour-range / point-colour pickers, a targeted adjustment) held Space is the view's hand until the key is up, as in Lightroom: a click zooms to the click-zoom ratio at the point clicked (or back to Fit), a drag pans the zoomed photo (grab cursor; zoom-in cursor at Fit), and the tool gets neither; a tap (under 0.4 s, no click) toggles the zoom on its release (issue #1895) | +| KEY-TOGGLEZOOM | Toggle zoom — Space | P0 | ✅ | `cmd:view.zoomToggle`, `crates/ui-egui/src/space_hand.rs`, `crates/ui-egui/src/tests/space_hand.rs` | Space is a secondary binding (primary Z); held, it toggles once (the key's auto-repeat no longer flips the zoom back and forth). With a tool on the photo (Crop, Masking, Remove, Red Eye, the white-balance / colour-range / point-colour pickers, a targeted adjustment) held Space is the view's hand until the key is up, as in Lightroom: a click zooms to the click-zoom ratio at the point clicked (or back to Fit), a drag pans the zoomed photo (grab cursor; zoom-in cursor at Fit), and the tool gets neither; a tap (under 0.4 s, no click) toggles the zoom on its release (issue #1895). In the library grid Space opens the active photo in Detail, fitted to the window, as Lightroom's Space opens the Loupe (issue #4417); Z there still toggles | | KEY-MASKCOLOR | Cycle mask colour — ⇧O | P1 | ✅ | `cmd:view.maskOverlayColor`, `crates/ui-egui/src/shortcuts.rs` | ⇧O while masking cycles the overlay colour (while cropping: the guides' orientation); the overlay mode is in View ▸ Cycle Mask Overlay Mode | | KEY-EXPORTPREV | Export with previous — ⌘E | P0 | ✅ | `cmd:app.exportPrevious` | ⌘E (alias) and ⌥⇧⌘E (Classic) | | KEY-EXPORTDIALOG | Export dialog — ⇧E | P0 | ✅ | `cmd:dialog.export` | secondary binding (primary ⌘⇧E) | diff --git a/docs/whats-new.md b/docs/whats-new.md index f333926378..4be7789307 100644 --- a/docs/whats-new.md +++ b/docs/whats-new.md @@ -2,6 +2,10 @@ ## Unreleased +### Space opens a photo from the grid +- In the Grid and the Square Grid, Space opens the active photo in Detail, fitted to the window, as in Lightroom + Classic (issue #4417). There, Space toggles the zoom as before. + ### Flatpak updates - Help ▸ Check for Updates can now reach the release service and update standalone Flatpak bundles. This permissions repair must first arrive through your existing host-side update method. Flatpaks From 7d6df178925991987796936ab3329abc7b980260 Mon Sep 17 00:00:00 2001 From: Bruno-Alumn <171815746+Bruno-Alumn@users.noreply.github.com> Date: Tue, 17 Nov 2026 18:00:00 +0100 Subject: [PATCH 6/9] KEY-TOGGLEZOOM: Space from the grid opens Detail fitted, whatever the zoom was left at (#4417, review) --- crates/ui-egui/src/shortcuts.rs | 2 ++ crates/ui-egui/src/shortcuts/tests.rs | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/shortcuts.rs b/crates/ui-egui/src/shortcuts.rs index f7d4d3e58c..e6fcbe8515 100644 --- a/crates/ui-egui/src/shortcuts.rs +++ b/crates/ui-egui/src/shortcuts.rs @@ -537,6 +537,8 @@ fn fire_alias(app: &mut LightcraftApp, ctx: &egui::Context, id: &str, params: se // in the library grid, Space opens the active photo in Detail, as in Lightroom Classic (issue // #4417); there it toggles the zoom again. Z, Toggle Zoom's own key, keeps toggling. if id == "view.zoomToggle" && library_grid(app) && !app.ui.fullscreen && app.session.active().is_some() { + // fitted to the window, whatever the zoom was left at (it is shared with Detail) + app.ui.zoom = crate::state::Zoom::Fit; fire_command(app, ctx, "view.detail", false); return; } diff --git a/crates/ui-egui/src/shortcuts/tests.rs b/crates/ui-egui/src/shortcuts/tests.rs index d04d9e6704..f9a3ab78c1 100644 --- a/crates/ui-egui/src/shortcuts/tests.rs +++ b/crates/ui-egui/src/shortcuts/tests.rs @@ -717,12 +717,15 @@ mod issue4417 { h } - /// Given a grid with a multi-selection, when Space is pressed, then the active photo opens in Detail at Fit with - /// the selection kept; a second Space there toggles the zoom, as before, and stays in Detail. + /// Given a grid with a multi-selection and the zoom left at 200 %, when Space is pressed, then the active photo + /// opens in Detail at Fit with the selection kept; a second Space there toggles the zoom, as before, and stays in + /// Detail. #[test] fn space_in_the_grid_opens_the_active_photo_then_toggles_the_zoom() { for view in [ViewMode::PhotoGrid, ViewMode::SquareGrid] { let mut h = grid(view); + // left zoomed in from an earlier visit to Detail + h.app.ui.zoom = Zoom::Percent(200.0); key(&mut h, "Space", false); assert_eq!(h.app.ui.view, ViewMode::Detail, "Space from {view:?}"); assert_eq!(h.app.session.active(), Some(PhotoId(2))); From 52089968e702ce739f427cac4bb7ee27ebdd720e Mon Sep 17 00:00:00 2001 From: Bruno-Alumn <171815746+Bruno-Alumn@users.noreply.github.com> Date: Tue, 17 Nov 2026 18:19:39 +0100 Subject: [PATCH 7/9] KEY-TOGGLEZOOM: Space in a grid with no photo leaves the zoom alone (#4417, review) --- crates/ui-egui/src/shortcuts.rs | 4 ++++ crates/ui-egui/src/shortcuts/tests.rs | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/shortcuts.rs b/crates/ui-egui/src/shortcuts.rs index e6fcbe8515..5f1d8b5755 100644 --- a/crates/ui-egui/src/shortcuts.rs +++ b/crates/ui-egui/src/shortcuts.rs @@ -542,6 +542,10 @@ fn fire_alias(app: &mut LightcraftApp, ctx: &egui::Context, id: &str, params: se fire_command(app, ctx, "view.detail", false); return; } + // with no photo to open, Space does nothing in the grid: the zoom (shared with Detail) stays as it is + if id == "view.zoomToggle" && library_grid(app) && !app.ui.fullscreen { + return; + } // over a tool on the photo, held Space is the view's hand; a tap toggles on its release if id == "view.zoomToggle" && crate::space_hand::begin(app, ctx) { return; diff --git a/crates/ui-egui/src/shortcuts/tests.rs b/crates/ui-egui/src/shortcuts/tests.rs index f9a3ab78c1..4c55c97f0b 100644 --- a/crates/ui-egui/src/shortcuts/tests.rs +++ b/crates/ui-egui/src/shortcuts/tests.rs @@ -737,14 +737,16 @@ mod issue4417 { } } - /// Given a grid with nothing selected, when Space is pressed, then the grid stays. + /// Given a grid with nothing selected, when Space is pressed, then the grid stays and the zoom is unchanged. #[test] fn space_in_the_grid_without_a_photo_does_nothing() { for view in [ViewMode::PhotoGrid, ViewMode::SquareGrid] { let mut h = grid(view); h.app.session.selection = Default::default(); + let zoom = h.app.ui.zoom; key(&mut h, "Space", false); assert_eq!(h.app.ui.view, view); + assert_eq!(h.app.ui.zoom, zoom, "the zoom a photo opens at later is left alone"); } } } From 0164a24c8d19636fe781bdc1b6fb13622a09a484 Mon Sep 17 00:00:00 2001 From: Bruno-Alumn <171815746+Bruno-Alumn@users.noreply.github.com> Date: Fri, 27 Nov 2026 16:13:45 +0100 Subject: [PATCH 8/9] Flatpak cursor: the release note says it helps where the cursor theme loads by name --- docs/whats-new.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/whats-new.md b/docs/whats-new.md index 331f6bbe9c..0e7f6d80e8 100644 --- a/docs/whats-new.md +++ b/docs/whats-new.md @@ -68,7 +68,7 @@ ## 2026-10-30 -### The pointer stays visible in the Flatpak on GNOME Wayland +### The pointer stays visible in the Flatpak on GNOME Wayland when its cursor theme loads by name - In the Flatpak on a Wayland desktop without the cursor-shape protocol (GNOME 46, for one), the mouse pointer could vanish for good after Crop & Rotate or a brush hid it: the sandbox couldn't see any cursor theme. The Flatpak now points at the host's cursor themes, as VectorCraft's does (issue #1657). Where the host's default theme is a From bf241d874cc667f9f9f4fecf52fee169880c3e2c Mon Sep 17 00:00:00 2001 From: FredApps <153173854+FredApps@users.noreply.github.com> Date: Sat, 28 Nov 2026 00:17:11 +0100 Subject: [PATCH 9/9] Keep the legacy Xcursor fallback in Flatpak --- packaging/check-app-specific.sh | 2 +- packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml | 2 +- packaging/linux/flatpak/ai.storyteller.lightcraft.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packaging/check-app-specific.sh b/packaging/check-app-specific.sh index a5d4a93380..244dc6b3cc 100644 --- a/packaging/check-app-specific.sh +++ b/packaging/check-app-specific.sh @@ -21,7 +21,7 @@ for name in ("ai.storyteller.lightcraft.yml", "ai.storyteller.lightcraft.bundle. assert "--talk-name=org.a11y.Bus" in manifest["finish-args"], f"{name} lost --talk-name=org.a11y.Bus" # Without the host's cursor themes the pointer vanishes on Wayland once a tool hides it (#1657). xcursor = [a for a in manifest["finish-args"] if a.startswith("--env=XCURSOR_PATH=")] - assert xcursor == ["--env=XCURSOR_PATH=~/.icons:/run/host/user-share/icons:/run/host/share/icons:/app/share/icons:/usr/share/icons:/usr/share/runtime/share/icons"], f"{name}: XCURSOR_PATH is {xcursor}" + assert xcursor == ["--env=XCURSOR_PATH=~/.icons:/run/host/user-share/icons:/run/host/share/icons:/app/share/icons:/usr/share/icons:/usr/share/runtime/share/icons:~/.cursors"], f"{name}: XCURSOR_PATH is {xcursor}" manifests.append(manifest) for key in ("runtime", "runtime-version", "sdk", "finish-args"): assert manifests[0][key] == manifests[1][key], f"Flatpak manifests disagree on {key}" diff --git a/packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml b/packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml index cb3fc446c0..795eb33593 100644 --- a/packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml +++ b/packaging/linux/flatpak/ai.storyteller.lightcraft.bundle.yml @@ -32,7 +32,7 @@ finish-args: # ~/.icons stays first, as in the default search path: a theme there is found once that folder is # granted (flatpak override --user --filesystem=~/.icons:ro ai.storyteller.lightcraft). The # sandbox's own folders (the app's, the runtime's, an Icontheme extension's) stay searched last. - - --env=XCURSOR_PATH=~/.icons:/run/host/user-share/icons:/run/host/share/icons:/app/share/icons:/usr/share/icons:/usr/share/runtime/share/icons + - --env=XCURSOR_PATH=~/.icons:/run/host/user-share/icons:/run/host/share/icons:/app/share/icons:/usr/share/icons:/usr/share/runtime/share/icons:~/.cursors # X11 shared memory (MIT-SHM). Without it the X11 fallback is slow or fails. - --share=ipc # GPU access for the wgpu renderer (Vulkan, or GL as a fallback). diff --git a/packaging/linux/flatpak/ai.storyteller.lightcraft.yml b/packaging/linux/flatpak/ai.storyteller.lightcraft.yml index 625c8e91b6..7a2ca36d18 100644 --- a/packaging/linux/flatpak/ai.storyteller.lightcraft.yml +++ b/packaging/linux/flatpak/ai.storyteller.lightcraft.yml @@ -38,7 +38,7 @@ finish-args: # ~/.icons stays first, as in the default search path: a theme there is found once that folder is # granted (flatpak override --user --filesystem=~/.icons:ro ai.storyteller.lightcraft). The # sandbox's own folders (the app's, the runtime's, an Icontheme extension's) stay searched last. - - --env=XCURSOR_PATH=~/.icons:/run/host/user-share/icons:/run/host/share/icons:/app/share/icons:/usr/share/icons:/usr/share/runtime/share/icons + - --env=XCURSOR_PATH=~/.icons:/run/host/user-share/icons:/run/host/share/icons:/app/share/icons:/usr/share/icons:/usr/share/runtime/share/icons:~/.cursors # X11 shared memory (MIT-SHM). Without it the X11 fallback is slow or fails. - --share=ipc # GPU access for the wgpu renderer (Vulkan, or GL as a fallback).