Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/ui-egui/src/menus/ui_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ pub const UI_COMMANDS: &[UiCommand] = &[
("view.navigator", "Navigator", None, "Window"),
("panel.edit", "Edit Panel", Some("E"), "Window"),
("panel.profiles", "Profile Browser", None, "Window"),
("panel.crop", "Crop & Rotate", Some("C"), "Window"),
("panel.crop", "Crop & Geometry", Some("C"), "Window"),
("panel.remove", "Remove", Some("H"), "Window"),
("panel.masking", "Masking", Some("M"), "Window"),
("panel.redeye", "Red Eye", None, "Window"),
Expand Down
2 changes: 1 addition & 1 deletion crates/ui-egui/src/panels/strip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pub fn show(app: &mut LightcraftApp, ui: &mut egui::Ui) {
}
for (id, icon, panel, tip) in [
("edit", Icon::Sliders, RightPanel::Edit, "Edit (E)"),
("crop", Icon::Crop, RightPanel::Crop, "Crop & Rotate (C)"),
("crop", Icon::Crop, RightPanel::Crop, "Crop & Geometry (C)"),
("remove", Icon::Eraser, RightPanel::Remove, "Remove (H)"),
("masking", Icon::Mask, RightPanel::Masking, "Masking (M)"),
("redeye", Icon::Eye, RightPanel::RedEye, "Red Eye"),
Expand Down
6 changes: 3 additions & 3 deletions crates/ui-egui/src/widgets/icon_button_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ fn real_tool_strip_changes_panel_by_pointer_enter_and_space() {
frames.frame(vec![], &mut draw);
drop(draw);
assert_eq!(app.ui.right, crate::state::RightPanel::Crop, "{activation:?}");
assert_eq!(frames.nodes.get("Crop & Rotate").unwrap().toggled(), Some(egui::accesskit::Toggled::True), "the current tool reports pressed");
assert_eq!(frames.nodes.get("Crop & Geometry").unwrap().toggled(), Some(egui::accesskit::Toggled::True), "the current tool reports pressed");
}
}

Expand All @@ -307,7 +307,7 @@ fn real_tool_strip_unavailable_photo_controls_do_not_activate() {
frames.frame(key(Key::Enter, false), &mut draw);
drop(draw);
assert_eq!(app.ui.right, crate::state::RightPanel::Info);
assert!(frames.nodes.get("Crop & Rotate").unwrap().is_disabled());
assert!(frames.nodes.get("Crop & Geometry").unwrap().is_disabled());
}

#[test]
Expand Down Expand Up @@ -428,7 +428,7 @@ fn focused_leaf_does_not_consume_letter_shortcuts_or_add_duplicate_tab_stops() {
let mut draw = |ui: &mut Ui| {
ui.horizontal(|ui| {
clicked |= icon_button(ui, "first", Icon::Sliders, vec2(30.0, 30.0), true, true, "Edit (E)").clicked();
clicked |= icon_button(ui, "second", Icon::Crop, vec2(30.0, 30.0), false, true, "Crop & Rotate (C)").clicked();
clicked |= icon_button(ui, "second", Icon::Crop, vec2(30.0, 30.0), false, true, "Crop & Geometry (C)").clicked();
});
saw_letter |= ui.input(|i| i.key_pressed(Key::E));
};
Expand Down
2 changes: 1 addition & 1 deletion crates/ui-egui/tests/it/accessibility.rs
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ fn tool_strip_and_toolbar_buttons_are_named_by_label_with_the_shortcut_as_descri
for (name, help) in [
("Presets", "Shift+P"),
("Edit", "E"),
("Crop & Rotate", "C"),
("Crop & Geometry", "C"),
("Masking", "M"),
("Versions", "Shift+V"),
("History & Activity", "Y"),
Expand Down
2 changes: 1 addition & 1 deletion docs/parity-checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ From `06-shortcuts.md` part 1. Evidence is our binding; conflicts are explained

| Id | Feature | Tier | Status | Evidence | Missing / notes |
|---|---|---|---|---|---|
| KEY-CROP | Crop & rotate — C | P0 | ✅ | `cmd:panel.crop` | |
| KEY-CROP | Crop & geometry — C | P0 | ✅ | `cmd:panel.crop` | |
| KEY-DETAIL | Detail — D | P0 | ✅ | `cmd:view.detail` | |
| KEY-EDIT | Edit — E | P0 | ✅ | `cmd:panel.edit` | |
| KEY-FULLSCREEN | Full-screen preview — F | P1 | ✅ | `cmd:view.fullScreenPreview` | |
Expand Down
2 changes: 1 addition & 1 deletion docs/user/guides/edit-a-photo.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Open them from the **Window** menu, or press the key shown next to each one:

| Panel | Key |
|-------------------|-------------|
| **Crop & Rotate** | `C` |
| **Crop & Geometry** | `C` |
| [**Remove**](remove-distractions.md) | `H` |
| **Masking** | `M` |
| **Presets** | `Shift`+`P` |
Expand Down