refactor(new_editor): split utility window semantics from workspace
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user