Improve "no messages" view.

This commit is contained in:
Bartosz Taudul 2024-09-28 01:56:40 +02:00
parent 7cb82b9894
commit 219da446f4
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -17,7 +17,12 @@ void View::DrawMessages()
if( msgs.empty() ) 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(); ImGui::End();
return; return;
} }