From 13a7444f03f8eaba878847f3fe3cb847952bc784 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 2 Nov 2019 23:14:49 +0100 Subject: [PATCH] Add zone color boxes to time distribution table. --- server/TracyView.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 3397bfa6..3829902d 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -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();