From 219da446f4b35d9470b4eac648b1742346d31424 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 28 Sep 2024 01:56:40 +0200 Subject: [PATCH] Improve "no messages" view. --- profiler/src/profiler/TracyView_Messages.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/profiler/src/profiler/TracyView_Messages.cpp b/profiler/src/profiler/TracyView_Messages.cpp index c3c2e0a0..ea78b728 100644 --- a/profiler/src/profiler/TracyView_Messages.cpp +++ b/profiler/src/profiler/TracyView_Messages.cpp @@ -17,7 +17,12 @@ void View::DrawMessages() if( msgs.empty() ) { - ImGui::TextUnformatted( "No messages were collected." ); + const auto ty = ImGui::GetTextLineHeight(); + ImGui::PushFont( m_bigFont ); + ImGui::Dummy( ImVec2( 0, ( ImGui::GetContentRegionAvail().y - ImGui::GetTextLineHeight() * 2 ) * 0.5f ) ); + TextCentered( ICON_FA_FISH_FINS ); + TextCentered( "No messages were collected" ); + ImGui::PopFont(); ImGui::End(); return; }