From 4dde1ca07045ef3e983406f7a17eb49e92a01460 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 2 Nov 2019 22:48:00 +0100 Subject: [PATCH] Add zone color boxes to find zone menu. --- server/TracyView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index a570d378..d442e9cd 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -7723,8 +7723,12 @@ void View::DrawFindZone() { auto& srcloc = m_worker.GetSourceLocation( v ); auto& zones = m_worker.GetZonesForSourceLocation( v ).zones; + SmallColorBox( GetSrcLocColor( srcloc, 0 ) ); + ImGui::SameLine(); ImGui::PushID( idx ); + ImGui::PushStyleVar( ImGuiStyleVar_FramePadding, ImVec2( 0, 0 ) ); ImGui::RadioButton( m_worker.GetString( srcloc.name.active ? srcloc.name : srcloc.function ), &m_findZone.selMatch, idx++ ); + ImGui::PopStyleVar(); if( m_findZoneBuzzAnim.Match( idx ) ) { const auto time = m_findZoneBuzzAnim.Time();