mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +00:00
Improve "no annotations" view.
This commit is contained in:
parent
1ab0b5abd2
commit
27d7939cc1
@ -80,16 +80,22 @@ void View::DrawAnnotationList()
|
||||
AddAnnotation( m_vd.zvStart, m_vd.zvEnd );
|
||||
}
|
||||
|
||||
if( m_annotations.empty() )
|
||||
{
|
||||
ImGui::Separator();
|
||||
ImGui::PushFont( m_bigFont );
|
||||
ImGui::Dummy( ImVec2( 0, ( ImGui::GetContentRegionAvail().y - ImGui::GetTextLineHeight() * 2 ) * 0.5f ) );
|
||||
TextCentered( ICON_FA_HORSE );
|
||||
TextCentered( "No annotations" );
|
||||
ImGui::PopFont();
|
||||
ImGui::End();
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
ImGui::SameLine();
|
||||
ImGui::SeparatorEx( ImGuiSeparatorFlags_Vertical );
|
||||
ImGui::SameLine();
|
||||
|
||||
if( m_annotations.empty() )
|
||||
{
|
||||
ImGui::TextWrapped( "No annotations." );
|
||||
ImGui::Separator();
|
||||
ImGui::End();
|
||||
return;
|
||||
}
|
||||
|
||||
TextFocused( "Annotations:", RealToString( m_annotations.size() ) );
|
||||
|
Loading…
Reference in New Issue
Block a user