mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +00:00
Improve "no messages" view.
This commit is contained in:
parent
7cb82b9894
commit
219da446f4
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user