From 8cbd83c752d7e27caabcf74d56fedb9cfae60ca1 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 10 May 2019 20:25:57 +0200 Subject: [PATCH] Use message color on message lists. --- server/TracyView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index bd862b71..c335ae4b 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -4599,7 +4599,9 @@ void View::DrawZoneInfoWindow() } ImGui::PopID(); ImGui::NextColumn(); + ImGui::PushStyleColor( ImGuiCol_Text, (*msgit)->color ); ImGui::TextWrapped( "%s", m_worker.GetString( (*msgit)->ref ) ); + ImGui::PopStyleColor(); ImGui::NextColumn(); } while( ++msgit != msgend ); @@ -5825,7 +5827,9 @@ void View::DrawMessages() ImGui::SameLine(); ImGui::TextDisabled( "(0x%" PRIX64 ")", v->thread ); ImGui::NextColumn(); + ImGui::PushStyleColor( ImGuiCol_Text, v->color ); ImGui::TextWrapped( "%s", m_worker.GetString( v->ref ) ); + ImGui::PopStyleColor(); ImGui::NextColumn(); } }