From 4607dca13b306eb72662d8356ae7ae80b47b30c2 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 4 Aug 2022 22:32:35 +0200 Subject: [PATCH] Smaller frame bar color thresholds legend. --- server/TracyView_Options.cpp | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/server/TracyView_Options.cpp b/server/TracyView_Options.cpp index a2c8f6d8..34159e23 100644 --- a/server/TracyView_Options.cpp +++ b/server/TracyView_Options.cpp @@ -34,19 +34,21 @@ void View::DrawOptions() ImGui::SameLine(); TextDisabledUnformatted( TimeToString( 1000*1000*1000 / tmp ) ); ImGui::PopStyleVar(); + ImGui::PushFont( m_smallFont ); SmallColorBox( 0xFF2222DD ); - ImGui::SameLine(); - ImGui::Text( "< %i <", tmp / 2 ); - ImGui::SameLine(); + ImGui::SameLine( 0, 0 ); + ImGui::Text( " < %i < ", tmp / 2 ); + ImGui::SameLine( 0, 0 ); SmallColorBox( 0xFF22DDDD ); - ImGui::SameLine(); - ImGui::Text( "< %i <", tmp ); - ImGui::SameLine(); + ImGui::SameLine( 0, 0 ); + ImGui::Text( " < %i < ", tmp ); + ImGui::SameLine( 0, 0 ); SmallColorBox( 0xFF22DD22 ); - ImGui::SameLine(); - ImGui::Text( "< %i <", tmp * 2 ); - ImGui::SameLine(); + ImGui::SameLine( 0, 0 ); + ImGui::Text( " < %i < ", tmp * 2 ); + ImGui::SameLine( 0, 0 ); SmallColorBox( 0xFFDD9900 ); + ImGui::PopFont(); ImGui::Unindent(); if( m_worker.HasContextSwitches() ) {