From 1afcd24dc61366ae6c424dd9d96784c2a476ba40 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 27 Jul 2019 13:25:31 +0200 Subject: [PATCH] Use big font in zone info windows. --- server/TracyView.cpp | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index aa636266..e51e6842 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -4260,13 +4260,29 @@ void View::DrawZoneInfoWindow() const auto tid = threadData->id; if( ev.name.active ) { + if( m_bigFont ) ImGui::PushFont( m_bigFont ); TextFocused( "Zone name:", m_worker.GetString( ev.name ) ); + if( m_bigFont ) ImGui::PopFont(); + if( srcloc.name.active ) + { + ImGui::SameLine(); + ImGui::TextDisabled( "(%s)", m_worker.GetString( srcloc.name ) ); + } + TextFocused( "Function:", m_worker.GetString( srcloc.function ) ); } - if( srcloc.name.active ) + else if( srcloc.name.active ) { + if( m_bigFont ) ImGui::PushFont( m_bigFont ); TextFocused( "Zone name:", m_worker.GetString( srcloc.name ) ); + if( m_bigFont ) ImGui::PopFont(); + TextFocused( "Function:", m_worker.GetString( srcloc.function ) ); + } + else + { + if( m_bigFont ) ImGui::PushFont( m_bigFont ); + TextFocused( "Function:", m_worker.GetString( srcloc.function ) ); + if( m_bigFont ) ImGui::PopFont(); } - TextFocused( "Function:", m_worker.GetString( srcloc.function ) ); TextDisabledUnformatted( "Location:" ); ImGui::SameLine(); ImGui::Text( "%s:%i", m_worker.GetString( srcloc.file ), srcloc.line ); @@ -4847,7 +4863,9 @@ void View::DrawGpuInfoWindow() ImGui::Separator(); const auto tid = GetZoneThread( ev ); + if( m_bigFont ) ImGui::PushFont( m_bigFont ); TextFocused( "Zone name:", m_worker.GetString( srcloc.name ) ); + if( m_bigFont ) ImGui::PopFont(); TextFocused( "Function:", m_worker.GetString( srcloc.function ) ); TextDisabledUnformatted( "Location:" ); ImGui::SameLine();