From a12fabd588abe4bc3357c62855a6005d95db4c5f Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 8 Oct 2026 17:39:23 +0000 Subject: [PATCH] Library: the Photo Grid label footer is translucent; pt-br for "Color label cleared" (#308) #308 painted an opaque label-coloured bar over the bottom 24 px of every labelled photo in Photo Grid, hiding part of the photo, while its docs said the photo pixels stay as they are. The footer is now translucent over the photo and the docs say so. Also adds the one string pt-br lacked. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01912WaK6Rmew3wxZuPyX7E8 --- crates/ui-egui/locales/pt-br.json | 1 + crates/ui-egui/src/panels/grid.rs | 5 +++-- docs/library-shortcuts.md | 2 +- docs/whats-new.md | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/crates/ui-egui/locales/pt-br.json b/crates/ui-egui/locales/pt-br.json index 1f3a42fe..a6ee0e79 100644 --- a/crates/ui-egui/locales/pt-br.json +++ b/crates/ui-egui/locales/pt-br.json @@ -200,6 +200,7 @@ "Color Noise Reduction": "Redução de ruído de cor", "Color Priority": "Prioridade de cor", "Color Range": "Intervalo de cor", + "Color label cleared": "Rótulo de cor removido", "Color space": "Espaço de cor", "Color space: sRGB (AVIF)": "Espaço de cor: sRGB (AVIF)", "Combine files…": "Combinar arquivos…", diff --git a/crates/ui-egui/src/panels/grid.rs b/crates/ui-egui/src/panels/grid.rs index 1ef6beb0..0cbd4119 100644 --- a/crates/ui-egui/src/panels/grid.rs +++ b/crates/ui-egui/src/panels/grid.rs @@ -564,8 +564,9 @@ fn cell(app: &mut LightcraftApp, ui: &mut egui::Ui, id: PhotoId, r: Rect, square }; let badge_bar = Rect::from_min_max(pos2(img_rect.left(), img_rect.bottom() - 24.0), img_rect.right_bottom()); if !square && photo.label.is_some() { - // Justified photos fill the whole cell: reserve the badge footer as coloured chrome. - p.rect_filled(badge_bar, 0.0, crate::theme::label_background(t.cell, photo.label, selected)); + // Justified photos fill the whole cell, so the label shows as a translucent tinted footer + // over the photo's bottom edge (opaque, it would hide 24 px of every labelled photo). + p.rect_filled(badge_bar, 0.0, crate::theme::label_background(t.cell, photo.label, selected).gamma_multiply(0.7)); } if show_badges { let bar = badge_bar; diff --git a/docs/library-shortcuts.md b/docs/library-shortcuts.md index 5305fe57..2b4c96f8 100644 --- a/docs/library-shortcuts.md +++ b/docs/library-shortcuts.md @@ -18,7 +18,7 @@ culling; it does not delete the original or remove it from the library. Setting a colour label shows the same brief bottom toast as a rating, using the colour or your custom label name. Clearing it shows a confirmation too, whether applied by a key, menu or swatch. Labelled thumbnails have a translucent matching colour on the square-grid surround, photo-grid -footer and Detail filmstrip surround. The photo pixels and white active-photo outline remain clear. +footer (translucent, over the bottom of the photo) and Detail filmstrip surround. The white active-photo outline remains clear. The label confirmation uses a pale matching background with dark text; ratings and errors retain their neutral HUD styling. Custom names use the underlying label's colour. diff --git a/docs/whats-new.md b/docs/whats-new.md index 111b6201..c15f29b3 100644 --- a/docs/whats-new.md +++ b/docs/whats-new.md @@ -3,7 +3,7 @@ ## October 2026 ### Library keyboard culling -- Colour labels tint thumbnail surrounds in Square Grid and the Detail filmstrip, and the footer in Photo Grid. Label confirmations use a matching pale colour; the photo pixels retain their original appearance. +- Colour labels tint thumbnail surrounds in Square Grid and the Detail filmstrip, and a translucent footer along the bottom of the photo in Photo Grid. Label confirmations use a matching pale colour. - Setting or clearing a colour label shows a brief bottom confirmation, like rating a photo; custom label names appear in the message too. - On macOS, ratings `0–5`, labels `6–9` and pick/unflag `P/U` now reach the app even when shown in the native menu (issue #283; adapted from PR #261). - `Shift+6–9` labels and advances. `Shift+P` picks and advances in Photo Grid and Square Grid; it opens Presets in other views. With Auto Advance on, Shift still moves only once.