fix(new_editor/window): move detached root tab into title bar

This commit is contained in:
2026-04-15 12:38:45 +08:00
parent 59941626a7
commit d501e895eb
6 changed files with 159 additions and 36 deletions

View File

@@ -105,8 +105,15 @@ void EditorShellRuntime::Update(
const ::XCEngine::UI::UIRect& bounds,
const std::vector<::XCEngine::UI::UIInputEvent>& inputEvents,
std::string_view captureText,
EditorShellVariant shellVariant) {
const auto& metrics = ResolveUIEditorShellInteractionMetrics();
EditorShellVariant shellVariant,
bool useDetachedTitleBarTabStrip,
float detachedTitleBarTabHeight) {
UIEditorShellInteractionMetrics metrics = ResolveUIEditorShellInteractionMetrics();
if (useDetachedTitleBarTabStrip && detachedTitleBarTabHeight > 0.0f) {
metrics.shellMetrics.dockHostMetrics.tabStripMetrics.layoutMetrics.headerHeight =
detachedTitleBarTabHeight;
}
context.SyncSessionFromWorkspace(workspaceController);
UIEditorShellInteractionDefinition definition =
context.BuildShellDefinition(workspaceController, captureText, shellVariant);