From 54438a4aa1003bbbc1f34a9b9243bc0395977cb0 Mon Sep 17 00:00:00 2001 From: kunkundi Date: Wed, 27 May 2026 10:24:53 +0800 Subject: [PATCH] [feat] refine control bar display index label sizing and alignment --- src/gui/toolbars/control_bar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/toolbars/control_bar.cpp b/src/gui/toolbars/control_bar.cpp index 197efaa..89dc9c4 100644 --- a/src/gui/toolbars/control_bar.cpp +++ b/src/gui/toolbars/control_bar.cpp @@ -203,11 +203,11 @@ int Render::ControlBar(std::shared_ptr& props) { ImGui::EndPopup(); } - ImGui::SetWindowFontScale(0.4f); + ImGui::SetWindowFontScale(0.35f); ImVec2 text_size = ImGui::CalcTextSize( std::to_string(props->selected_display_ + 1).c_str()); ImVec2 text_pos = - ImVec2(btn_min.x + (btn_size_actual.x - text_size.x) * 0.53f, + ImVec2(btn_min.x + (btn_size_actual.x - text_size.x) * 0.55f, btn_min.y + (btn_size_actual.y - text_size.y) * 0.33f); ImGui::GetWindowDrawList()->AddText( text_pos, IM_COL32(0, 0, 0, 255),