From 8483ef4310ddefa371ea29a4c2a5527a734bcf60 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 15 Mar 2022 17:36:01 +0100 Subject: [PATCH] Indicate currently selected annotation. --- server/TracyView.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 547806aa..654f40a4 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -16180,6 +16180,12 @@ void View::DrawAnnotationList() ImGui::SameLine(); ImGui::ColorButton( "c", ImGui::ColorConvertU32ToFloat4( ann->color ), ImGuiColorEditFlags_NoTooltip ); ImGui::SameLine(); + if( m_selectedAnnotation == ann.get() ) + { + bool t = true; + ImGui::Selectable( "##annSelectable", &t ); + ImGui::SameLine( 0, 0 ); + } if( ann->text.empty() ) { TextDisabledUnformatted( "Empty annotation" );