Add zone color boxes to time distribution table.

This commit is contained in:
Bartosz Taudul 2019-11-02 23:14:49 +01:00
parent c294e62f5e
commit 13a7444f03

View File

@ -6361,7 +6361,10 @@ void View::DrawZoneInfoWindow()
}
for( auto& v : vec )
{
ImGui::TextUnformatted( m_worker.GetZoneName( m_worker.GetSourceLocation( v->first ) ) );
const auto& sl = m_worker.GetSourceLocation( v->first );
SmallColorBox( GetSrcLocColor( sl, 0 ) );
ImGui::SameLine();
ImGui::TextUnformatted( m_worker.GetZoneName( sl ) );
ImGui::SameLine();
ImGui::TextDisabled( "(\xc3\x97%s)", RealToString( v->second.count, true ) );
ImGui::NextColumn();