From 23b6e5156b69c3d05af60d057220c57fcc0104eb Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 11 Sep 2019 19:01:27 +0200 Subject: [PATCH] Display thread color in thread tooltip. --- server/TracyView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 9b9f2215..363ebebe 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2319,6 +2319,8 @@ void View::DrawZones() if( hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( 0, oldOffset ), wpos + ImVec2( ty + txtsz.x, oldOffset + ty ) ) ) { ImGui::BeginTooltip(); + SmallColorBox( GetThreadColor( v->id, 0 ) ); + ImGui::SameLine(); ImGui::TextUnformatted( m_worker.GetThreadName( v->id ) ); ImGui::SameLine(); ImGui::TextDisabled( "(%s)", RealToString( v->id, true ) );