Adjustment Brush: Overlay tooltip in our own words (#12520)

The tooltip and its accessibility test repeated the reference
application's measured sentence; clean-room rule 2 forbids copying UI
wording, tests included. It now reads "Show or hide the painted mask
areas".
This commit is contained in:
RickiNano committed 2026-11-24 21:02:31 +01:00
1 parent e11eeb9644
commit a91f96d896
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -154,7 +154,7 @@ pub fn options_bar(ui: &mut egui::Ui, app: &mut PhotocraftApp, tool: Tool) -> bo
// On, the canvas tints what the active adjustment layer's mask reveals (`raster_source::MaskTint`, #12520).
Checkbox::new(Bind::bound(&mut app.ui.tool_options.adjustment_brush_overlay))
.label(tl!("Overlay").to_owned())
.tooltip(tl!("Turn the overlay on or off to quickly see the affected areas").to_owned())
.tooltip(tl!("Show or hide the painted mask areas").to_owned())
.show(ui);
Divider::vertical().show(ui);
@@ -68,7 +68,7 @@ fn the_box_is_off_with_its_tooltip_and_ticking_it_changes_nothing_in_the_documen
);
h.run_steps(4);
let tip = h.get_by_label("Overlay").accesskit_node().description().map(|d| d.to_string());
assert_eq!(tip.as_deref(), Some("Turn the overlay on or off to quickly see the affected areas"));
assert_eq!(tip.as_deref(), Some("Show or hide the painted mask areas"));
h.get_by_label("Overlay").click();
h.run_steps(4);
assert!(h.state().ui.tool_options.adjustment_brush_overlay, "ticked");