napari
napari copied to clipboard
Use Overlays to be able to provide layer names on the canvas (including grid mode)
trafficstars
🚀 Feature
it can be useful, e.g. for screenshots, to be able to put the layer name on the canvas -- like the scale bar (+/- box, font size control). As overlay for this would be perfect, but it would need to be translated in grid mode to stay with the layer.
Motivation
See https://github.com/napari/napari/pull/7319#issuecomment-2394915226 There are 5 layers shown in grid mode, but it's not possible to label them easily as to which represents what.
Pitch
An overlay implementation for a text box with font and color control and with a box background with color control. The box would be able to be positioned in the 4 corners of the canvas. In grid mode, the overlay would stick with the layer.
Alternatives
?