From 209c1fdc7295d41749118e86739e8f6bb643a717 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 3 Nov 2019 22:32:34 +0100 Subject: [PATCH] Small radio buttons in find zone menu. --- server/TracyView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 5231f860..d606bbf9 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -8565,6 +8565,7 @@ void View::DrawFindZone() DrawHelpMarker( "Left click to highlight entry. Right click to clear selection." ); bool groupChanged = false; + ImGui::PushStyleVar( ImGuiStyleVar_FramePadding, ImVec2( 0, 0 ) ); ImGui::TextUnformatted( "Group by:" ); ImGui::SameLine(); groupChanged |= ImGui::RadioButton( "Thread", (int*)( &m_findZone.groupBy ), (int)FindZone::GroupBy::Thread ); @@ -8591,6 +8592,7 @@ void View::DrawFindZone() ImGui::RadioButton( "Time", (int*)( &m_findZone.sortBy ), (int)FindZone::SortBy::Time ); ImGui::SameLine(); ImGui::RadioButton( "MTPC", (int*)( &m_findZone.sortBy ), (int)FindZone::SortBy::Mtpc ); + ImGui::PopStyleVar(); ImGui::SameLine(); DrawHelpMarker( "Mean time per call" );