From 511127577016956d2768334be32f2dc0f383610f Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 4 Oct 2019 13:02:26 +0200 Subject: [PATCH] Highlight hovered zone on the find zone zones list. --- server/TracyView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 2981b64f..736d5d73 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -8605,6 +8605,7 @@ void View::DrawZoneList( const Vector& zones ) } ImGui::PushID( ev ); + if( m_zoneHover == ev ) ImGui::PushStyleColor( ImGuiCol_Text, ImVec4( 0, 1, 0, 1 ) ); if( ImGui::Selectable( TimeToString( ev->Start() ), m_zoneInfoWindow == ev, ImGuiSelectableFlags_SpanAllColumns ) ) { ShowZoneInfo( *ev ); @@ -8627,7 +8628,7 @@ void View::DrawZoneList( const Vector& zones ) ImGui::TextUnformatted( m_worker.GetString( ev->name ) ); } ImGui::NextColumn(); - + if( m_zoneHover == ev ) ImGui::PopStyleColor(); ImGui::PopID(); } ImGui::Columns( 1 );