Show thread color boxes in find zone menu.

This commit is contained in:
Bartosz Taudul 2019-09-24 23:38:29 +02:00
parent 06fe469598
commit e9b815a3b8

View File

@ -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<uint64_t>::max() ? "No user text" : m_worker.GetString( StringIdx( v->first ) );
break;