Skip to content

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

Merge main into fix/history-panel-menu

David Mann71ea169a8403
diff --cc crates/ui-egui/src/dock.rs
index e99417bd7,0aab2769e..6d13001a8
--- 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(&"Brush Settings") {
+ crate::brush_panel::panel_menu(app, ui);
+ ui.separator();
+ }
if tabs.get(sel) == Some(&"Actions") {
crate::actions::panel_menu(app, ui);
ui.separator();
diff --cc crates/ui-egui/src/i18n/vi.tsv
index 233a58f94,fc652eff8..d6a39f4da
--- a/crates/ui-egui/src/i18n/vi.tsv
+++ b/crates/ui-egui/src/i18n/vi.tsv
@@@ -3557,8 -3606,8 +3606,13 @@@ curves Smooth Làm mượ
Action playback stopped Đã dừng phát hành động
Step {step} is waiting for its dialog Bước {step} đang chờ hộp thoại của nó
@plural {n} action|{n} actions {n} hành động
+# 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ử…
+ Gradient Preset Options Tùy chọn thiết lập sẵn chuyển sắc
+ Import .GRD Nhập .GRD
+ Choose a gradient file (.grd). Chọn tệp chuyển sắc (.grd).
+ Auto Add/Delete Tự động thêm/xóa
+ ICO is limited to 256 × 256 pixels ICO giới hạn ở 256 × 256 pixel
diff --cc crates/ui-egui/src/panel_docking.rs
index b62a5b352,de56d6714..251725040
--- a/crates/ui-egui/src/panel_docking.rs
+++ b/crates/ui-egui/src/panel_docking.rs
@@@ -843,10 -845,10 +845,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();
+ }
+ "brushSettings" | "brush_settings" => {
+ crate::brush_panel::panel_menu(app, ui);
+ ui.separator();
+ }
"actions" => {
crate::actions::panel_menu(app, ui);
ui.separator();