From 7cc514935564acb1cab2fe7ed7948e8355c3177e Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 10 May 2019 20:36:06 +0200 Subject: [PATCH] Improve timeline message tooltips. --- server/TracyView.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index c335ae4b..67425498 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2059,10 +2059,10 @@ void View::DrawZones() } else { - ImGui::TextUnformatted( TimeToString( (*msgit)->time - m_worker.GetTimeBegin() ) ); - ImGui::Separator(); - ImGui::TextUnformatted( "Message text:" ); - ImGui::TextColored( ImVec4( 0xCC / 255.f, 0xCC / 255.f, 0x22 / 255.f, 1.f ), "%s", m_worker.GetString( (*msgit)->ref ) ); + TextFocused( "Message at", TimeToString( (*msgit)->time - m_worker.GetTimeBegin() ) ); + ImGui::PushStyleColor( ImGuiCol_Text, (*msgit)->color ); + ImGui::TextUnformatted( m_worker.GetString( (*msgit)->ref ) ); + ImGui::PopStyleColor(); } ImGui::EndTooltip(); m_msgHighlight = *msgit;