PhotoCraft: An open-source, photo editor written by scratch in pure Rust
Merge branch 'main' into feat/layers-panel-photoshop-options
abc2cba3d72f6f6a26
diff --cc crates/engine/src/jobs.rsindex 2c6777286,de2afd155..9f71e6a3f--- a/crates/engine/src/jobs.rs+++ b/crates/engine/src/jobs.rs@@@ -671,28 -713,7 +713,29 @@@ impl Sessionreturn Ok(Started::Done(v));}// Pixel commands follow the Channels panel target unless the caller names one.+ let run_params = crate::channel_cmds::inject_target(self, id, crate::commands::inject_kind(id, params.clone()));+ if let Err(why) = self.explicit_layer_enabled(spec, ¶ms).unwrap_or_else(|| self.precondition(spec, &run_params)) {+ return Err(EngineError::Disabled(id.to_string(), why));+ }+ if let Some(why) = self.job_conflict(id, spec.journal) {+ return Err(EngineError::Disabled(id.to_string(), why));+ }+ // Painting on or moving a hidden layer is refused, as in Photoshop (#571).+ if let Some(why) = crate::hidden_target::refusal(self, id, ¶ms) {+ return Err(EngineError::Other(why.into()));+ }+ // This UI-only disclosure preference applies to both `execute` and `start`:+ // desktop UI normally calls `start`, even for synchronous Layer Style commands.+ let new_fx_target = if id.starts_with("layer.layerStyle.") {+ self.active().and_then(|st| {+ let target = params.get("layer").and_then(Value::as_u64).map(LayerId).or(st.active_layer)?;+ (st.doc.layer(target)?.effects.items.is_empty()).then_some((st.doc.id, target))+ })+ } else {+ None+ };+ let expand_new_fx = crate::commands::layer_panel_option(self, "expandNewEffects", true);+ let run_params = self.admit(id, spec, ¶ms)?;self.coalesce_request = params.get("coalesce").and_then(Value::as_str).map(str::to_string);self.color_restrict = crate::channel_cmds::color_restriction(self, id, &run_params);self.jobs.spawn = background;diff --cc crates/ui-egui/src/i18n/hu.tsvindex 63795649c,9dc9a47fb..27347ec79--- a/crates/ui-egui/src/i18n/hu.tsv+++ b/crates/ui-egui/src/i18n/hu.tsv@@@ -4108,20 -4107,23 +4107,40 @@@ cameraRaw Yellow SárgThere are too many sets: delete one first. Túl sok készlet van: előbb töröljön egyet.set name készlet neve{set} (modified) {set} (módosítva)++# Layers panel options and Smart Filter editors+ Add “copy” to Copied Layers and Groups „másolat” hozzáadása a másolt rétegekhez és csoportokhoz+ Animation Options Animációs beállítások+ Entire Document Teljes dokumentum+ Expand New Effects Új effektusok kibontása+ Filter Options Szűrési beállítások+ Layer Bounds Réteghatárok+ Layers Panel Options Rétegek panel beállításai+ New Artboard… Új rajztábla…+ New Group… Új csoport…+ Prevent Auto-Nesting Automatikus beágyazás tiltása+ Preview on canvas when reordering layers Előnézet a vásznon a rétegek átrendezésekor+ Show Layers Rétegek megjelenítése+ Show layer mask badges Rétegmaszk-jelvények megjelenítése+ Thumbnail Contents Bélyegkép tartalma+ Thumbnail Size Bélyegképméret+ Accept and Go to Conflict Elfogadás és ugrás az ütközéshez+ Changes undone. Változások visszavonva.+ Choose a new shortcut for this command, or leave it without one. Válasszon új billentyűparancsot ehhez a parancshoz, vagy hagyja nélküle.+ Put this command's shortcuts back as they were A parancs billentyűparancsainak visszaállítása+ Take the shortcut from the other command and select it A billentyűparancs elvétele a másik parancstól, és annak kijelölése+ Undo Changes Változások visszavonása+ {shortcut} is reserved by the system and can't be assigned. A(z) {shortcut} a rendszer számára fenntartott, nem rendelhető hozzá.+ Low-Latency Drawing (vsync off, applies at next launch) Kis késleltetésű rajzolás (vsync nélkül, a következő indításkor lép életbe)+ # Free Transform: a new layer while the box is open (#5859)+ Free Transform is still being applied; try again when it has finished. A szabad alakítás alkalmazása még folyamatban van; próbáld újra, ha befejeződött.+ The transform couldn't be applied. Az átalakítás nem alkalmazható.+ # Preferences › Performance › GPU Memory; the status bar and slow-redraw notice+ Its layers need {needed} of GPU memory; the budget leaves them {budget}. A rétegeknek {needed} GPU-memória kell; a keret {budget} hagy nekik.+ Set GPU Memory in Preferences › Performance to what your graphics card can hold, at most 3/8 of its memory. Automatic follows Memory Usage, within a quarter of this computer's memory and 3/8 of the card's, and doesn't count the document against a card whose memory is known. The status bar shows GPU Memory Full while they don't fit. A Beállítások › Teljesítmény alatt állítsd a GPU-memóriát arra, amennyit a videokártyád elbír, legfeljebb a memóriája 3/8-ára. Az Automatikus a memóriahasználatot követi, a számítógép memóriájának negyedén és a kártya 3/8-án belül, és ismert memóriájú kártyánál nem számítja bele a dokumentumot. Amíg nem férnek el, az állapotsor a GPU-memória megtelt üzenetet mutatja.+ GPU Memory Full GPU-memória megtelt+ The layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. A rétegeknek {needed} GPU-memória kell, és {budget} foglalhatnak, ezért a teljes dokumentumot újrarajzoló szerkesztések a CPU-n futnak. Kattints a GPU-memória beállításához.+ GPU memory budget: {budget} GPU-memóriakeret: {budget}+ This document's layers: {needed} of {budget} for layers A dokumentum rétegei: {needed} / {budget} a rétegeknek+ This document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU A dokumentum rétegeinek {needed} kell, de {budget} foglalhatnak: a teljes dokumentum újrarajzolása a CPU-n fut+ GPU Memory (MB, 0 = Automatic) GPU-memória (MB, 0 = Automatikus)diff --cc crates/ui-egui/src/i18n/sr.tsvindex 0d0ebb62c,d384c9bad..c2a8e58a3--- a/crates/ui-egui/src/i18n/sr.tsv+++ b/crates/ui-egui/src/i18n/sr.tsv@@@ -4262,20 -4261,23 +4261,40 @@@ shape Appearance IzgleThere are too many sets: delete one first. Previše skupova: prvo obrišite jedan.set name ime skupa{set} (modified) {set} (izmenjen)++# Layers panel options+ Add “copy” to Copied Layers and Groups Dodaj „kopija” kopiranim slojevima i grupama+ Animation Options Opcije animacije+ Entire Document Ceo dokument+ Expand New Effects Proširi nove efekte+ Filter Options Opcije filtera+ Layer Bounds Granice sloja+ Layers Panel Options Opcije panela Slojevi+ New Artboard… Nova radna tabla…+ New Group… Nova grupa…+ Prevent Auto-Nesting Spreči automatsko ugnežđavanje+ Preview on canvas when reordering layers Pregled na platnu pri promeni redosleda slojeva+ Show Layers Prikaži slojeve+ Show layer mask badges Prikaži oznake maske sloja+ Thumbnail Contents Sadržaj sličice+ Thumbnail Size Veličina sličice+ Accept and Go to Conflict Prihvati i idi na sukob+ Changes undone. Izmene su poništene.+ Choose a new shortcut for this command, or leave it without one. Izaberite novu prečicu za ovu komandu ili je ostavite bez prečice.+ Put this command's shortcuts back as they were Vrati prečice ove komande kakve su bile+ Take the shortcut from the other command and select it Uzmi prečicu drugoj komandi i izaberi je+ Undo Changes Poništi izmene+ {shortcut} is reserved by the system and can't be assigned. {shortcut} je rezervisana od strane sistema i ne može se dodeliti.+ Low-Latency Drawing (vsync off, applies at next launch) Crtanje sa malim kašnjenjem (bez vsync-a, primenjuje se pri sledećem pokretanju)+ # Free Transform: a new layer while the box is open (#5859)+ Free Transform is still being applied; try again when it has finished. Slobodna transformacija se još primenjuje; pokušajte ponovo kad se završi.+ The transform couldn't be applied. Transformacija nije mogla da se primeni.+ # Preferences › Performance › GPU Memory; the status bar and slow-redraw notice+ Its layers need {needed} of GPU memory; the budget leaves them {budget}. Njegovim slojevima treba {needed} GPU memorije; budžet im ostavlja {budget}.+ Set GPU Memory in Preferences › Performance to what your graphics card can hold, at most 3/8 of its memory. Automatic follows Memory Usage, within a quarter of this computer's memory and 3/8 of the card's, and doesn't count the document against a card whose memory is known. The status bar shows GPU Memory Full while they don't fit. Podesite GPU memoriju u Podešavanja › Performanse na onoliko koliko vaša grafička kartica može da primi, najviše 3/8 njene memorije. Automatski prati Korišćenje memorije, u okviru četvrtine memorije ovog računara i 3/8 memorije kartice, i ne računa dokument kod kartice čija je memorija poznata. Dok ne staju, statusna traka prikazuje GPU memorija je puna.+ GPU Memory Full GPU memorija je puna+ The layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. Slojevima treba {needed} GPU memorije, a smeju da zauzmu {budget}, pa izmene koje ponovo iscrtavaju ceo dokument to rade na CPU-u. Kliknite da podesite GPU memoriju.+ GPU memory budget: {budget} Budžet GPU memorije: {budget}+ This document's layers: {needed} of {budget} for layers Slojevi ovog dokumenta: {needed} od {budget} za slojeve+ This document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Slojevima ovog dokumenta treba {needed}, a smeju da zauzmu {budget}: ceo dokument se ponovo iscrtava na CPU-u+ GPU Memory (MB, 0 = Automatic) GPU memorija (MB, 0 = Automatski)diff --cc crates/ui-egui/src/i18n/tr.tsvindex 80a8f3d20,5c35aba71..63f8f07d5--- a/crates/ui-egui/src/i18n/tr.tsv+++ b/crates/ui-egui/src/i18n/tr.tsv@@@ -3919,20 -3918,23 +3918,40 @@@ cameraData Lens LenThere are too many sets: delete one first. Çok fazla küme var: önce birini silin.set name küme adı{set} (modified) {set} (değiştirildi)++# Layers panel options and Smart Filter editors+ Add “copy” to Copied Layers and Groups Kopyalanan Katman ve Gruplara “kopya” Ekle+ Animation Options Animasyon Seçenekleri+ Entire Document Tüm Belge+ Expand New Effects Yeni Efektleri Genişlet+ Filter Options Filtre Seçenekleri+ Layer Bounds Katman Sınırları+ Layers Panel Options Katmanlar Paneli Seçenekleri+ New Artboard… Yeni Çalışma Yüzeyi…+ New Group… Yeni Grup…+ Prevent Auto-Nesting Otomatik Yerleştirmeyi Önle+ Preview on canvas when reordering layers Katmanları yeniden sıralarken kanvasta önizle+ Show Layers Katmanları Göster+ Show layer mask badges Katman maskesi rozetlerini göster+ Thumbnail Contents Küçük Resim İçeriği+ Thumbnail Size Küçük Resim Boyutu+ Accept and Go to Conflict Kabul Et ve Çakışmaya Git+ Changes undone. Değişiklikler geri alındı.+ Choose a new shortcut for this command, or leave it without one. Bu komut için yeni bir kısayol seçin veya kısayolsuz bırakın.+ Put this command's shortcuts back as they were Bu komutun kısayollarını eski haline getir+ Take the shortcut from the other command and select it Kısayolu diğer komuttan al ve o komutu seç+ Undo Changes Değişiklikleri Geri Al+ {shortcut} is reserved by the system and can't be assigned. {shortcut} sistem tarafından ayrılmıştır ve atanamaz.+ Low-Latency Drawing (vsync off, applies at next launch) Düşük gecikmeli çizim (dikey eşitleme kapalı, sonraki açılışta geçerli)+ # Free Transform: a new layer while the box is open (#5859)+ Free Transform is still being applied; try again when it has finished. Serbest Dönüştürme hâlâ uygulanıyor; bittiğinde yeniden deneyin.+ The transform couldn't be applied. Dönüştürme uygulanamadı.+ # Preferences › Performance › GPU Memory; the status bar and slow-redraw notice+ Its layers need {needed} of GPU memory; the budget leaves them {budget}. Katmanlarının {needed} GPU belleğine ihtiyacı var; bütçe onlara {budget} bırakıyor.+ Set GPU Memory in Preferences › Performance to what your graphics card can hold, at most 3/8 of its memory. Automatic follows Memory Usage, within a quarter of this computer's memory and 3/8 of the card's, and doesn't count the document against a card whose memory is known. The status bar shows GPU Memory Full while they don't fit. Tercihler › Performans içindeki GPU Belleği'ni ekran kartınızın kaldırabileceği miktara, en fazla belleğinin 3/8'ine ayarlayın. Otomatik, Bellek kullanımını izler; bu bilgisayarın belleğinin dörtte biri ve kartın belleğinin 3/8'i içinde kalır, belleği bilinen bir kartta belgeyi hesaba katmaz. Sığmadıkları sürece durum çubuğu GPU Belleği Dolu gösterir.+ GPU Memory Full GPU Belleği Dolu+ The layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. Katmanların {needed} GPU belleğine ihtiyacı var ve en fazla {budget} kullanabilirler; bu yüzden tüm belgeyi yeniden çizen düzenlemeler bunu CPU'da yapar. GPU Belleği'ni ayarlamak için tıklayın.+ GPU memory budget: {budget} GPU bellek bütçesi: {budget}+ This document's layers: {needed} of {budget} for layers Bu belgenin katmanları: katmanlar için {budget} içinden {needed}+ This document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Bu belgenin katmanlarının {needed} belleğe ihtiyacı var ama en fazla {budget} kullanabilirler: tüm belgenin yeniden çizimi CPU'yu kullanır+ GPU Memory (MB, 0 = Automatic) GPU Belleği (MB, 0 = Otomatik)diff --cc crates/ui-egui/src/i18n/vi.tsvindex 358adaa35,e2e55ab1b..2db7954ca--- a/crates/ui-egui/src/i18n/vi.tsv+++ b/crates/ui-egui/src/i18n/vi.tsv@@@ -3675,21 -3674,23 +3674,41 @@@ curves Smooth Làm mượThere are too many sets: delete one first. Có quá nhiều bộ: hãy xóa một bộ trước.set name tên bộ{set} (modified) {set} (đã sửa đổi)++# Layers panel options and Smart Filter editors+ Add “copy” to Copied Layers and Groups Thêm “bản sao” vào lớp và nhóm được sao chép+ Animation Options Tùy chọn hoạt ảnh+ Entire Document Toàn bộ tài liệu+ Expand New Effects Mở rộng hiệu ứng mới+ Filter Options Tùy chọn bộ lọc+ Layer Bounds Đường biên lớp+ Layers Panel Options Tùy chọn bảng Lớp+ New Artboard… Bảng vẽ mới…+ New Group… Nhóm mới…+ Panel Options… Tùy chọn bảng…+ Prevent Auto-Nesting Chặn tự lồng+ Preview on canvas when reordering layers Xem trước trên Canvas khi sắp xếp lại lớp+ Show Layers Hiện các lớp+ Show layer mask badges Hiện huy hiệu mặt nạ lớp+ Thumbnail Contents Nội dung hình thu nhỏ+ Thumbnail Size Kích thước hình thu nhỏ+ Accept and Go to Conflict Chấp nhận và đến xung đột+ Changes undone. Đã hoàn tác thay đổi.+ Choose a new shortcut for this command, or leave it without one. Chọn phím tắt mới cho lệnh này, hoặc để lệnh không có phím tắt.+ Put this command's shortcuts back as they were Khôi phục phím tắt của lệnh này như cũ+ Take the shortcut from the other command and select it Lấy phím tắt khỏi lệnh kia và chọn lệnh đó+ Undo Changes Hoàn tác thay đổi+ {shortcut} is reserved by the system and can't be assigned. {shortcut} được hệ thống dành riêng và không thể gán.+ Low-Latency Drawing (vsync off, applies at next launch) Vẽ độ trễ thấp (tắt vsync, áp dụng ở lần khởi động sau)+ # Free Transform: a new layer while the box is open (#5859)+ Free Transform is still being applied; try again when it has finished. Biến đổi tự do vẫn đang được áp dụng; hãy thử lại khi hoàn tất.+ The transform couldn't be applied. Không thể áp dụng phép biến đổi.+ # Preferences › Performance › GPU Memory; the status bar and slow-redraw notice+ Its layers need {needed} of GPU memory; the budget leaves them {budget}. Các lớp cần {needed} bộ nhớ GPU; ngân sách chỉ dành cho chúng {budget}.+ Set GPU Memory in Preferences › Performance to what your graphics card can hold, at most 3/8 of its memory. Automatic follows Memory Usage, within a quarter of this computer's memory and 3/8 of the card's, and doesn't count the document against a card whose memory is known. The status bar shows GPU Memory Full while they don't fit. Đặt Bộ nhớ GPU trong Tùy chọn › Hiệu năng bằng mức card đồ họa của bạn chứa được, tối đa 3/8 bộ nhớ của card. Tự động theo mức sử dụng bộ nhớ, trong giới hạn một phần tư bộ nhớ máy này và 3/8 bộ nhớ card, và không tính tài liệu vào card đã biết dung lượng bộ nhớ. Khi chúng chưa vừa, thanh trạng thái hiện Bộ nhớ GPU đầy.+ GPU Memory Full Bộ nhớ GPU đầy+ The layers need {needed} of GPU memory and may hold {budget}, so edits that redraw the whole document do it on the CPU. Click to set GPU Memory. Các lớp cần {needed} bộ nhớ GPU và chỉ được dùng {budget}, nên những chỉnh sửa vẽ lại toàn bộ tài liệu sẽ làm trên CPU. Nhấp để đặt Bộ nhớ GPU.+ GPU memory budget: {budget} Ngân sách bộ nhớ GPU: {budget}+ This document's layers: {needed} of {budget} for layers Các lớp của tài liệu này: {needed} trên {budget} dành cho lớp+ This document's layers need {needed} but may hold {budget}: whole-document redraws use the CPU Các lớp của tài liệu này cần {needed} nhưng chỉ được dùng {budget}: vẽ lại toàn bộ tài liệu dùng CPU+ GPU Memory (MB, 0 = Automatic) Bộ nhớ GPU (MB, 0 = Tự động)