From c294e62f5ed35a3cbe61eaee2cfebbb418e15199 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 2 Nov 2019 23:11:37 +0100 Subject: [PATCH] Add zone color boxes to child zone list. --- server/TracyView.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index d8dff767..3397bfa6 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -6129,6 +6129,8 @@ void View::DrawZoneInfoWindow() auto& cev = *children[cgr.v.front()]; const auto txt = m_worker.GetZoneName( cev ); bool b = false; + SmallColorBox( GetSrcLocColor( srcloc, 0 ) ); + ImGui::SameLine(); ImGui::PushID( (int)cgr.v.front() ); if( ImGui::Selectable( txt, &b, ImGuiSelectableFlags_SpanAllColumns ) ) { @@ -6147,6 +6149,8 @@ void View::DrawZoneInfoWindow() } else { + SmallColorBox( GetSrcLocColor( srcloc, 0 ) ); + ImGui::SameLine(); ImGui::PushID( cgr.srcloc ); expandGroup = ImGui::TreeNode( txt ); ImGui::PopID(); @@ -6249,6 +6253,8 @@ void View::DrawZoneInfoWindow() auto& cev = *children[cti[i]]; const auto txt = m_worker.GetZoneName( cev ); bool b = false; + SmallColorBox( GetSrcLocColor( m_worker.GetSourceLocation( cev.SrcLoc() ), 0 ) ); + ImGui::SameLine(); ImGui::PushID( (int)i ); if( ImGui::Selectable( txt, &b, ImGuiSelectableFlags_SpanAllColumns ) ) {