Display thread color in thread tooltip.

This commit is contained in:
Bartosz Taudul 2019-09-11 19:01:27 +02:00
parent 2872edce5d
commit 23b6e5156b

View File

@ -2319,6 +2319,8 @@ void View::DrawZones()
if( hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( 0, oldOffset ), wpos + ImVec2( ty + txtsz.x, oldOffset + ty ) ) ) if( hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( 0, oldOffset ), wpos + ImVec2( ty + txtsz.x, oldOffset + ty ) ) )
{ {
ImGui::BeginTooltip(); ImGui::BeginTooltip();
SmallColorBox( GetThreadColor( v->id, 0 ) );
ImGui::SameLine();
ImGui::TextUnformatted( m_worker.GetThreadName( v->id ) ); ImGui::TextUnformatted( m_worker.GetThreadName( v->id ) );
ImGui::SameLine(); ImGui::SameLine();
ImGui::TextDisabled( "(%s)", RealToString( v->id, true ) ); ImGui::TextDisabled( "(%s)", RealToString( v->id, true ) );