refactor(new_editor): split utility window semantics from workspace

This commit is contained in:
2026-04-22 21:02:24 +08:00
parent dcede7f975
commit 34c635ba22
40 changed files with 715 additions and 391 deletions

View File

@@ -3,7 +3,6 @@
#include "Composition/EditorPanelIds.h"
#include <XCEditor/Foundation/UIEditorTheme.h>
#include <XCEditor/Workspace/UIEditorDetachedWindowPolicy.h>
#include <algorithm>
@@ -81,21 +80,11 @@ void ApplyViewportFramesToShellFrame(
}
UIEditorShellInteractionMetrics ResolveInteractionMetrics(
const UIEditorWorkspaceController& workspaceController,
const UIEditorWorkspaceController&,
bool useDetachedTitleBarTabStrip,
float detachedTitleBarTabHeight,
float detachedWindowChromeHeight) {
float) {
UIEditorShellInteractionMetrics metrics = ResolveUIEditorShellInteractionMetrics();
if (IsUIEditorDetachedWorkspaceToolWindow(workspaceController)) {
metrics.shellMetrics.dockHostMetrics.tabStripMetrics.layoutMetrics.headerHeight = 0.0f;
metrics.shellMetrics.dockHostMetrics.minimumStandalonePanelBodySize =
ResolveUIEditorDetachedToolWindowMinimumContentSize(
workspaceController,
metrics.shellMetrics.dockHostMetrics.minimumStandalonePanelBodySize,
detachedWindowChromeHeight);
metrics.shellMetrics.dockHostMetrics.minimumTabContentBodySize =
metrics.shellMetrics.dockHostMetrics.minimumStandalonePanelBodySize;
}
if (useDetachedTitleBarTabStrip && detachedTitleBarTabHeight > 0.0f) {
metrics.shellMetrics.dockHostMetrics.tabStripMetrics.layoutMetrics.headerHeight =
detachedTitleBarTabHeight;