andy-sweet / napari-metadata

A napari plugin to view and edit metadata
BSD 3-Clause "New" or "Revised" License
10 stars 3 forks source link

Add spacing for each dimension #11

Closed andy-sweet closed 1 year ago

andy-sweet commented 1 year ago

This adds a new widget to the main plugin widget where each row shows and allow control of each dimension's space (e.g. pixel size). This deviates from the initial designs in an effort to accommodate napari's general n-dimensional layer approach, but gets closer to it and is similar in spirit.

Screenshot 2023-02-03 at 2 25 08 PM

I chose to use a spinbox to indicate this is a numeric value and to allow easy modification and validation of values manually edited. We could consider a line edit with a custom positive double validator later though, as spin boxes can be a little finicky.

I also removed some of the early prototype code and simplified the read-only attributes.

Closes #4.