Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

Merge main into fix/history-panel-menu

David Manncbe11954c60e
diff --cc crates/ui-egui/src/dock.rs
index 4727d868d,4bd043da6..e99417bd7
--- a/crates/ui-egui/src/dock.rs
+++ b/crates/ui-egui/src/dock.rs
@@@ -601,10 -601,10 +601,14 @@@ pub fn show(app: &mut PhotocraftApp, ui
crate::swatches_ui::panel_menu(app, ui);
ui.separator();
}
+ if tabs.get(sel) == Some(&"History") {
+ crate::history_menu_ui::panel_menu(app, ui);
+ ui.separator();
+ }
+ if tabs.get(sel) == Some(&"Actions") {
+ crate::actions::panel_menu(app, ui);
+ ui.separator();
+ }
if let Some(label) = tabs.get(sel) {
crate::panel_docking::legacy_menu(app, ui, label);
}
diff --cc crates/ui-egui/src/i18n/vi.tsv
index 2bb8ef72d,6e35c4a38..1a0f83780
--- a/crates/ui-egui/src/i18n/vi.tsv
+++ b/crates/ui-egui/src/i18n/vi.tsv
@@@ -3537,8 -3537,12 +3537,17 @@@ curves Smooth Làm mượ
Apply the removal ({key}) Áp dụng việc xóa ({key})
Strokes to remove: {n} (Enter applies, Esc cancels) Nét vẽ cần xóa: {n} (Enter áp dụng, Esc hủy)
+ # Actions panel: Load/Save Actions (.atn) and kept Photoshop steps
+ Load Actions… Nạp hành động…
+ Save Actions… Lưu hành động…
+ {name} (Photoshop) {name} (Photoshop)
+ {message} ({note}) {message} ({note})
+ @plural Loaded {n} action from {file}|Loaded {n} actions from {file} Đã nạp {n} hành động từ {file}
+ @plural {n} step has no PhotoCraft equivalent yet|{n} steps have no PhotoCraft equivalent yet {n} bước chưa có chức năng tương ứng trong PhotoCraft
+ @plural Saved {n} action to {file}|Saved {n} actions to {file} Đã lưu {n} hành động vào {file}
+ @plural {n} step with no Photoshop equivalent left out|{n} steps with no Photoshop equivalent left out Đã bỏ qua {n} bước không có chức năng tương ứng trong Photoshop
+# History panel menu (#2966)
+ Step Forward Tiến một bước
+ New Snapshot… Ảnh chụp trạng thái mới…
+ Clear History Xóa lịch sử
+ History Options… Tùy chọn lịch sử…
diff --cc crates/ui-egui/src/panel_docking.rs
index 3f6848a98,4aff73c01..b62a5b352
--- a/crates/ui-egui/src/panel_docking.rs
+++ b/crates/ui-egui/src/panel_docking.rs
@@@ -843,10 -843,10 +843,14 @@@ fn panel_menu(app: &mut PhotocraftApp,
crate::swatches_ui::panel_menu(app, ui);
ui.separator();
}
+ "history" => {
+ crate::history_menu_ui::panel_menu(app, ui);
+ ui.separator();
+ }
+ "actions" => {
+ crate::actions::panel_menu(app, ui);
+ ui.separator();
+ }
_ => {}
}
}