Skip to content

Ranged slider label values do not display properly (dims angle popup, contrast sliders, etc) #8534

@TimMonko

Description

@TimMonko

🐛 Bug Report

Camera angle values are not properly displaying in the camera popup widget, there are two issues:

  1. the code sets decimals to 0 (so I think label size is made with this assumption), but it displays with 2 decimal places, so it looks bad <-- PR to fix in napari Fix angle label values in ndim popup widget #8535 alternatively, I figured out maybe how to do this upstream in Update text after settings decimals in SliderLabel pyapp-kit/superqt#323
  2. values outside the default slider range (0,99) get clamped at the min or max, despite us overriding the slider range. <- I think this will be fixed upstream in superqt Fix values of slider label when range/value is set outside default pyapp-kit/superqt#320
Image

💡 Steps to Reproduce

  1. Open an image
  2. toggle to 3D
  3. Set any negative camera angle values
  4. Open dims popup widget and negative values show as 0

--or--

  1. Open an image
  2. toggle to 3D
  3. open dims popup widget
  4. drag angle value to negative and it will be clamped at 0, or positive and clamped to 99

💡 Expected Behavior

No response

🌎 Environment

napari: 0.7.0a0
Platform: Windows-10-10.0.26200-SP0
Python: 3.10.6 | packaged by conda-forge | (main, Aug 22 2022, 20:29:51) [MSC v.1929 64 bit (AMD64)]
Qt: 6.10.0
PyQt6: 6.10.1
NumPy: 2.2.6
SciPy: 1.15.3
Dask: 2025.12.0
VisPy: 0.15.2
magicgui: 0.10.1
superqt: 0.7.7
in-n-out: 0.2.1
app-model: 0.4.0
psygnal: 0.15.0
npe2: 0.7.9
pydantic: 2.12.5

OpenGL:

  • PyOpenGL: 3.1.10
  • GL version: 4.6.0 NVIDIA 581.08
  • MAX_TEXTURE_SIZE: 32768
  • GL_MAX_3D_TEXTURE_SIZE: 16384

Screens:

  • screen 1: resolution 2560x1440, scale 1.5
  • screen 2: resolution 1440x2560, scale 1.0

Optional:

  • numba: 0.63.1
  • triangle: 20250106
  • napari-plugin-manager: 0.1.9
  • bermuda: 0.1.6
  • PartSegCore not installed

Experimental Settings:

  • Async: False
  • Autoswap buffers: False
  • Triangulation backend: Fastest available

Settings path:

  • C:\Users\timmo\AppData\Local\napari\sANB4W_IgPPiZEBPKgPpj_2e2078d89434926481eb27d5547fa4d144063d4f\settings.yaml

Launch command:

  • C:\Users\timmo\AppData\Local\uv\cache\archive-v0\sANB4W_IgPPiZEBPKgPpj\Scripts\napari

Plugins:

  • napari: 0.7.0a0 (88 contributions)
  • napari-console: 0.1.4 (0 contributions)
  • napari-svg: 0.2.1 (2 contributions)

💡 Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions