From eb9a3c2ad134db972970e74dc7e9ec239ef42ce8 Mon Sep 17 00:00:00 2001 From: Bruno Herbelin Date: Mon, 24 Jan 2022 23:53:53 +0100 Subject: [PATCH] Make Metrics semi-transparent when Workspace cleared --- UserInterfaceManager.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/UserInterfaceManager.cpp b/UserInterfaceManager.cpp index 2efe330..b7b9171 100644 --- a/UserInterfaceManager.cpp +++ b/UserInterfaceManager.cpp @@ -818,9 +818,16 @@ void UserInterface::Render() if (timercontrol.Visible()) timercontrol.Render(); + // Logs if (Settings::application.widget.logs) Log::ShowLogWindow(&Settings::application.widget.logs); + // stats in the corner + if (Settings::application.widget.stats) + RenderMetrics(&Settings::application.widget.stats, + &Settings::application.widget.stats_corner, + &Settings::application.widget.stats_mode); + if ( WorkspaceWindow::clear()) ImGui::PopStyleVar(); // All other windows are simply not rendered if workspace is clear @@ -851,12 +858,6 @@ void UserInterface::Render() if (show_view_navigator > 0) target_view_navigator = RenderViewNavigator( &show_view_navigator ); - // stats in the corner - if (Settings::application.widget.stats) - RenderMetrics(&Settings::application.widget.stats, - &Settings::application.widget.stats_corner, - &Settings::application.widget.stats_mode); - // all IMGUI Rendering ImGui::Render(); ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData());