Skip to content

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

Library: the Photo Grid label footer is translucent; pt-br for "Color label cleared" (#308)

Claudea12fabd588ab
diff --git a/crates/ui-egui/locales/pt-br.json b/crates/ui-egui/locales/pt-br.json
index 1f3a42feb..a6ee0e793 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 1ef6beb05..0cbd41199 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 5305fe57d..2b4c96f8f 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 111b6201e..c15f29b33 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.