From 2cec6f548245993a7cafba28e7415292cb671964 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 11 Sep 2019 18:44:06 +0200 Subject: [PATCH] Add thread colors to options menu. --- server/TracyView.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 5458940f..1317bff7 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -6761,6 +6761,9 @@ void View::DrawOptions() m_threadDnd.push_back( ImGui::GetCursorScreenPos().y ); ImGui::PushID( idx ); const auto threadName = m_worker.GetThreadName( t->id ); + const auto threadColor = GetThreadColor( t->id, 0 ); + SmallColorBox( threadColor ); + ImGui::SameLine(); SmallCheckbox( threadName, &Vis( t ).visible ); if( ImGui::BeginDragDropSource( ImGuiDragDropFlags_SourceNoHoldToOpenOthers ) ) { @@ -6769,6 +6772,8 @@ void View::DrawOptions() ImGui::TextUnformatted( ICON_FA_RANDOM ); ImGui::SameLine(); #endif + SmallColorBox( threadColor ); + ImGui::SameLine(); ImGui::TextUnformatted( threadName ); ImGui::EndDragDropSource(); }