jean-emmanuel / open-stage-control

Libre and modular OSC / MIDI controller
https://openstagecontrol.ammd.net
GNU General Public License v3.0
702 stars 88 forks source link

[Feature] New container needed: Folder #795

Closed AtmanActive closed 1 year ago

AtmanActive commented 1 year ago

Hi,

I'm using Open Stage Control daily and I'm very much enjoying it.

Here are a few feature suggestions with the aim of making it even better.

Right now, we have all of these container options which are all great. Kudos for developing all that. But, in my daily work I feel the need for one more container type: Folder. Unlike a Panel or any other type, I would like Folder to pertain only to the tree on the left and nothing else. So, with Folder, I would like to avoid having my widgets grouped geometrically. The only purpose of a Folder would be to hide/show it's children in the tree (not hiding them in the canvas), and, optionally, to allow me to select all children with one click.

Yes, I know, Panel is very similar to this, but panel (like

) is a DOM container with it's own coordinates, which is not what I always want. In some cases, yes, Panel is great, but there are cases where I wish I could group/folderize/collapse widgets without them being stuffed in a separate panel.

Thank you for developing this awesome software!

jean-emmanuel commented 1 year ago

Unfortunately I hardly see it coming in a near future as it would require big changes to make it possible.

AtmanActive commented 1 year ago

Is there maybe a way to adjust/hack a Panel to behave like that?

jean-emmanuel commented 1 year ago

Actually there is and I'm fiddling with it at the moment... browser support might be an issue though

jean-emmanuel commented 1 year ago

The folder widget can be tested in v1.19.0-beta, a far as I can tell it works, but it relies on a css feature that's known to have pitfails... (https://caniuse.com/?search=display%3Acontents)

AtmanActive commented 1 year ago

Wow. And I thought I knew CSS. You learn something new every day. Thanks!

AtmanActive commented 1 year ago

Working flawlessly here. Running the editor on windows, FireFox v106.0.1, and running the surface on raspbian, Chromium v101.0.4951.57. Thanks!