Add Rust desktop UI with Blender-style pane system

Implemented foundational pane system using eframe/egui:
- Workspace structure with lightningbeam-core and lightningbeam-editor
- Layout data structures matching existing JSON schema
- All 8 predefined layouts (Animation, Video Editing, Audio/DAW, etc.)
- Recursive pane rendering with visual dividers
- Layout switcher menu
- Color-coded pane types for visualization

Foundation complete for interactive pane operations (resize, split, join).
This commit is contained in:
Skyler Lehmkuhl
2025-11-12 06:13:00 -05:00
parent f28791c2c9
commit bf007e774e
9 changed files with 4966 additions and 0 deletions
@@ -0,0 +1,210 @@
[
{
"name": "Animation",
"description": "Drawing tools, timeline, and layers front and center",
"layout": {
"type": "horizontal-grid",
"percent": 10,
"children": [
{ "type": "pane", "name": "toolbar" },
{
"type": "vertical-grid",
"percent": 70,
"children": [
{
"type": "vertical-grid",
"percent": 30,
"children": [
{ "type": "pane", "name": "timelineV2" },
{ "type": "pane", "name": "stage" }
]
},
{ "type": "pane", "name": "infopanel" }
]
}
]
}
},
{
"name": "Video Editing",
"description": "Clip timeline, source monitor, and effects panel",
"layout": {
"type": "vertical-grid",
"percent": 10,
"children": [
{ "type": "pane", "name": "toolbar" },
{
"type": "vertical-grid",
"percent": 65,
"children": [
{
"type": "horizontal-grid",
"percent": 50,
"children": [
{ "type": "pane", "name": "stage" },
{ "type": "pane", "name": "infopanel" }
]
},
{ "type": "pane", "name": "timelineV2" }
]
}
]
}
},
{
"name": "Audio/DAW",
"description": "Audio tracks prominent with mixer, node editor, and preset browser",
"layout": {
"type": "horizontal-grid",
"percent": 75,
"children": [
{
"type": "vertical-grid",
"percent": 50,
"children": [
{ "type": "pane", "name": "timelineV2" },
{ "type": "pane", "name": "nodeEditor" }
]
},
{ "type": "pane", "name": "presetBrowser" }
]
}
},
{
"name": "Scripting",
"description": "Code editor, object hierarchy, and console",
"layout": {
"type": "vertical-grid",
"percent": 10,
"children": [
{ "type": "pane", "name": "toolbar" },
{
"type": "horizontal-grid",
"percent": 70,
"children": [
{
"type": "vertical-grid",
"percent": 50,
"children": [
{ "type": "pane", "name": "stage" },
{ "type": "pane", "name": "timelineV2" }
]
},
{
"type": "vertical-grid",
"percent": 50,
"children": [
{ "type": "pane", "name": "infopanel" },
{ "type": "pane", "name": "outlineer" }
]
}
]
}
]
}
},
{
"name": "Rigging",
"description": "Viewport focused with bone controls and weight painting",
"layout": {
"type": "vertical-grid",
"percent": 10,
"children": [
{ "type": "pane", "name": "toolbar" },
{
"type": "horizontal-grid",
"percent": 75,
"children": [
{ "type": "pane", "name": "stage" },
{
"type": "vertical-grid",
"percent": 50,
"children": [
{ "type": "pane", "name": "infopanel" },
{ "type": "pane", "name": "timelineV2" }
]
}
]
}
]
}
},
{
"name": "3D",
"description": "3D viewport, camera controls, and lighting panel",
"layout": {
"type": "vertical-grid",
"percent": 10,
"children": [
{ "type": "pane", "name": "toolbar" },
{
"type": "horizontal-grid",
"percent": 70,
"children": [
{
"type": "vertical-grid",
"percent": 70,
"children": [
{ "type": "pane", "name": "stage" },
{ "type": "pane", "name": "timelineV2" }
]
},
{ "type": "pane", "name": "infopanel" }
]
}
]
}
},
{
"name": "Drawing/Painting",
"description": "Minimal UI - just canvas and drawing tools",
"layout": {
"type": "vertical-grid",
"percent": 8,
"children": [
{ "type": "pane", "name": "toolbar" },
{
"type": "horizontal-grid",
"percent": 85,
"children": [
{ "type": "pane", "name": "stage" },
{
"type": "vertical-grid",
"percent": 70,
"children": [
{ "type": "pane", "name": "infopanel" },
{ "type": "pane", "name": "timelineV2" }
]
}
]
}
]
}
},
{
"name": "Shader Editor",
"description": "Split between viewport preview and code editor",
"layout": {
"type": "vertical-grid",
"percent": 10,
"children": [
{ "type": "pane", "name": "toolbar" },
{
"type": "horizontal-grid",
"percent": 50,
"children": [
{ "type": "pane", "name": "stage" },
{
"type": "vertical-grid",
"percent": 60,
"children": [
{ "type": "pane", "name": "infopanel" },
{ "type": "pane", "name": "timelineV2" }
]
}
]
}
]
}
}
]