sudara / melatonin_inspector

A JUCE module that gives you the ability to inspect and visually edit (non-destructively) components in your UI.
MIT License
156 stars 18 forks source link

Selection lock #90

Closed FigBug closed 6 months ago

FigBug commented 1 year ago

I need to be able to click around in my UI without losing the component I'm currently looking at. A switch to disable the overlay while keeping the inspector active?

sudara commented 1 year ago

I like the concept of a lock. Maybe as an icon available on hover in the tree view? Is it good enough if “click to select” behavior is disabled and overlay remains? (selected component border could turn red to help indicate)

Intersects a bit with #74 and #49

sudara commented 6 months ago

103 contains a basic implementation for this. It disables selection and hover outline.

An followup improvement could be "if nothing was selected, the next selected item gets locked".