From 12e2bcb6915f76b1d1215ab782ed49db0b6cd6a0 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 24 Sep 2019 23:51:47 +0200 Subject: [PATCH] Add thread color boxes to zone info windows. --- server/TracyView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 8fca7a2a..86529312 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -5356,6 +5356,8 @@ void View::DrawZoneInfoWindow() TextFocused( "Thread:", m_worker.GetThreadName( tid ) ); ImGui::SameLine(); ImGui::TextDisabled( "(%s)", RealToString( tid, true ) ); + ImGui::SameLine(); + SmallColorBox( GetThreadColor( tid, 0 ) ); if( ev.text.active ) { TextFocused( "User text:", m_worker.GetString( ev.text ) ); @@ -6125,6 +6127,8 @@ void View::DrawGpuInfoWindow() TextFocused( "Thread:", m_worker.GetThreadName( tid ) ); ImGui::SameLine(); ImGui::TextDisabled( "(%s)", RealToString( tid, true ) ); + ImGui::SameLine(); + SmallColorBox( GetThreadColor( tid, 0 ) ); ImGui::Separator(); ImGui::BeginChild( "##gpuinfo" );