PhotoCraft: An open-source, photo editor written by scratch in pure Rust
Layers: right-clicking a layer-mask thumbnail opens the mask menu (fixes #4575) (#4605)
Marco Arnulfo4eb8ca25bd1e
diff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsvindex f5046dea0..495fe5eb1 100644--- a/crates/ui-egui/src/i18n/cs.tsv+++ b/crates/ui-egui/src/i18n/cs.tsv@@ -859,6 +859,9 @@Appearance VzhledAppearance (Layer Style) Vzhled (styl vrstvy)Apply Layer Mask Použít masku vrstvy+ Add Mask to Selection Přidat masku do výběru+ Subtract Mask from Selection Odečíst masku od výběru+ Intersect Mask with Selection Průnik masky s výběremApply Per Tip Použít pro každý hrotApply next selected layer comp Použít další vybranou kompozici vrstevApply previous selected layer comp Použít předchozí vybranou kompozici vrstevdiff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsvindex b1d22f83f..de1184757 100644--- a/crates/ui-egui/src/i18n/de.tsv+++ b/crates/ui-egui/src/i18n/de.tsv@@ -837,6 +837,9 @@Appearance ErscheinungsbildAppearance (Layer Style) Erscheinungsbild (Ebenenstil)Apply Layer Mask Ebenenmaske anwenden+ Add Mask to Selection Maske zur Auswahl hinzufügen+ Subtract Mask from Selection Maske von Auswahl subtrahieren+ Intersect Mask with Selection Schnittmenge von Maske und AuswahlApply Per Tip Pro Pinselspitze anwendenApply next selected layer comp Nächste ausgewählte Ebenenkomposition anwendenApply previous selected layer comp Vorherige ausgewählte Ebenenkomposition anwendendiff --git a/crates/ui-egui/src/i18n/el.tsv b/crates/ui-egui/src/i18n/el.tsvindex 0b5bdb81c..3b81c4b63 100644--- a/crates/ui-egui/src/i18n/el.tsv+++ b/crates/ui-egui/src/i18n/el.tsv@@ -262,6 +262,9 @@Add Layer Mask Προσθήκη μάσκας επιπέδουAlways use pressure for opacity Πάντα χρήση πίεσης για την αδιαφάνειαApply Layer Mask Εφαρμογή μάσκας επιπέδου+ Add Mask to Selection Προσθήκη μάσκας στην επιλογή+ Subtract Mask from Selection Αφαίρεση μάσκας από την επιλογή+ Intersect Mask with Selection Τομή μάσκας με την επιλογήBrush Preset picker Επιλογή προεπιλογής πινέλουBrush Reconstruct Options Επιλογές πινέλου επαναφοράςBrush Tool Options Επιλογές πινέλου (Brush Tool)diff --git a/crates/ui-egui/src/i18n/es.tsv b/crates/ui-egui/src/i18n/es.tsvindex 78c4087f5..0a47b7a53 100644--- a/crates/ui-egui/src/i18n/es.tsv+++ b/crates/ui-egui/src/i18n/es.tsv@@ -846,6 +846,9 @@Appearance AparienciaAppearance (Layer Style) Apariencia (estilo de capa)Apply Layer Mask Aplicar máscara de capa+ Add Mask to Selection Añadir máscara a la selección+ Subtract Mask from Selection Restar máscara de la selección+ Intersect Mask with Selection Intersecar máscara con la selecciónApply Per Tip Aplicar por puntaApply next selected layer comp Aplicar la composición de capa seleccionada siguienteApply previous selected layer comp Aplicar la composición de capa seleccionada anteriordiff --git a/crates/ui-egui/src/i18n/fr.tsv b/crates/ui-egui/src/i18n/fr.tsvindex f5fecc2a9..a3a39498e 100644--- a/crates/ui-egui/src/i18n/fr.tsv+++ b/crates/ui-egui/src/i18n/fr.tsv@@ -834,6 +834,9 @@Appearance ApparenceAppearance (Layer Style) Apparence (style de calque)Apply Layer Mask Appliquer le masque de calque+ Add Mask to Selection Ajouter le masque à la sélection+ Subtract Mask from Selection Soustraire le masque de la sélection+ Intersect Mask with Selection Intersection du masque et de la sélectionApply Per Tip Appliquer par pointeApply next selected layer comp Appliquer la composition de calques sélectionnée suivanteApply previous selected layer comp Appliquer la composition de calques sélectionnée précédentediff --git a/crates/ui-egui/src/i18n/hu.tsv b/crates/ui-egui/src/i18n/hu.tsvindex 70617d1c3..c0237c621 100644--- a/crates/ui-egui/src/i18n/hu.tsv+++ b/crates/ui-egui/src/i18n/hu.tsv@@ -444,6 +444,9 @@Appearance MegjelenésApply Data Set Adatkészlet alkalmazásaApply Layer Mask Rétegmaszk alkalmazása+ Add Mask to Selection Maszk hozzáadása a kijelöléshez+ Subtract Mask from Selection Maszk kivonása a kijelölésből+ Intersect Mask with Selection Maszk metszése a kijelölésselArtboard Guides Rajztábla-segédvonalakArtboards to Files Rajztáblák fájlokbaArtboards to PDF Rajztáblák PDF-bediff --git a/crates/ui-egui/src/i18n/id.tsv b/crates/ui-egui/src/i18n/id.tsvindex deb42f1bd..ae03ea06e 100644--- a/crates/ui-egui/src/i18n/id.tsv+++ b/crates/ui-egui/src/i18n/id.tsv@@ -828,6 +828,9 @@Appearance TampilanAppearance (Layer Style) Tampilan (Gaya Layer)Apply Layer Mask Terapkan Mask Layer+ Add Mask to Selection Tambahkan Mask ke Seleksi+ Subtract Mask from Selection Kurangi Mask dari Seleksi+ Intersect Mask with Selection Iriskan Mask dengan SeleksiApply Per Tip Terapkan Per UjungApply next selected layer comp Terapkan layer comp terpilih berikutnyaApply previous selected layer comp Terapkan layer comp terpilih sebelumnyadiff --git a/crates/ui-egui/src/i18n/it.tsv b/crates/ui-egui/src/i18n/it.tsvindex ec937b1ca..ec0b10070 100644--- a/crates/ui-egui/src/i18n/it.tsv+++ b/crates/ui-egui/src/i18n/it.tsv@@ -843,6 +843,9 @@Appearance AspettoAppearance (Layer Style) Aspetto (stile livello)Apply Layer Mask Applica maschera di livello+ Add Mask to Selection Aggiungi maschera alla selezione+ Subtract Mask from Selection Sottrai maschera dalla selezione+ Intersect Mask with Selection Interseca maschera con la selezioneApply Per Tip Applica per puntaApply next selected layer comp Applica composizione livelli successiva selezionataApply previous selected layer comp Applica composizione livelli precedente selezionatadiff --git a/crates/ui-egui/src/i18n/ja.tsv b/crates/ui-egui/src/i18n/ja.tsvindex abadbec8d..5e063a690 100644--- a/crates/ui-egui/src/i18n/ja.tsv+++ b/crates/ui-egui/src/i18n/ja.tsv@@ -847,6 +847,9 @@Appearance 外観Appearance (Layer Style) 外観 (レイヤースタイル)Apply Layer Mask レイヤーマスクを適用+ Add Mask to Selection マスクを選択範囲に追加+ Subtract Mask from Selection 選択範囲からマスクを削除+ Intersect Mask with Selection 選択範囲とマスクの共通範囲Apply Per Tip 先端ごとに適用Apply next selected layer comp 次のレイヤーカンプを適用Apply previous selected layer comp 前のレイヤーカンプを適用diff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsvindex 815a54c17..abf32226c 100644--- a/crates/ui-egui/src/i18n/ko.tsv+++ b/crates/ui-egui/src/i18n/ko.tsv@@ -819,6 +819,9 @@Appearance 모양새Appearance (Layer Style) 모양새(레이어 스타일)Apply Layer Mask 레이어 마스크 적용+ Add Mask to Selection 선택 영역에 마스크 추가+ Subtract Mask from Selection 선택 영역에서 마스크 빼기+ Intersect Mask with Selection 마스크와 선택 영역 교차Apply Per Tip 끝당 적용Apply next selected layer comp 선택한 다음 레이어 구성 요소 적용Apply previous selected layer comp 선택한 이전 레이어 구성 요소 적용diff --git a/crates/ui-egui/src/i18n/nl.tsv b/crates/ui-egui/src/i18n/nl.tsvindex 55163dd7c..7fdaee3d3 100644--- a/crates/ui-egui/src/i18n/nl.tsv+++ b/crates/ui-egui/src/i18n/nl.tsv@@ -826,6 +826,9 @@Appearance WeergaveAppearance (Layer Style) Weergave (laagstijl)Apply Layer Mask Laagmasker toepassen+ Add Mask to Selection Masker aan selectie toevoegen+ Subtract Mask from Selection Masker van selectie aftrekken+ Intersect Mask with Selection Masker met selectie laten snijdenApply Per Tip Per punt toepassenApply next selected layer comp Volgende geselecteerde laagcompositie toepassenApply previous selected layer comp Vorige geselecteerde laagcompositie toepassendiff --git a/crates/ui-egui/src/i18n/pl.tsv b/crates/ui-egui/src/i18n/pl.tsvindex cd4a9b561..44f05e1f0 100644--- a/crates/ui-egui/src/i18n/pl.tsv+++ b/crates/ui-egui/src/i18n/pl.tsv@@ -845,6 +845,9 @@Appearance WyglądAppearance (Layer Style) Wygląd (styl warstwy)Apply Layer Mask Zastosuj maskę warstwy+ Add Mask to Selection Dodaj maskę do zaznaczenia+ Subtract Mask from Selection Odejmij maskę od zaznaczenia+ Intersect Mask with Selection Część wspólna maski i zaznaczeniaApply Per Tip Zastosuj dla każdego odciskuApply next selected layer comp Zastosuj następną zaznaczoną kompozycję warstwApply previous selected layer comp Zastosuj poprzednią zaznaczoną kompozycję warstwdiff --git a/crates/ui-egui/src/i18n/pt-br.tsv b/crates/ui-egui/src/i18n/pt-br.tsvindex 75af64655..36c807982 100644--- a/crates/ui-egui/src/i18n/pt-br.tsv+++ b/crates/ui-egui/src/i18n/pt-br.tsv@@ -828,6 +828,9 @@Appearance AparênciaAppearance (Layer Style) Aparência (estilo de camada)Apply Layer Mask Aplicar máscara de camada+ Add Mask to Selection Adicionar máscara à seleção+ Subtract Mask from Selection Subtrair máscara da seleção+ Intersect Mask with Selection Fazer interseção da máscara com a seleçãoApply Per Tip Aplicar por pontaApply next selected layer comp Aplicar a próxima composição de camadas selecionadaApply previous selected layer comp Aplicar a composição de camadas selecionada anteriordiff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsvindex 7b4345958..6db38291e 100644--- a/crates/ui-egui/src/i18n/ru.tsv+++ b/crates/ui-egui/src/i18n/ru.tsv@@ -206,6 +206,9 @@Enable Layer Mask Включить маску слояDisable Layer Mask Отключить маску слояApply Layer Mask Применить маску слоя+ Add Mask to Selection Добавить маску к выделению+ Subtract Mask from Selection Вычесть маску из выделения+ Intersect Mask with Selection Пересечь маску с выделениемLink Layer Mask Связать маску слояUnlink Layer Mask Отвязать маску слояVector Mask Векторная маскаdiff --git a/crates/ui-egui/src/i18n/tr.tsv b/crates/ui-egui/src/i18n/tr.tsvindex 0d25e0204..f7834ec5e 100644--- a/crates/ui-egui/src/i18n/tr.tsv+++ b/crates/ui-egui/src/i18n/tr.tsv@@ -821,6 +821,9 @@Appearance GörünümAppearance (Layer Style) Görünüm (Katman Stili)Apply Layer Mask Katman Maskesini Uygula+ Add Mask to Selection Maskeyi Seçime Ekle+ Subtract Mask from Selection Maskeyi Seçimden Çıkar+ Intersect Mask with Selection Maskeyi Seçimle KesiştirApply Per Tip İpucu Başına UygulaApply next selected layer comp Sonraki seçilen katman kompozisyonunu uygulaApply previous selected layer comp Önceki seçilen katman kompozisyonunu uyguladiff --git a/crates/ui-egui/src/i18n/uk.tsv b/crates/ui-egui/src/i18n/uk.tsvindex d3d227a1a..8fc8f1b79 100644--- a/crates/ui-egui/src/i18n/uk.tsv+++ b/crates/ui-egui/src/i18n/uk.tsv@@ -193,6 +193,9 @@Enable Layer Mask Увімкнути маску шаруDisable Layer Mask Вимкнути маску шаруApply Layer Mask Застосувати маску шару+ Add Mask to Selection Додати маску до виділення+ Subtract Mask from Selection Відняти маску від виділення+ Intersect Mask with Selection Перетнути маску з виділеннямLink Layer Mask Зв'язати маску шаруUnlink Layer Mask Відв'язати маску шаруVector Mask Векторна маскаdiff --git a/crates/ui-egui/src/i18n/vi.tsv b/crates/ui-egui/src/i18n/vi.tsvindex 3192be995..3ffe96661 100644--- a/crates/ui-egui/src/i18n/vi.tsv+++ b/crates/ui-egui/src/i18n/vi.tsv@@ -948,6 +948,9 @@Duplicate Layers… Nhân bản các lớp…Add Layer Mask Thêm mặt nạ lớpApply Layer Mask Áp dụng mặt nạ lớp+ Add Mask to Selection Thêm mặt nạ vào vùng chọn+ Subtract Mask from Selection Trừ mặt nạ khỏi vùng chọn+ Intersect Mask with Selection Giao mặt nạ với vùng chọnDelete Layer Mask Xóa mặt nạ lớpDisable Layer Mask Tắt mặt nạ lớpRelease Clipping Mask Nhả mặt nạ cắtdiff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsvindex b8c4e8a6b..a3bb7fa70 100644--- a/crates/ui-egui/src/i18n/zh-hans.tsv+++ b/crates/ui-egui/src/i18n/zh-hans.tsv@@ -848,6 +848,9 @@Appearance 外观Appearance (Layer Style) 外观(图层样式)Apply Layer Mask 应用图层蒙版+ Add Mask to Selection 添加蒙版到选区+ Subtract Mask from Selection 从选区中减去蒙版+ Intersect Mask with Selection 蒙版与选区交叉Apply Per Tip 应用于每个笔尖Apply next selected layer comp 应用下一个选中的图层复合Apply previous selected layer comp 应用上一个选中的图层复合diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsvindex 877e666c4..e3ddcbb55 100644--- a/crates/ui-egui/src/i18n/zh-hant.tsv+++ b/crates/ui-egui/src/i18n/zh-hant.tsv@@ -851,6 +851,9 @@Appearance 外觀Appearance (Layer Style) 外觀 (圖層樣式)Apply Layer Mask 套用圖層遮色片+ Add Mask to Selection 增加遮色片至選取範圍+ Subtract Mask from Selection 從選取範圍中減去遮色片+ Intersect Mask with Selection 遮色片與選取範圍相交Apply Per Tip 依筆尖套用Apply next selected layer comp 套用下一個選取的圖層構圖Apply previous selected layer comp 套用上一個選取的圖層構圖diff --git a/crates/ui-egui/src/layer_menu_ui.rs b/crates/ui-egui/src/layer_menu_ui.rsindex 5be01c750..beb3e9bc3 100644--- a/crates/ui-egui/src/layer_menu_ui.rs+++ b/crates/ui-egui/src/layer_menu_ui.rs@@ -157,6 +157,41 @@ pub fn show(app: &crate::PhotocraftApp, ui: &mut egui::Ui, l: &Layer, on_set: bo})}+/// The menu of `l`'s layer-mask thumbnail (#4575), in Photoshop's order. It acts on `l`, which it+/// selects first like the row menu. Photoshop's Mask Options… (the overlay colour) has no+/// command yet, so it is left out.+pub fn show_mask(app: &crate::PhotocraftApp, ui: &mut egui::Ui, l: &Layer, actions: &mut Vec<(String, Value)>) {+ let Some(mask) = &l.mask else { return };+ crate::widgets::menu_scroll(ui, |ui| {+ ui.set_min_width(220.0);+ let edits = vec![+ Some((tl!(mask_toggle_label(mask.enabled)), "layer.layerMask.enabled")),+ Some((tl!("Delete Layer Mask"), "layer.layerMask.delete")),+ Some((tl!("Apply Layer Mask"), "layer.layerMask.apply")),+ ];+ items(app, ui, l, false, edits, actions);+ ui.separator();+ // ⌘⇧-, ⌘⌥- and ⌘⇧⌥-clicking the thumbnail, as menu items.+ let loads =+ [(tl!("Add Mask to Selection"), "add"), (tl!("Subtract Mask from Selection"), "subtract"), (tl!("Intersect Mask with Selection"), "intersect")];+ for (label, operation) in loads {+ if ui.button(label).clicked() {+ actions.push(("layer.select".into(), json!({"layer": l.id.0})));+ actions.push(("select.loadSelection".into(), json!({"channel": "mask", "layer": l.id.0, "operation": operation})));+ ui.close();+ }+ }+ ui.separator();+ if ui.add_enabled(crate::menus::is_enabled(app, "select.selectAndMask"), egui::Button::new(tl!("Select and Mask…"))).clicked() {+ // Like double-clicking the thumbnail with that preference on: it refines the mask.+ actions.push(("layer.select".into(), json!({"layer": l.id.0})));+ actions.push(("ui.maskTarget".into(), json!(true)));+ actions.push(("select.selectAndMask".into(), Value::Null));+ ui.close();+ }+ });+}+/// Render the layer style menu of `l`'s effect rows ([`effects_entries`]); the actions select `l`/// first when it isn't the active layer.pub fn show_effects(app: &crate::PhotocraftApp, ui: &mut egui::Ui, l: &Layer, actions: &mut Vec<(String, Value)>) {@@ -434,6 +469,60 @@ mod tests {}}+ /// #4575: right-clicking a layer-mask thumbnail opens Photoshop's mask menu, not the layer+ /// menu, and its selection items load the clicked layer's mask (not the active layer's).+ #[test]+ fn mask_thumbnail_context_menu_acts_on_the_clicked_mask() {+ use crate::PhotocraftApp;+ use egui::{Event, Modifiers, PointerButton, Pos2, vec2};+ use egui_kittest::{Harness, kittest::Queryable};++ fn click(h: &mut Harness<'_, PhotocraftApp>, at: Pos2, button: PointerButton) {+ h.hover_at(at);+ h.step();+ for pressed in [true, false] {+ h.event(Event::PointerButton { pos: at, button, pressed, modifiers: Modifiers::NONE });+ h.step();+ }+ h.run_steps(3);+ }++ let mut s = photocraft_engine::Session::new();+ s.execute("file.new", json!({"width": 100, "height": 60})).unwrap();+ s.execute("layer.new.layer", json!({"name": "Masked"})).unwrap();+ s.execute("select.rect", json!({"x": 60, "y": 0, "width": 40, "height": 60})).unwrap();+ s.execute("layer.layerMask.revealSelection", json!({})).unwrap();+ let masked = s.active().unwrap().active_layer.unwrap();+ // Another layer is active, and the selection doesn't overlap the mask.+ s.execute("layer.new.layer", json!({"name": "Other active layer"})).unwrap();+ s.execute("select.rect", json!({"x": 0, "y": 0, "width": 20, "height": 60})).unwrap();+ let mut h = Harness::builder().with_size(vec2(1440.0, 900.0)).with_step_dt(1.0 / 60.0).with_max_steps(64).build_eframe(move |cc| {+ PhotocraftApp::setup_context(&cc.egui_ctx, Default::default());+ PhotocraftApp::new(s, crate::Services::default())+ });+ let ctx = h.ctx.clone();+ let (req, _rx) = crate::control::ControlRequest::new("ui.set", json!({"dock": {"collapsed": ["color", "properties", "history", "navigator"]}}));+ crate::control::handle(h.state_mut(), &ctx, &req);+ h.run_steps(8);+ let (thumbs, _) = crate::mask_thumbs_ui::recorded(&h.ctx, masked.0).expect("mask thumbnail drawn");+ let at = thumbs.iter().find(|(k, _)| *k == crate::mask_thumbs_ui::MaskKind::Pixel).unwrap().1.center();+ click(&mut h, at, PointerButton::Secondary);+ assert!(h.query_by_label("Blending Options…").is_none(), "the mask menu, not the layer menu");+ for item in+ ["Disable Layer Mask", "Delete Layer Mask", "Apply Layer Mask", "Subtract Mask from Selection", "Intersect Mask with Selection", "Select and Mask…"]+ {+ h.get_by_label(item);+ }+ let at = h.get_by_label("Add Mask to Selection").rect().center();+ click(&mut h, at, PointerButton::Primary);+ let st = h.state().session.active().unwrap();+ assert_eq!(st.active_layer, Some(masked));+ let sel = st.doc.selection.as_ref().expect("a selection");+ assert!(sel.sample_channel(10, 30, 0) > 0.99, "the selection is kept");+ assert!(sel.sample_channel(80, 30, 0) > 0.99, "the clicked layer's mask is added");+ assert!(sel.sample_channel(40, 30, 0) < 0.01, "nothing else is selected");+ }+#[test]fn a_long_layer_menu_stays_inside_a_short_window_and_scrolls() {let mut s = photocraft_engine::Session::new();diff --git a/crates/ui-egui/src/panels.rs b/crates/ui-egui/src/panels.rsindex a452040c0..adcb86f71 100644--- a/crates/ui-egui/src/panels.rs+++ b/crates/ui-egui/src/panels.rs@@ -2890,10 +2890,20 @@ fn layer_row(if let Some(done) = crate::layer_row_ui::rename_field(ui, l.id.0, edit_rect) {actions.push(done);}- // The visibility icon has its own color menu; elsewhere use the full layer menu.+ // The visibility icon has its own color menu, and the layer-mask thumbnail its mask menu+ // (#4575); elsewhere use the full layer menu.+ let on_mask_id = ui.id().with(("mask-menu", l.id.0));+ if resp.secondary_clicked() {+ let on_mask = resp.interact_pointer_pos().and_then(|p| masks.hit(p)) == Some(crate::mask_thumbs_ui::MaskKind::Pixel);+ ctx.data_mut(|d| d.insert_temp(on_mask_id, on_mask));+ }if !eye_resp.secondary_clicked() && !eye_resp.context_menu_opened() {resp.context_menu(|ui| {crate::widgets::style_spectrum_popup_menu(ui);+ if ui.ctx().data(|d| d.get_temp::<bool>(on_mask_id)).unwrap_or(false) {+ crate::layer_menu_ui::show_mask(app, ui, l, actions);+ return;+ }// Right-clicking inside a multi-selection keeps it and acts on every selected layer.let on_set = row.multi && selected;if crate::layer_menu_ui::show(app, ui, l, on_set, actions)diff --git a/docs/context-menu-parity.md b/docs/context-menu-parity.mdindex 739e445cd..76d6724b7 100644--- a/docs/context-menu-parity.md+++ b/docs/context-menu-parity.md@@ -1,6 +1,6 @@# Context-menu parity contract-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-10 · **Change:** trivial (status line and revision history added; linked from ui-parity.md) · **Target:** Adobe Photoshop 2026+> **Last reviewed:** 2026-10-13 · **Last updated:** 2026-10-13 · **Change:** minor (layer-mask thumbnail menu, #4575) · **Target:** Adobe Photoshop 2026Status: implementation contract, updated 2026-10-09. Scope: canvas, document tabs, and panels. “Right-click” means a secondary pointer click; macOS Control-click should also open the same menu where the platform sends a context-menu gesture. Photoshop changes a context menu with the active tool, selection, and panel item. Adobe documents that principle but does not publish a complete current menu catalog. **Documented** means an Adobe source explicitly names the gesture or action. **Inferred** means a PhotoCraft design target or an item known from a main menu whose presence in a Photoshop context menu still needs a current-product capture. Do not present inferred rows as exact Photoshop menus. [Adobe: panels and menus](https://helpx.adobe.com/photoshop/using/panels-menus.html), [Adobe: shortcuts and context menus](https://helpx.adobe.com/sa_en/photoshop/using/customizing-keyboard-shortcuts.html).@@ -77,7 +77,7 @@ Photoshop's Generative Fill and Delete and Fill Selection rows are left out: Pho| Surface / target | Desired options and state | PhotoCraft now | Source and confidence ||---|---|---|---|| Layers panel row | Blending Options, Duplicate/Delete, Group, export, convert/rasterize, mask, clipping, link, style copy/paste/clear, merge/flatten, Rename; filter by layer kind and selection | Implemented in layer_menu_ui.rs; item enablement uses menu commands | PhotoCraft inventory. Adobe documents layer rename/delete, color tagging, rasterization, and flattening [here](https://helpx.adobe.com/photoshop/using/layers.html); exact combined ordering **inferred** without a live capture |-| Layers panel color label / thumbnail / mask thumbnail / effect row | Color label; context actions specific to hit icon | Generic row on some targets; inspect before extending | Adobe explicitly documents right-click on layer/group to assign a color ([layers](https://helpx.adobe.com/photoshop/using/layers.html)); other icon menus need capture |+| Layers panel color label / thumbnail / mask thumbnail / effect row | Color label; context actions specific to hit icon | Layer-mask thumbnail: Disable/Delete/Apply Layer Mask, Add/Subtract/Intersect Mask with Selection, Select and Mask… (layer_menu_ui.rs `show_mask`, #4575; Mask Options… missing). Generic row on the other targets; inspect before extending | Adobe explicitly documents right-click on layer/group to assign a color ([layers](https://helpx.adobe.com/photoshop/using/layers.html)); other icon menus need capture || Channels panel row | Duplicate/Delete/Rename, channel display and overlay color, spot conversion; new/split/merge | Implemented in channels_panel.rs | PhotoCraft inventory; exact Photoshop order **inferred** || Brushes and preset panels | Rename/Delete brush or group, export selected brushes, view/reset preset choices | Rename/Delete, and preset group/item menus exist | Adobe explicitly documents Export Selected Brushes from brush/group right-click ([brushes](https://helpx.adobe.com/photoshop/desktop/apply-painting-techniques/brushes-presets/create-brush-set-painting-options.html)); Photoshop pop-up-panel rename/delete/reset/view options are [documented](https://helpx.adobe.com/photoshop/using/panels-menus.html), though some are panel-button menus || Paths, History, Actions, Swatches, Gradients, Patterns, Styles, Libraries, Properties | Target-specific duplicate/delete/rename and panel operations where a panel exists | Paths row menu added in this PR; other panels need audit | **Inferred** catalog; record a Photoshop capture before claiming parity |@@ -100,6 +100,7 @@ Each slice needs pure model tests (including every item dispatching a known comm| Date | Change | Summary ||---|---|---|+| 2026-10-13 | minor | Layer-mask thumbnail menu (#4575) || 2026-10-10 | trivial | Status line, revision history || 2026-10-09 | minor | Selection canvas reference and tool matrix updates || 2026-10-07 | minor | Pen canvas reference capture |