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

@@ -38,6 +38,7 @@ void EditorWindow::RenderRuntimeFrame(
}
editorContext.AttachTextMeasurer(m_render.renderer);
const bool useDetachedTitleBarTabStrip = ShouldUseDetachedTitleBarTabStrip();
m_composition.shellRuntime.Update(
editorContext,
m_composition.workspaceController,
@@ -46,7 +47,9 @@ void EditorWindow::RenderRuntimeFrame(
BuildCaptureStatusText(),
m_window.primary
? EditorShellVariant::Primary
: EditorShellVariant::DetachedWindow);
: EditorShellVariant::DetachedWindow,
useDetachedTitleBarTabStrip,
useDetachedTitleBarTabStrip ? kBorderlessTitleBarHeightDips : 0.0f);
const UIEditorShellInteractionFrame& shellFrame =
m_composition.shellRuntime.GetShellFrame();
const UIEditorDockHostInteractionState& dockHostInteractionState =