Indicate currently selected annotation.

This commit is contained in:
Bartosz Taudul 2022-03-15 17:36:01 +01:00
parent 4be2aa0682
commit 8483ef4310
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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" );