From 9e1c24f93ec9af630a8104af2844fa085583f317 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 24 Feb 2020 01:33:12 +0100 Subject: [PATCH] Add icon to filter entry boxes. --- server/TracyView.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index f10c7a8a..e21aeebb 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -8022,7 +8022,11 @@ void View::DrawMessages() size_t tsz = 0; for( const auto& t : m_threadOrder ) if( !t->messages.empty() ) tsz++; +#ifdef TRACY_EXTENDED_FONT + m_messageFilter.Draw( ICON_FA_FILTER " Filter messages", 200 ); +#else m_messageFilter.Draw( "Filter messages", 200 ); +#endif ImGui::SameLine(); #ifdef TRACY_EXTENDED_FONT if( ImGui::Button( ICON_FA_BACKSPACE " Clear" ) ) @@ -10942,7 +10946,11 @@ void View::DrawStatistics() return; } +#ifdef TRACY_EXTENDED_FONT + m_statisticsFilter.Draw( ICON_FA_FILTER " Filter zones", 200 ); +#else m_statisticsFilter.Draw( "Filter zones", 200 ); +#endif ImGui::SameLine(); #ifdef TRACY_EXTENDED_FONT if( ImGui::Button( ICON_FA_BACKSPACE " Clear" ) )