From 21589a238b57feffbd8a0bf0fbe92c4ae5e9c382 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 4 Aug 2020 14:06:32 +0200 Subject: [PATCH] Reduce size of statistics menu controls. --- server/TracyView.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index bee6c365..66116573 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -11585,6 +11585,8 @@ void View::DrawStatistics() return; } + ImGui::PushStyleVar( ImGuiStyleVar_FramePadding, ImVec2( 2, 2 ) ); + if( m_worker.AreCallstackSamplesReady() ) { const auto hasSamples = m_worker.GetCallstackSampleCount() > 0; @@ -11619,6 +11621,7 @@ void View::DrawStatistics() { ImGui::Spacing(); ImGui::Separator(); + ImGui::PopStyleVar(); ImGui::TextWrapped( "Please wait, computing data..." ); DrawWaitingDots( s_time ); ImGui::End(); @@ -11702,6 +11705,7 @@ void View::DrawStatistics() } ImGui::Separator(); + ImGui::PopStyleVar(); if( srcloc.empty() ) { @@ -11823,6 +11827,7 @@ void View::DrawStatistics() } ImGui::Separator(); + ImGui::PopStyleVar(); const auto& symMap = m_worker.GetSymbolMap(); const auto& symStat = m_worker.GetSymbolStats();