From a779b04dba7042f2401a2000d907b9f4a70113a2 Mon Sep 17 00:00:00 2001 From: ssdfasd <2156608475@qq.com> Date: Tue, 21 Apr 2026 20:43:17 +0800 Subject: [PATCH] Restore new_editor toolbar play button styling --- new_editor/include/XCEditor/Shell/UIEditorShellCompose.h | 8 ++++---- new_editor/src/Shell/UIEditorShellCompose.cpp | 9 --------- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/new_editor/include/XCEditor/Shell/UIEditorShellCompose.h b/new_editor/include/XCEditor/Shell/UIEditorShellCompose.h index 68fb8efc..1f101214 100644 --- a/new_editor/include/XCEditor/Shell/UIEditorShellCompose.h +++ b/new_editor/include/XCEditor/Shell/UIEditorShellCompose.h @@ -23,12 +23,12 @@ struct UIEditorShellToolbarLayout { }; struct UIEditorShellToolbarMetrics { - float barHeight = 24.0f; + float barHeight = 30.0f; float groupPaddingX = 6.0f; float groupPaddingY = 2.0f; - float buttonWidth = 18.0f; - float buttonHeight = 16.0f; - float buttonGap = 4.0f; + float buttonWidth = 20.0f; + float buttonHeight = 20.0f; + float buttonGap = 6.0f; float groupCornerRounding = 0.0f; float buttonCornerRounding = 0.0f; float borderThickness = 1.0f; diff --git a/new_editor/src/Shell/UIEditorShellCompose.cpp b/new_editor/src/Shell/UIEditorShellCompose.cpp index d75ed579..e58d0bc3 100644 --- a/new_editor/src/Shell/UIEditorShellCompose.cpp +++ b/new_editor/src/Shell/UIEditorShellCompose.cpp @@ -119,15 +119,6 @@ void AppendUIEditorShellToolbar( return; } - drawList.AddFilledRect( - layout.groupRect, - palette.groupColor, - metrics.groupCornerRounding); - drawList.AddRectOutline( - layout.groupRect, - palette.groupBorderColor, - metrics.borderThickness, - metrics.groupCornerRounding); const std::size_t buttonCount = (std::min)(buttons.size(), layout.buttonRects.size()); for (std::size_t index = 0; index < buttonCount; ++index) {