From 29d2df2fbab4fc6ba456559c73814a63fb71d9ed Mon Sep 17 00:00:00 2001 From: Juan Nunez-Iglesias Date: Wed, 26 Jun 2024 15:08:46 +1000 Subject: [PATCH] Add nap6 menu contributions (#96) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR places the affinder widgets in defined menus in napari>=0.5.0. See NAP-6 for details: https://napari.org/dev/naps/6-contributable-menus.html Result (needs napari/napari#7011): Screenshot 2024-06-26 at 2 50 42 PM Screenshot 2024-06-26 at 2 50 51 PM --- src/affinder/napari.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/affinder/napari.yaml b/src/affinder/napari.yaml index 16084a2..ab0355e 100644 --- a/src/affinder/napari.yaml +++ b/src/affinder/napari.yaml @@ -24,4 +24,11 @@ contributions: - command: affinder.apply_affine display_name: Apply affine - command: affinder.load_affine - display_name: Load affine \ No newline at end of file + display_name: Load affine + menus: + napari/layers/register: + - command: affinder.start_affinder + napari/layers/transform: + - command: affinder.copy_affine + - command: affinder.apply_affine + - command: affinder.load_affine