From b03e482b3ac9dda8f354a885b1f999758c7fa0b8 Mon Sep 17 00:00:00 2001 From: Artur Sharafutdinov Date: Tue, 17 Sep 2024 17:55:53 +0200 Subject: [PATCH] Change text colors in info panel --- source/MRViewer/ImGuiMenu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/MRViewer/ImGuiMenu.cpp b/source/MRViewer/ImGuiMenu.cpp index 805404dd1c9f..443c38426457 100644 --- a/source/MRViewer/ImGuiMenu.cpp +++ b/source/MRViewer/ImGuiMenu.cpp @@ -1348,9 +1348,9 @@ float ImGuiMenu::drawSelectionInformation_() const float itemWidth = getSceneInfoItemWidth_( 3 ) * 3 + ImGui::GetStyle().ItemInnerSpacing.x * 2; - const auto textColor = ImGui::GetStyleColorVec4( ImGuiCol_Text ); + auto textColor = ImGui::GetStyleColorVec4( ImGuiCol_Text ); auto labelColor = textColor; - labelColor.w *= 0.5f; + textColor.w *= 0.5f; const ImVec4 selectedTextColor { 0.886f, 0.267f, 0.267f, 1.0f }; auto drawPrimitivesInfo = [&] ( const char* label, size_t value, size_t selected = 0 )