From 39ee307409ffa0343e88d1a0e1e60c9ae08d2e26 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 28 Sep 2024 01:42:33 +0200 Subject: [PATCH] Improve "please wait" view in find zone window. --- profiler/src/profiler/TracyView_FindZone.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/profiler/src/profiler/TracyView_FindZone.cpp b/profiler/src/profiler/TracyView_FindZone.cpp index 153b5d00..3e7a971e 100644 --- a/profiler/src/profiler/TracyView_FindZone.cpp +++ b/profiler/src/profiler/TracyView_FindZone.cpp @@ -265,7 +265,12 @@ void View::DrawFindZone() #else if( !m_worker.AreSourceLocationZonesReady() ) { - ImGui::TextWrapped( "Please wait, computing data..." ); + const auto ty = ImGui::GetTextLineHeight(); + ImGui::PushFont( m_bigFont ); + ImGui::Dummy( ImVec2( 0, ( ImGui::GetContentRegionAvail().y - ImGui::GetTextLineHeight() * 2 - ty ) * 0.5f ) ); + TextCentered( ICON_FA_CROW ); + TextCentered( "Please wait, computing data..." ); + ImGui::PopFont(); DrawWaitingDots( s_time ); ImGui::End(); return;