mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Use icons in main profiler window buttons.
This commit is contained in:
parent
7cfcdee053
commit
0de3e088d9
@ -108,6 +108,14 @@ int main( int argc, char** argv )
|
||||
0xF1EB, 0xF1EB, // wifi
|
||||
0xF011, 0xF011, // power off
|
||||
0xF56F, 0xF56F, // file-import
|
||||
0xF013, 0xF013, // cog
|
||||
0xF02B, 0xF02B, // tag
|
||||
0xF002, 0xF002, // search
|
||||
0xF161, 0xF161, // sort-amount-up
|
||||
0xF538, 0xF538, // memory
|
||||
0xF24E, 0xF24E, // balancing scale
|
||||
0xF577, 0xF577, // fingerprint
|
||||
0xF0D9, 0xF0DA, // caret left, right
|
||||
0
|
||||
};
|
||||
ImFontConfig configMerge;
|
||||
|
@ -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 ) )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user