Closed chapulina closed 4 years ago
Does this implementation meet a few of the ticket requirements?
I tried to add a button on the title bar to expand/collapse the plugin. I set the height of the plugin card rectangle to 50 (height of the title bar) to collapse the plugin. Is this correct? (feels kind of hacky way to do it)
Nice, that looks great! That sounds like a valid implementation to me. I believe it also works when the plugins are docked, right?
Looking at your gif, I also think it would make it super nice to apply a NumberAnimation to the height
when changing it, to make the transition smoother. See an example here:
Nice, that looks great! That sounds like a valid implementation to me.
Great!
I believe it also works when the plugins are docked, right?
Not yet, will work on that.
Looking at your gif, I also think it would make it super nice to apply a NumberAnimation to the height when changing it, to make the transition smoother.
Yes, it is snappy at the moment. I'll try to add this feature as well.
As we start having larger plugins, they start taking more and more real estate on the window. For example, the plotting tool (#66) and the resource spawner (https://github.com/ignitionrobotics/ign-gazebo/issues/31) will be too large to keep on the left panel, and too large to be overlapped on top of the 3D scene when undocked.
Some plugins could be launched on their own window using 'ign gui -s'. This should work for plotting if all the user needs are topics. But plugins like the spawner will need to be on the same process as the 3D scene. So we need a way to make large plugins more manageable.
The idea on this ticket is to let plugins be collapsed / minimized. This applies to both docked and undocked plugins.
The minimize / maximize buttons could be on the plugin toolbar next to dock / undock.