From 1282aa97390e6f4f1efac99bd139f70440c27d36 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 4 Aug 2018 21:48:40 +0200 Subject: [PATCH] Darken frame set counter, if it is disabled. --- server/TracyView.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 22079831..c9f5b31d 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -439,7 +439,18 @@ bool View::DrawImpl() ImGui::SameLine(); if( ImGui::SmallButton( "<" ) ) ZoomToPrevFrame(); ImGui::SameLine(); - ImGui::Text( "%s: %s", m_frames->name == 0 ? "Frames" : m_worker.GetString( m_frames->name ), RealToString( m_worker.GetFrameCount( *m_frames ), true ) ); + { + const auto vis = Visible( m_frames ); + if( !vis ) + { + ImGui::PushStyleColor( ImGuiCol_Text, GImGui->Style.Colors[ImGuiCol_TextDisabled] ); + } + ImGui::Text( "%s: %s", m_frames->name == 0 ? "Frames" : m_worker.GetString( m_frames->name ), RealToString( m_worker.GetFrameCount( *m_frames ), true ) ); + if( !vis ) + { + ImGui::PopStyleColor(); + } + } ImGui::SameLine(); if( ImGui::SmallButton( ">" ) ) ZoomToNextFrame(); ImGui::SameLine();