Smaller frame bar color thresholds legend.

This commit is contained in:
Bartosz Taudul 2022-08-04 22:32:35 +02:00
parent 225d6c1ede
commit 4607dca13b
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -34,19 +34,21 @@ void View::DrawOptions()
ImGui::SameLine(); ImGui::SameLine();
TextDisabledUnformatted( TimeToString( 1000*1000*1000 / tmp ) ); TextDisabledUnformatted( TimeToString( 1000*1000*1000 / tmp ) );
ImGui::PopStyleVar(); ImGui::PopStyleVar();
ImGui::PushFont( m_smallFont );
SmallColorBox( 0xFF2222DD ); SmallColorBox( 0xFF2222DD );
ImGui::SameLine(); ImGui::SameLine( 0, 0 );
ImGui::Text( "< %i <", tmp / 2 ); ImGui::Text( " < %i < ", tmp / 2 );
ImGui::SameLine(); ImGui::SameLine( 0, 0 );
SmallColorBox( 0xFF22DDDD ); SmallColorBox( 0xFF22DDDD );
ImGui::SameLine(); ImGui::SameLine( 0, 0 );
ImGui::Text( "< %i <", tmp ); ImGui::Text( " < %i < ", tmp );
ImGui::SameLine(); ImGui::SameLine( 0, 0 );
SmallColorBox( 0xFF22DD22 ); SmallColorBox( 0xFF22DD22 );
ImGui::SameLine(); ImGui::SameLine( 0, 0 );
ImGui::Text( "< %i <", tmp * 2 ); ImGui::Text( " < %i < ", tmp * 2 );
ImGui::SameLine(); ImGui::SameLine( 0, 0 );
SmallColorBox( 0xFFDD9900 ); SmallColorBox( 0xFFDD9900 );
ImGui::PopFont();
ImGui::Unindent(); ImGui::Unindent();
if( m_worker.HasContextSwitches() ) if( m_worker.HasContextSwitches() )
{ {