1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Use icons in main profiler window buttons.

This commit is contained in:
Bartosz Taudul
2018-08-17 19:03:35 +02:00
parent 7cfcdee053
commit 0de3e088d9
2 changed files with 44 additions and 0 deletions
+36
View File
@@ -568,21 +568,53 @@ bool View::DrawImpl()
ImGui::PopStyleColor( 3 );
}
ImGui::SameLine();
#ifdef TRACY_EXTENDED_FONT
if( ImGui::Button( "\xef\x80\x93 Options" ) ) m_showOptions = true;
#else
if( ImGui::Button( "Options" ) ) m_showOptions = true;
#endif
ImGui::SameLine();
#ifdef TRACY_EXTENDED_FONT
if( ImGui::Button( "\xef\x80\xab Messages" ) ) m_showMessages = true;
#else
if( ImGui::Button( "Messages" ) ) m_showMessages = true;
#endif
ImGui::SameLine();
#ifdef TRACY_EXTENDED_FONT
if( ImGui::Button( "\xef\x80\x82 Find zone" ) ) m_findZone.show = true;
#else
if( ImGui::Button( "Find zone" ) ) m_findZone.show = true;
#endif
ImGui::SameLine();
#ifdef TRACY_EXTENDED_FONT
if( ImGui::Button( "\xef\x85\xa1 Statistics" ) ) m_showStatistics = true;
#else
if( ImGui::Button( "Statistics" ) ) m_showStatistics = true;
#endif
ImGui::SameLine();
#ifdef TRACY_EXTENDED_FONT
if( ImGui::Button( "\xef\x94\xb8 Memory" ) ) m_memInfo.show = true;
#else
if( ImGui::Button( "Memory" ) ) m_memInfo.show = true;
#endif
ImGui::SameLine();
#ifdef TRACY_EXTENDED_FONT
if( ImGui::Button( "\xef\x89\x8e Compare" ) ) m_compare.show = true;
#else
if( ImGui::Button( "Compare" ) ) m_compare.show = true;
#endif
ImGui::SameLine();
#ifdef TRACY_EXTENDED_FONT
if( ImGui::Button( "\xef\x95\xb7 Info" ) ) m_showInfo = true;
#else
if( ImGui::Button( "Info" ) ) m_showInfo = true;
#endif
ImGui::SameLine();
#ifdef TRACY_EXTENDED_FONT
if( ImGui::SmallButton( "\xef\x83\x99" ) ) ZoomToPrevFrame();
#else
if( ImGui::SmallButton( "<" ) ) ZoomToPrevFrame();
#endif
ImGui::SameLine();
{
const auto vis = Visible( m_frames );
@@ -597,7 +629,11 @@ bool View::DrawImpl()
}
}
ImGui::SameLine();
#ifdef TRACY_EXTENDED_FONT
if( ImGui::SmallButton( "\xef\x83\x9a" ) ) ZoomToNextFrame();
#else
if( ImGui::SmallButton( ">" ) ) ZoomToNextFrame();
#endif
ImGui::SameLine();
if( ImGui::BeginCombo( "##frameCombo", nullptr, ImGuiComboFlags_NoPreview ) )
{