fix(new_editor/window): move detached root tab into title bar
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user