From a918d9a401a9418d6807b470a5bca2a2b1117283 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 29 Jun 2018 18:47:33 +0200 Subject: [PATCH] Improve compressed zones tooltips. --- server/TracyView.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 2349dbf6..78816b7b 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -1283,9 +1283,9 @@ int View::DrawZoneLevel( const Vector& vec, bool hover, double pxns, if( num > 1 ) { ImGui::BeginTooltip(); - ImGui::Text( "Zones too small to display: %s", RealToString( num, true ) ); + TextFocused( "Zones too small to display:", RealToString( num, true ) ); ImGui::Separator(); - ImGui::Text( "Execution time: %s", TimeToString( rend - ev.start ) ); + TextFocused( "Execution time:", TimeToString( rend - ev.start ) ); ImGui::EndTooltip(); if( ImGui::IsMouseClicked( 2 ) && rend - ev.start > 0 ) @@ -1546,9 +1546,9 @@ int View::DrawGpuZoneLevel( const Vector& vec, bool hover, double pxn if( num > 1 ) { ImGui::BeginTooltip(); - ImGui::Text( "Zones too small to display: %s", RealToString( num, true ) ); + TextFocused( "Zones too small to display:", RealToString( num, true ) ); ImGui::Separator(); - ImGui::Text( "Execution time: %s", TimeToString( rend - start ) ); + TextFocused( "Execution time:", TimeToString( rend - start ) ); ImGui::EndTooltip(); if( ImGui::IsMouseClicked( 2 ) && rend - start > 0 )