cocopon / tweakpane

:control_knobs: Compact GUI for fine-tuning parameters and monitoring value changes
https://tweakpane.github.io/docs/
MIT License
3.41k stars 85 forks source link

[feature request] tabs: vertical layout #595

Closed eviltik closed 6 months ago

eviltik commented 6 months ago

Hi again

This is blender image

As you can see, we have vertical tabs with icon (and/or vertical text ?)

It should be great to be able to make the same layout with tweakpane :)

For icons, see #594

cocopon commented 6 months ago

Hi! I think this kind of component should be handled by the plugin system. It's possible to create a plugin that provides a container component like a folder and a tab.

eviltik commented 6 months ago

It should be great to have it by default in tweakpane rather than a plugin, but it's my point of view.

Wondering if it can not be solve just with specific css.

I'll try to go deeper for a plugin (but i'm limited, i stay sticked with vanilliajs for years, and it seem's that plugins are typescript)

cocopon commented 6 months ago

It should be great to have it by default in tweakpane rather than a plugin

Built-in Tweakpane components are arranged in stacked rows. Tweakpane calls them as "blade", and the vertical tab seems different from this setup.

image

https://tweakpane.github.io/docs/quick-tour/#blades

I think this kind of complex components should not be included in the standard components.

Wondering if it can not be solve just with specific css.

It seems difficult based on my experience. (e.g. height calculation, layout with text tab, etc...)

eviltik commented 6 months ago

I see, thank you !