The idea of this patch is to implement tabs as easy accessible and nicely integrated UI elements making it possible to add them to the (hopefully) upcoming Topbar (and places like the text or image editors).
Tabs are drawn as a new button type called 'TAB' what makes it also possible to create tabs everywhere in the UI. The button type 'TAB' allows the following interactions:
- Styling -WIP (90%)-
- Ordering (Drag & Drop) -WIP (5%)-
To limit the needed space, a '...' tab was created. If space gets rare, some tabs are moved into a menu under it.Look at this gif to see how it reacts when the window is resized:
The idea behind it
This Patch aims to act as a part of Brecht's UI top bar proposal:(more here)
It also allows the integration to other Editors (e.g. Text Editor, UV/Image Editor, User Preferences, etc.).
Therefore, this patch does also include a new python UI template.
The actual integration in the UI can happen like this:
template_tabs(data, property, new="", unlink="")
This creates the tabs, adds a "new" operator tab, assigns the delete function to the tab's 'x' icon and checks if some tabs need to be moved
under a '...' tab.