Refine editor window architecture

This commit is contained in:
2026-04-25 17:51:37 +08:00
parent ef41c44464
commit 41b912933d
24 changed files with 741 additions and 53 deletions

View File

@@ -699,6 +699,7 @@ bool EditorWindowChromeController::ShouldUseDetachedTitleBarTabStrip(
const EditorWindow& window) const {
const EditorWindowTitleBarBinding* titleBarBinding = window.m_runtime->TryGetTitleBarBinding();
return !window.IsPrimary() &&
window.GetChromePolicy().allowDetachedTitleBarTabStrip &&
titleBarBinding != nullptr &&
titleBarBinding->ShouldUseDetachedTitleBarTabStrip();
}
@@ -783,7 +784,10 @@ void EditorWindowChromeController::AppendChrome(
const std::string titleText = cachedTitleText.empty()
? std::string("XCEngine Editor")
: std::string(cachedTitleText);
const std::string frameRateText = window.m_runtime->BuildFrameRateText();
const std::string frameRateText =
window.GetChromePolicy().showFrameStats
? window.m_runtime->BuildFrameRateText()
: std::string();
drawList.AddText(
UIPoint(
iconX +