From c92d8cf7a3b1f7b7050c5cb5af4d4e03232ed3c1 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 29 Jun 2018 18:43:23 +0200 Subject: [PATCH] Improve frame list tooltips. --- server/TracyView.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index f60180ba..a328ac8b 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -604,9 +604,11 @@ void View::DrawFrames() f = std::max( f, m_worker.GetFrameTime( sel + j ) ); } - ImGui::Text( "Frames: %i - %i (%i)", sel, sel + g - 1, g ); + ImGui::TextDisabled( "Frames:" ); + ImGui::SameLine(); + ImGui::Text( "%i - %i (%i)", sel, sel + g - 1, g ); ImGui::Separator(); - ImGui::Text( "Max frame time: %s", TimeToString( f ) ); + TextFocused( "Max frame time:", TimeToString( f ) ); } else { @@ -614,16 +616,18 @@ void View::DrawFrames() { ImGui::Text( "Tracy initialization" ); ImGui::Separator(); - ImGui::Text( "Time: %s", TimeToString( m_worker.GetFrameTime( sel ) ) ); + TextFocused( "Time:", TimeToString( m_worker.GetFrameTime( sel ) ) ); } else { - ImGui::Text( "Frame: %i", sel ); + ImGui::TextDisabled( "Frame:" ); + ImGui::SameLine(); + ImGui::Text( "%i", sel ); ImGui::Separator(); - ImGui::Text( "Frame time: %s", TimeToString( m_worker.GetFrameTime( sel ) ) ); + TextFocused( "Frame time:", TimeToString( m_worker.GetFrameTime( sel ) ) ); } } - ImGui::Text( "Time from start of program: %s", TimeToString( m_worker.GetFrameBegin( sel ) - m_worker.GetFrameBegin( 0 ) ) ); + TextFocused( "Time from start of program:", TimeToString( m_worker.GetFrameBegin( sel ) - m_worker.GetFrameBegin( 0 ) ) ); ImGui::EndTooltip(); if( ImGui::IsMouseClicked( 0 ) )