From e9b815a3b83b99233e2216585f2dfb74c951e3bb Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 24 Sep 2019 23:38:29 +0200 Subject: [PATCH] Show thread color boxes in find zone menu. --- server/TracyView.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index eae0cce3..d894cfb4 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -8407,8 +8407,14 @@ void View::DrawFindZone() switch( groupBy ) { case FindZone::GroupBy::Thread: - hdrString = m_worker.GetThreadName( m_worker.DecompressThread( v->first ) ); + { + const auto tid = m_worker.DecompressThread( v->first ); + const auto threadColor = GetThreadColor( tid, 0 ); + SmallColorBox( threadColor ); + ImGui::SameLine(); + hdrString = m_worker.GetThreadName( tid ); break; + } case FindZone::GroupBy::UserText: hdrString = v->first == std::numeric_limits::max() ? "No user text" : m_worker.GetString( StringIdx( v->first ) ); break;